mirror of
https://github.com/zsh-users/zsh-history-substring-search.git
synced 2026-11-11 11:41:49 -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
|
bindkey -M vicmd 'j' history-substring-search-down
|
||||||
|
|
||||||
# bind up and down arrow keys
|
# bind up and down arrow keys
|
||||||
for keymap in 'emacs' 'viins'; do
|
for keycode in '[' '0'; do
|
||||||
for keycode in '' '0'; do
|
bindkey "^[${keycode}A" history-substring-search-up
|
||||||
bindkey -M $keymap '\e['$keycode'A' history-substring-search-up
|
bindkey "^[${keycode}B" history-substring-search-down
|
||||||
bindkey -M $keymap '\e['$keycode'B' history-substring-search-down
|
|
||||||
done
|
|
||||||
done
|
done
|
||||||
unset keymap keycode
|
unset keycode
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# implementation details
|
# implementation details
|
||||||
|
|||||||
Reference in New Issue
Block a user