I've often found reading diffs tricky when I have to scroll up to see what file I'm in, then back down to the changes I'm interested in.
In difftastic, I'm experimenting with printing the file name on every hunk displayed.
I'm still trying to get a good solution for side-by-side display in difftastic. I'm experimenting with .. for line numbers, so it's more obvious when a hunk begins and ends.
(I toyed with -- instead of .., but - really risks confusion in a diff tool!)
Wilfred Hughes
Shared words: difftastic, experimenting, hunk, diffs, when
Score: 195
I'm experimenting with @VladimirSitnikv's diff display idea for difftastic: if a hunk is exclusively additions/removals (not both), just show one side!
Space is at a huge premium in diff displays, and this feels like a more efficient use of it.
Difftastic does syntax highlighting based on tree-sitter's parse of the *whole file*. It's more accurate than most diffs are able to do.
In this hunk, the opening " of the string literal isn't included, but difftastic still knows that the first lines are from a string.