GH-92: also try bindkey with $terminfo for arrows
This commit is contained in:
parent
2c36e4dd3a
commit
0f80b8eb33
1 changed files with 5 additions and 0 deletions
|
|
@ -68,6 +68,11 @@ Usage
|
||||||
bindkey '^[[A' history-substring-search-up
|
bindkey '^[[A' history-substring-search-up
|
||||||
bindkey '^[[B' history-substring-search-down
|
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:
|
You might also want to bind the Control-P/N keys for use in EMACS mode:
|
||||||
|
|
||||||
bindkey -M emacs '^P' history-substring-search-up
|
bindkey -M emacs '^P' history-substring-search-up
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue