mirror of
https://github.com/zsh-users/zsh-history-substring-search
synced 2024-09-20 08:09:05 +02:00
GH-92: also try bindkey with $terminfo for arrows
This commit is contained in:
parent
2c36e4dd3a
commit
0f80b8eb33
|
@ -68,6 +68,11 @@ Usage
|
|||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
||||
|
||||
However, if the observed values don't work, you can try using terminfo:
|
||||
|
||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||
|
||||
You might also want to bind the Control-P/N keys for use in EMACS mode:
|
||||
|
||||
bindkey -M emacs '^P' history-substring-search-up
|
||||
|
|
Loading…
Reference in a new issue