fish: allow arguments to fuzzy git log

This commit is contained in:
Charles Gould 2023-02-15 17:51:23 -05:00
parent d102edbda3
commit a3ca48f68f

View File

@ -39,11 +39,11 @@ function __fzf_git_log
echo '__fzf_search_git_log: Not in a git repository!' >&2 echo '__fzf_search_git_log: Not in a git repository!' >&2
else else
set -l output ( set -l output (
git logsearch | git logsearch $argv |
fzf \ fzf \
--ansi \ --ansi \
--tiebreak=index \ --tiebreak=index \
--preview='git show {2} | delta' \ --preview="git show {2} $argv | delta" \
--preview-window='right,70%,wrap,hidden,<200(bottom,50%,hidden)' \ --preview-window='right,70%,wrap,hidden,<200(bottom,50%,hidden)' \
--bind='?:toggle-preview' \ --bind='?:toggle-preview' \
--header='? to preview' --header='? to preview'