diff --git a/.config/zsh/autoload/git/glog b/.config/zsh/autoload/git/glog index 8b38ed7..e457b83 100755 --- a/.config/zsh/autoload/git/glog +++ b/.config/zsh/autoload/git/glog @@ -49,39 +49,49 @@ local commit_hash='s/^[^a-f0-9]*([a-f0-9]*).*$/\1/' local dateshort='--date=format:%F' # year local date="$dateshort %T %z" # year time timezone -local -A fzf_preview -read -r -d '' <` for 'patch' command with `-- ` argument, so that # the passed file is ontop although the full patch is shown # TODO: Support -L flag as well (add `-s` for list and `-- ` & maybe `-W` # for preview) -fzf_preview[files_only]="$fzf_preview[patch] ${(@)${@:${@[(ei)--]}}/(#m)*/'$MATCH'}" - -# Use git's pager in the preview window (and with it any special highlighting -# tool, such as diff-so-fancy) -local pager -pager="$(git config --get --default="" core.pager)" -fzf_preview[patch]+="${pager:+ | }$pager; }" -fzf_preview[files_only]+="${pager:+ | }$pager; }" - -read -r -d '' <