Hacker News new | past | comments | ask | show | jobs | submit login

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.




Unfortunately "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.


That'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.


The unfortunately named cdiff does this, I believe.

https://github.com/ymattw/cdiff




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: