Inserted and deleted lines receive character-level highlights

Đang mở
#449 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

  • #450 của @richardgill — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
lua, neovim
Lĩnh vực
developer-experience

Hướng nghiên cứu

Start by searching the plugin for CodeDiffCharInsert and CodeDiffCharDelete and for where line-level insert/delete highlights are applied. Trace how side-by-side, inline, merge and result views each assign highlights, then separate line-wide text highlighting from character-level highlighting inside modified lines. Done means inserted/deleted lines use configurable line-level colors by default, character highlights appear only for changed text within modified lines, and all four views behave consistently. #450 was a closed unmerged attempt, so review it for prior context before starting.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Type/Bug

Text on inserted and deleted lines with no corresponding line on the opposite side currently receives CodeDiffCharInsert or CodeDiffCharDelete. This makes the entire text look like a character-level change instead of reserving the stronger highlight for changed text within modified lines.

Expected behavior:

  • Inserted and deleted lines use line-level text highlights.
  • Character-level highlights are limited to changed text within modified lines.
  • The inserted/deleted line text colors can be configured independently and default to the corresponding line-level colors.
  • The behavior is consistent across side-by-side, inline, merge, and result views.

Related to #325, but narrower: this concerns the text highlight applied to lines without a corresponding line, rather than a separate full-row highlight for modified lines.

Ngôn ngữ chính
Lua
Star
1.6k
Fork
104
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của esmuellert/codediff.nvim

Tất cả issue của esmuellert/codediff.nvim

Issue tương tự

Thêm issue về Lua

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.