From 9276f9427e094ce7bc9b99d276a30c2482d7af2f Mon Sep 17 00:00:00 2001 From: druckdev Date: Sat, 19 Dec 2020 02:29:10 +0100 Subject: [PATCH] zsh:glog: Comment bindings and add cancel bind --- .config/zsh/autoload/glog | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/zsh/autoload/glog b/.config/zsh/autoload/glog index 9968e65..fb782b7 100755 --- a/.config/zsh/autoload/glog +++ b/.config/zsh/autoload/glog @@ -54,8 +54,12 @@ local -A binds=( "ctrl-space" "toggle-preview" "ctrl-alt-j" "preview-down" "ctrl-alt-k" "preview-up" - "ctrl-y" "execute-silent@$fzf_copy_command@" - "enter" "execute@$fzf_preview_command | command less -R@" + # Copy commit hash + "ctrl-y" "execute-silent@$fzf_copy_command@" + # Open preview "fullscreen" + "enter" "execute@$fzf_preview_command | command less -R@" + # Clear query if not empty, abort otherwise + "esc" "cancel" ) local -a fzf_args=( # Understand ansi color escape sequences.