1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00

[completion] Improve fuzzy completion matching

This will present the menu in case of ambiguous matches, and also expand
by any separator, not just `[._-]`.

Based on the configuration suggested at
https://superuser.com/a/815317/637926

Closes #212
This commit is contained in:
Eric Nielsen 2018-03-22 11:41:21 -05:00
parent 017ff99851
commit 98eef4184a

View file

@ -56,7 +56,7 @@ 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 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' matcher-list 'r:|?=** m:{a-zA-Z}={A-Za-z}'
# directories # directories
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}