git-history icon indicating copy to clipboard operation
git-history copied to clipboard

Improve visualization of small inline changes

Open JCJutson opened this issue 5 years ago • 3 comments

Currently, the animation slides each changed line out of the way to replace it with the new version. However, this means small changes (e.g. one character changes) will look like entire line changes, and it will be hard to tell the difference between the old line and the new line.

JCJutson avatar Feb 06 '19 16:02 JCJutson

Another case would be indentation changes: difference in whitespace at the beginning of lines.

rybak avatar Feb 07 '19 11:02 rybak

One potential fix could be to just slide in the new characters (instead of the whole line), while the unchanged characters in the line simply move as needed to make way for the new characters.

JCJutson avatar Feb 08 '19 20:02 JCJutson

+1, as a small typo fix got the same line slide in/out animation as a complete line rewrite. It would be visually nicer if small typos / Inline changes get a different animation (e.g. slide-in single characters instead of the whole line)

dsentker avatar Dec 11 '19 12:12 dsentker