~yerinalexey/dotfiles

88f95a840b074034fcd07f9ba1079830c1fbf051 — Alexey Yerin 8 months ago 59d4e7e
zsh: fix incremental search
1 files changed, 9 insertions(+), 1 deletions(-)

M zsh/bindings.zsh
M zsh/bindings.zsh => zsh/bindings.zsh +9 -1
@@ 29,7 29,15 @@ bindkey '^P' up-line-or-search
bindkey '^N' down-line-or-search

## Search shell history
bindkey -M vicmd '/' history-incremental-search-backward
function _accept_search_vi {
	zle accept-search
	zle vi-cmd-mode
}

zle -N _accept_search_vi

bindkey -M isearch '^[' _accept_search_vi
bindkey '^R' history-incremental-search-backward

# Vi mode
## Instantly react on ESC