Feat: add substring search for zsh

This commit is contained in:
2021-06-23 21:30:46 +02:00
parent 310354456e
commit 8693f9157f
2 changed files with 17 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
fpath+=$ZDOTDIR/pure
autoload -U compinit
zstyle ':completion:*' menu select
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots) # Include hidden files.
@@ -52,6 +52,15 @@ ZSH_AUTOSUGGEST_STRATEGY=(history completion)
# git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.config/zsh/
source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Substring search
# git clone https://github.com/zsh-users/zsh-history-substring-search ~/.config/zsh
source ~/.config/zsh/zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# Auto-ls
source ~/.config/zsh/auto-ls/auto-ls.zsh