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:
@@ -46,7 +46,6 @@ bindkey '^[h' run-help
|
|||||||
|
|
||||||
## Navigation
|
## Navigation
|
||||||
bindkey '^[[Z' reverse-menu-complete # shift-tab
|
bindkey '^[[Z' reverse-menu-complete # shift-tab
|
||||||
bindkey '^K' kill-whole-line # ctrl-K
|
|
||||||
bindkey '^Q' push-input # ctrl-Q
|
bindkey '^Q' push-input # ctrl-Q
|
||||||
bindkey '\e[H' beginning-of-line # home
|
bindkey '\e[H' beginning-of-line # home
|
||||||
bindkey "$terminfo[khome]" beginning-of-line # home
|
bindkey "$terminfo[khome]" beginning-of-line # home
|
||||||
@@ -120,6 +119,12 @@ bindkey '^[[1;5A' fzf-history-widget
|
|||||||
# Down
|
# Down
|
||||||
bindkey '^[[B' fzf-hist-down
|
bindkey '^[[B' fzf-hist-down
|
||||||
bindkey "$terminfo[kcud1]" 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:
|
# Fuzzy finder bindings:
|
||||||
# ^T fzf-file-widget
|
# ^T fzf-file-widget
|
||||||
|
|||||||
Reference in New Issue
Block a user