fe2cb6b9f5
See https://github.com/zsh-users/zsh-history-substring-search/issues/70 and comment by @molovo: I was already binding keys _after_ `zle-line-init`, but I'm pulling keycodes out of the `terminfo` module, which reports up (`$terminfo[kcuu1]`) as `^[0A` instead of `^[[A`. Binding `^[[A` manually mean up/down works with history-substring-search both before and after `zle-line-init`, but if I bind `$terminfo[kcuu1]` (`^[0a`), up/down only works *before* `zle-line-init`. Closes #286
10 lines
335 B
Bash
10 lines
335 B
Bash
#
|
|
# Enable searching history with substrings
|
|
#
|
|
|
|
# Source script
|
|
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
|
|
bindkey '^[[A' history-substring-search-up
|
|
bindkey '^[[B' history-substring-search-down
|