difftastic icon indicating copy to clipboard operation
difftastic copied to clipboard

Highlight the changed lines in a multiline string more prominently

Open Wilfred opened this issue 3 years ago • 2 comments

Wilfred avatar Mar 24 '22 05:03 Wilfred

This would be great. I love difftastic, but it's inconvenient to not easily see what's changed between two long strings. I notice this in Python and C++, but I suppose the handling is similar in other languages. Here's an example:

image

(The difference is the non on the last line.)

Somehow highlighting the changed words within strings would be great. I see the same behaviour in C++ with just a long single-line string.

mortenfyhn avatar Apr 27 '22 10:04 mortenfyhn

Could this be solved by an option to customize the line style (green / red text color) differently from the change style (bold green / red text color)?

For example, difftastic could use a dimmer background color instead of a text color for the line style, which would make the changes pop out more, similar to GitHub.

image

Possibly related https://github.com/Wilfred/difftastic/issues/167

vwkd avatar May 29 '23 13:05 vwkd