From 26ef59212959ba3741f6369702e23d387b11317f Mon Sep 17 00:00:00 2001 From: druckdev Date: Sat, 19 Dec 2020 02:31:52 +0100 Subject: [PATCH] zsh:glog: Add --stat preview --- .config/zsh/autoload/glog | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/.config/zsh/autoload/glog b/.config/zsh/autoload/glog index 435f627..07a5845 100755 --- a/.config/zsh/autoload/glog +++ b/.config/zsh/autoload/glog @@ -27,9 +27,9 @@ local -a format=( 'Fingerprint: %GF' # pgp fingerprint '%Creset%C(bold)' # empty line ' %s%Creset' # bold white subject - # With the space the empty line is not eaten when the body is empty: - ' ' + '' # newline '%-b' # body + '' # newline ) # Ignore the graph part at the beginning, then capture the commit hash and throw @@ -41,15 +41,22 @@ local date="$dateshort %T %z" # year time timezone # Put the commit hash into the clipboard local fzf_copy_command="echo -n {} | sed -E '$commit_hash' | xclip -sel c" -# Execute git show on selected commit -local fzf_preview_command -read -r -d '' fzf_preview_command <