[completion] Prefer left-matching before fuzzy
all still being case insensitive. Having just fuzzy matching returns too many matches in the average case.
This commit is contained in:
parent
98eef4184a
commit
e1a2a38a0f
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ zstyle ':completion:*:warnings' format '%F{red}-- no matches found --%f'
|
||||||
zstyle ':completion:*' format '%F{yellow}-- %d --%f'
|
zstyle ':completion:*' format '%F{yellow}-- %d --%f'
|
||||||
zstyle ':completion:*' group-name ''
|
zstyle ':completion:*' group-name ''
|
||||||
zstyle ':completion:*' verbose yes
|
zstyle ':completion:*' verbose yes
|
||||||
zstyle ':completion:*' matcher-list 'r:|?=** m:{a-zA-Z}={A-Za-z}'
|
local case_insensitive='m:{a-zA-Z}={A-Za-z}'
|
||||||
|
zstyle ':completion:*' matcher-list ${case_insensitive} "${case_insensitive} r:|?=**"
|
||||||
|
|
||||||
# directories
|
# directories
|
||||||
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||||
|
|
Loading…
Reference in a new issue