diff --git a/.config/zsh/autoload/git/glog b/.config/zsh/autoload/git/glog index c7d9e0f..cb679d7 100755 --- a/.config/zsh/autoload/git/glog +++ b/.config/zsh/autoload/git/glog @@ -58,6 +58,10 @@ EOT fzf_preview[patch]="$fzf_preview[construct] { $REPLY" # Get file arguments after (and including) `--` and wrap each in double quotes # TODO: Display `...` behind patch-stat if the patch touched more files +# TODO: Use `-O ` 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\"}" if (( $+commands[diff-so-fancy] )); then