fzf: use delta to highlight git log preview
This commit is contained in:
parent
886470354f
commit
6abc34b9f7
@ -39,11 +39,11 @@ function __fzf_git_log
|
||||
echo '__fzf_search_git_log: Not in a git repository!' >&2
|
||||
else
|
||||
set -l output (
|
||||
command git logsearch |
|
||||
git logsearch |
|
||||
fzf \
|
||||
--ansi \
|
||||
--tiebreak=index \
|
||||
--preview='git show --color {2}' \
|
||||
--preview='git show {2} | delta' \
|
||||
--preview-window='right,70%,wrap,hidden,<200(bottom,50%)' \
|
||||
--bind='?:toggle-preview' \
|
||||
--header='? to preview'
|
||||
|
Loading…
x
Reference in New Issue
Block a user