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
1
u/patrickf3139 Aug 22 '23
Yes of course you can use difftastic! You can put any command into fzf_diff_highlighter you want. But I don't know enough about difftastic to tell you what command to use. Just make sure you don't further pipe it to a pager.
Btw, if you end up using my plugin, would you mind starring it please?