mookid / diffr

Yet another diff highlighting tool
MIT License
572 stars 22 forks source link

Add command line interface to customize colors. #9

Closed mookid closed 5 years ago

mookid commented 5 years ago

fix #3

TODO

@ericfreese do you see anything missing here? what do you think would be a good default config for unix systems? The current choice is mostly justified to get something that work on windows with its limited console capabilities.

Let's keep that open for a few days for discussion.

ericfreese commented 5 years ago

I’m sorry I haven’t had a chance to try this out yet. For my use case I’d want to choose colors from the 256 color palette. See the commit I added here: https://github.com/ericfreese/diffr/commit/541bf9771894dcbbbae619dde77f396da5fb26c4

I don’t think that’s possible by looking at this code but maybe I’m missing something?

mookid commented 5 years ago

Hi @ericfreese, 256 color palette is supported: try diffr --colors added:none:background:22 for example.