Skip to content

git diff added/removed lines colors customization #4349

Answered by stefanhaller
scodougy asked this question in Q&A
Discussion options

You must be logged in to vote

are you saying it currently wouldn't work anyway in the view I showed in my OP?

It looks like that screenshot shows the normal diff view; yes, custom pagers work there, that's their main point. The case where they don't is the staging view, i.e. if you press enter on a file to stage individual lines.

I recommend custom pagers not only for customizability of the colors, but for several other reasons. The two main ones for me are highlighting of changed words within a line, and delta's feature of making line numbers clickable (you can click on them and this takes you directly to the editor on that line; huge time saver).

(Another limitation of custom pagers is that they currently don't wo…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@scodougy
Comment options

@stefanhaller
Comment options

Answer selected by scodougy
@scodougy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants