[history-substring-search] Fix bindkey back to what works
Just binding ^[[A/^[[B does not work for some terminals, while not binding them breaks zle widgets on other terminals. That's how crazy it can get :- ( Fixes #293. Fixes #295.
This commit is contained in:
parent
fe2cb6b9f5
commit
df672688de
|
@ -8,3 +8,8 @@ source ${0:h}/external/zsh-history-substring-search.zsh || return 1
|
||||||
# Binding ^[[A/^[[B manually mean up/down works with history-substring-search both before and after zle-line-init
|
# Binding ^[[A/^[[B manually mean up/down works with history-substring-search both before and after zle-line-init
|
||||||
bindkey '^[[A' history-substring-search-up
|
bindkey '^[[A' history-substring-search-up
|
||||||
bindkey '^[[B' history-substring-search-down
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
|
||||||
|
# Bind up and down keys
|
||||||
|
zmodload -F zsh/terminfo +p:terminfo
|
||||||
|
bindkey "${terminfo[kcuu1]}" history-substring-search-up
|
||||||
|
bindkey "${terminfo[kcud1]}" history-substring-search-down
|
||||||
|
|
Loading…
Reference in a new issue