diff --git a/scripts/.autocomplete.config b/scripts/.autocomplete.config index 0bc60a16..b2613b84 100644 --- a/scripts/.autocomplete.config +++ b/scripts/.autocomplete.config @@ -25,7 +25,7 @@ _autocomplete.config.completer() { if [[ CURRENT -eq 1 && -z $PREFIX$SUFFIX && $compstate[context] == command ]]; then reply=( _complete ) else - reply=( _expand _complete _correct _complete:-fuzzy _ignored ) + reply=( _expand _complete _correct _complete:-loose _complete:-fuzzy _ignored ) fi } builtin zstyle ':completion:list-expand:*' completer \ @@ -70,9 +70,10 @@ builtin zstyle ':completion:list-expand:*:git-*:(|*-)argument-*:*' tag-order '*' # Order of matchers matters: m should come before r, which should come before l. # Otherwise, the results are not as expected. -builtin zstyle ':completion:*' matcher-list \ - 'm:{[:lower:]-}={[:upper:]_} r:|[.]=** r:?|[-_]=* l:?|=[-_\\ ]' -builtin zstyle ':completion:*-fuzzy:*' matcher-list \ +builtin zstyle ':completion:*' matcher-list '' +builtin zstyle ':completion:*-loose:*' matcher-list \ + 'm:{[:lower:]-}={[:upper:]_} r:|[.]=** l:?|=[-_\\ ] r:?||[-_]=*' +builtin zstyle ':completion:*-fuzzy:*' matcher-list \ 'm:{[:lower:]-}={[:upper:]_} r:|?=**' builtin zstyle ':completion:*:options' matcher 'b:-=+'