Closed galaunay closed 7 years ago
Thank you, that's great.
Wait. @galaunay, how do you exactly configure magit to use "hunk refinement"?
edit: ok so with (setq magit-diff-refine-hunk 'all)
I get to see the refined hunks in magit.
@ninrod You can also use locally magit-diff-toggle-refine-hunk
, which is bound to "Dt" in my evil configuration.
hum, do you use evil-magit?
Yes, that was what I meant when I said "evil configuration".
'D' is linked to magit-diff-refresh-popup
for me,
then 't' trigger magit-diff-toggle-refine-hunk
.
and by doing that, is the configuration now permanent for you?
No, I think it is set buffer-locally, so it just sticks as long as I don't kill the magit buffer. It behaves differently for you ?
Add
diff-refine-added
anddiff-refine-removed
colors. Quite useful when using magit with hunk refinement. Without those colors, the refinement background and foreground colors were nearly the same, making them difficult to read.Screenshot of magit with hunk refinement: