mirror of
https://github.com/zsh-users/zsh-history-substring-search.git
synced 2026-11-11 11:41:49 -05:00
drop default key bindings (move them into README)
https://github.com/sorin-ionescu/prezto/issues/422 https://github.com/sorin-ionescu/prezto/commit/3c5363ef9bcfda4cc5cd46ca85a7109f783c9539
This commit is contained in:
@@ -72,25 +72,6 @@ function history-substring-search-down() {
|
||||
zle -N history-substring-search-up
|
||||
zle -N history-substring-search-down
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# shortcut key bindings
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
# bind P and N for EMACS mode
|
||||
bindkey -M emacs '^P' history-substring-search-up
|
||||
bindkey -M emacs '^N' history-substring-search-down
|
||||
|
||||
# bind k and j for VI mode
|
||||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
# bind up and down arrow keys
|
||||
for keycode in '[' '0'; do
|
||||
bindkey "^[${keycode}A" history-substring-search-up
|
||||
bindkey "^[${keycode}B" history-substring-search-down
|
||||
done
|
||||
unset keycode
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# implementation details
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user