From 739e03b5a799fa215bb15cceb69fbd299e4b4207 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 24 Jun 2023 11:05:32 +0200 Subject: [PATCH] git:glog: Remove by-now default fzf bindings These were added "globally" to FZF_DEFAULT_OPTS in 4f5d23bd1 ("zprofile: Add some bindings to FZF_DEFAULT_OPTS"). --- .config/zsh/.zprofile | 2 ++ .config/zsh/autoload/git/glog | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 4f83a9a..a5af85d 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -117,7 +117,9 @@ fi export FZF_DEFAULT_COMMAND typeset -A fzf_opts=( + # Clear query if not empty, abort otherwise esc cancel + # Better navigation home first end last ctrl-d half-page-down diff --git a/.config/zsh/autoload/git/glog b/.config/zsh/autoload/git/glog index cb679d7..3e67035 100755 --- a/.config/zsh/autoload/git/glog +++ b/.config/zsh/autoload/git/glog @@ -94,19 +94,12 @@ local -A binds=( "ctrl-y" "execute@$fzf_copy_command@" # Open preview "fullscreen" "enter" "execute@$fzf_preview[patch] | command less -R@" - # Clear query if not empty, abort otherwise - "esc" "cancel" # Preview stats "ctrl-s" "preview($fzf_preview[stat])" # Preview patch "ctrl-p" "preview($fzf_preview[patch])" # Files only "ctrl-f" "preview($fzf_preview[files_only])" - # faster navigation - "home" "first" - "end" "last" - "ctrl-d" "half-page-down" - "ctrl-u" "half-page-up" ) # TODO: Make the --preview argument dependent of --stat flag (i.e.