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
else
set -l output (
git logsearch |
git logsearch $argv |
fzf \
--ansi \
--tiebreak=index \
--preview='git show {2} | delta' \
--preview="git show {2} $argv | delta" \
--preview-window='right,70%,wrap,hidden,<200(bottom,50%,hidden)' \
--bind='?:toggle-preview' \
--header='? to preview'