From d4d1eaa7ad9b96b710f1541b600ef764212ee7fa Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 6 May 2020 14:40:01 +0200 Subject: bin/fzfez: add support for git-log --- bin/fzfez | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin/fzfez') diff --git a/bin/fzfez b/bin/fzfez index 1191052..5df0741 100755 --- a/bin/fzfez +++ b/bin/fzfez @@ -49,6 +49,16 @@ case "$1" in | sed 's#^heads/##' ;; + git-log) + git log --color=always --oneline \ + | $0 \ + --border --no-sort --ansi \ + --preview 'echo {} | cut -d\ -f1 | xargs -I% sh -c "git log --color=always -1 --pretty=full %; echo; git diff --color=always %^..%;"' \ + --preview-window right:50% \ + | cut -d' ' -f1 \ + | xargs -i git log -1 --pretty=%H {} + ;; + rg) shift rg $@ --files-with-matches \ -- cgit 1.4.1