4 ms·
I would suggest highlighting the line that changed as well, with a subtle background color. I mostly use GitGutter, a Sublime Text plugin that puts a symbol in
by waxjar 12y ago
I would suggest highlighting the line that changed as well, with a subtle background color.
I mostly use GitGutter, a Sublime Text plugin that puts a symbol in the "gutter" (line numbers column) to indicate which lines changed, where one was deleted or where one was added. It works only on git repositories, though.
- cbr 12y agoUnfortunately "subtle" isn't really an option when working with standard terminal colors. There are only eight colors, and on most terminals it would be fair to describe all of them as "garish". A gutter symbol would be an option, though.
- waxjar 12y agoThat's a fair point. I did not consider the limited range of colours on most terminals. Bold text might also be an option, though it wouldn't immediately distinguish between added and removed characters.
- petepete 12y agoThe unfortunately named cdiff does this, I believe. https://github.com/ymattw/cdiff https://github.com/ymattw/cdiff