zsh completions

This commit is contained in:
thek4n 2024-12-13 11:12:14 +03:00
parent a81b4ce279
commit c25c6bf266

View File

@ -1,4 +1,6 @@
# enable completion features
# vim: ft=zsh
fpath=(~/.zfunc $fpath)
zmodload zsh/complist
@ -35,9 +37,10 @@ zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
zstyle ':autocomplete:*' min-input 3
zstyle ':autocomplete:*' delay 0.1
zstyle -e ':autocomplete:*:*' list-lines 'reply=( $(( LINES / 4 )) )'
bindkey '^N' down-line-or-select
bindkey '^N' menu-select
bindkey -M menuselect '^h' vi-backward-char
bindkey -M menuselect '^k' vi-up-line-or-history
bindkey -M menuselect '^j' vi-down-line-or-history
@ -45,4 +48,4 @@ bindkey -M menuselect '^l' vi-forward-char
bindkey -M menuselect '^e' undo
bindkey -M menuselect '^[' cancel
bindkey -M menuselect '^M' check-command
bindkey -M menuselect '^I' accept-and-infer-next-history
bindkey -M menuselect '^I' accept-and-infer-next-history