[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:
Eric Nielsen 2018-03-23 08:36:16 -05:00
parent 98eef4184a
commit e1a2a38a0f
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ zstyle ':completion:*:warnings' format '%F{red}-- no matches found --%f'
zstyle ':completion:*' format '%F{yellow}-- %d --%f'
zstyle ':completion:*' group-name ''
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
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}