Skip to content

feat: highlight added and deleted single-file views - #442

Merged
esmuellert merged 5 commits into
esmuellert:mainfrom
richardgill:fix-special-file-tint
Jul 23, 2026
Merged

feat: highlight added and deleted single-file views#442
esmuellert merged 5 commits into
esmuellert:mainfrom
richardgill:fix-special-file-tint

Conversation

@richardgill

@richardgill richardgill commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Highlights the full contents of added/untracked files with line_insert and deleted files with line_delete.

Opt in via diff.highlight_added_deleted_files:

require("codediff").setup({
  diff = {
    highlight_added_deleted_files = true, -- default: false
  },
})

Before

Untracked file before full-file highlighting

After

Untracked file after full-file highlighting

Fixes #429

@richardgill
richardgill marked this pull request as draft July 17, 2026 10:53
@richardgill
richardgill marked this pull request as ready for review July 18, 2026 09:18
…to fix-special-file-tint

# Conflicts:
#	lua/codediff/ui/view/inline_view.lua
#	lua/codediff/ui/view/side_by_side.lua
#	tests/ui/layout_spec.lua
#	tests/ui/view/inline_explorer_spec.lua
@richardgill richardgill added the Size/M Medium - Write logic, add tests (one evening) label Jul 22, 2026
…to fix-special-file-tint

# Conflicts:
#	tests/ui/core_spec.lua
@richardgill
richardgill requested a review from esmuellert as a code owner July 22, 2026 21:21
Comment thread lua/codediff/config.lua Outdated
@richardgill
richardgill requested a review from esmuellert July 23, 2026 07:31
@esmuellert
esmuellert merged commit a9e004c into esmuellert:main Jul 23, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size/M Medium - Write logic, add tests (one evening)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tint added/deleted single-file views

2 participants