1
0
Fork 0
mirror of synced 2024-11-26 09:15:34 -05:00

[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

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:*' 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}