zsh:keys: Stay with the flow (vim history scroll)

These combine nicely with the bindings in fzf when searching through the
history.
This commit is contained in:
2020-10-24 18:51:13 +02:00
parent 38f1fe4677
commit f311fc8a35

View File

@@ -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