From f311fc8a3585980586f675fff025a8f59f5e8d2d Mon Sep 17 00:00:00 2001 From: druckdev <63563978+druckdev@users.noreply.github.com> Date: Sat, 24 Oct 2020 18:51:13 +0200 Subject: [PATCH] zsh:keys: Stay with the flow (vim history scroll) These combine nicely with the bindings in fzf when searching through the history. --- .config/zsh/plugins/keys.zsh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/zsh/plugins/keys.zsh b/.config/zsh/plugins/keys.zsh index 7b1b14a..a69ffb9 100644 --- a/.config/zsh/plugins/keys.zsh +++ b/.config/zsh/plugins/keys.zsh @@ -46,7 +46,6 @@ bindkey '^[h' run-help ## Navigation bindkey '^[[Z' reverse-menu-complete # shift-tab -bindkey '^K' kill-whole-line # ctrl-K bindkey '^Q' push-input # ctrl-Q bindkey '\e[H' beginning-of-line # home bindkey "$terminfo[khome]" beginning-of-line # home @@ -120,6 +119,12 @@ bindkey '^[[1;5A' fzf-history-widget # Down bindkey '^[[B' fzf-hist-down bindkey "$terminfo[kcud1]" fzf-hist-down +# Ctrl-K +bindkey '^K' fzf-hist-up +# Ctrl-K in normal mode +bindkey -M vicmd '^K' fzf-history-widget +# Ctrl-J +bindkey '^J' fzf-hist-down # Fuzzy finder bindings: # ^T fzf-file-widget