diff-so-fancy icon indicating copy to clipboard operation
diff-so-fancy copied to clipboard

Use diff-so-fancy for other command line tools?

Open mhyousefi opened this issue 2 years ago • 2 comments

First of all, thank you for developing this useful tool.

I was wondering if it is possible to utilize diff-so-fancy for other command line tools such as helm (in macOS or linux distros) or is it only applicable to git?

mhyousefi avatar Jun 08 '22 07:06 mhyousefi

It's only effective for git diff/patch format output from diff or similar - since it works by parsing (and then manipulating) that format; not some sort of heuristic for what can be stripped/coloured in general purpose output.

(But that might be interesting! And error-prone..)

OJFord avatar Jun 08 '22 07:06 OJFord

A while back I added unified diff support. Anything that can output unified diffs will probably work with d-s-f. Our primary focus, as @OJFord said is git as that is the most commonly used tool. I believe there was work done to get it to work with Mercurial too?

scottchiefbaker avatar Jun 08 '22 15:06 scottchiefbaker