zshuper/functions/use-zaw-search.zsh

13 lines
407 B
Bash
Raw Normal View History

2016-06-19 04:11:34 +03:00
# Use ZAW search
# First check if ZAW is installed and sourced
zplug info zsh-users/zaw >|/dev/null || return
bindkey '^R' zaw-history
bindkey -M filterselect '^R' down-line-or-history
bindkey -M filterselect '^S' up-line-or-history
bindkey -M filterselect '^E' accept-search
zstyle ':filter-select:highlight' matched fg=red
zstyle ':filter-select' max-lines 5
zstyle ':filter-select' extended-search yes