mirror of
https://github.com/zsh-users/zsh-history-substring-search.git
synced 2026-11-08 18:47:34 -05:00
we need to bind ^[[A and ^[[B not ^[A and ^[B
This commit is contained in:
@@ -85,13 +85,11 @@ bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
# bind up and down arrow keys
|
||||
for keymap in 'emacs' 'viins'; do
|
||||
for keycode in '' '0'; do
|
||||
bindkey -M $keymap '\e['$keycode'A' history-substring-search-up
|
||||
bindkey -M $keymap '\e['$keycode'B' history-substring-search-down
|
||||
done
|
||||
for keycode in '[' '0'; do
|
||||
bindkey "^[${keycode}A" history-substring-search-up
|
||||
bindkey "^[${keycode}B" history-substring-search-down
|
||||
done
|
||||
unset keymap keycode
|
||||
unset keycode
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# implementation details
|
||||
|
||||
Reference in New Issue
Block a user