diff --git a/modules/history-substring-search/init.zsh b/modules/history-substring-search/init.zsh index fc02836..619bda0 100644 --- a/modules/history-substring-search/init.zsh +++ b/modules/history-substring-search/init.zsh @@ -1,14 +1,11 @@ # -# enables searching history with substrings +# Enable searching history with substrings # -# source script +# Source script source ${0:h}/external/zsh-history-substring-search.zsh || return 1 -# bind UP and DOWN keys +# 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 - -# bind UP and DOWN arrow keys (compatibility fallback) -bindkey '^[[A' history-substring-search-up -bindkey '^[[B' history-substring-search-down