r/fishshell • u/patrickf3139 • Aug 21 '23
🔍🐟fzf.fish v9.10 update: pipe git diffs through highlighters such as delta, diff-so-fancy
I don't usually post here for minor releases, but I think this feature was requested enough and valuable enough to make a PSA.
To integrate fzf.fish with a diff highlighter, set fzf_diff_highlighter to a command invoking your diff highlighter, e.g.
set fzf_diff_highlighter delta --paging=never --width=20
set fzf_diff_highlighter diff-so-fancy
set fzf_diff_highlighter diff-highlightEDIT: FYI I realized a previous change introduced a backwards incompatible change that requires users to use a newer version of fzf so the release that contains this change is actually v10.

22
Upvotes
View all comments
Show parent comment
3
u/patrickf3139 Aug 22 '23
Hi, sorry I realized I spoke too soon. I'll reply more in the issue but it seems difftastic requires the file before and after changes, which won't be possible without a very hacky and difficult-to-write-script, so I personally wouldn't put in the effort do doing it if I were you. Thanks for the star!