Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to make l/r:|=* matcher default in completion?



On Sat, Jul 23, 2022 at 4:24 AM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> zstyle ':completion:*:*:*:*' matcher 'r:|=* l:|=*'
>
> but git checkout cd still doesn't complete a branch with cd in its name.

The above works for me, or appears to:

% autoload compinit
% compinit -D
% zstyle ':completion:*:*:*:*' matcher 'r:|=* l:|=*'
% git checkout rg<TAB>
% git checkout arg<TAB>
recent branches
zargs-2.0  -- zargs-2.0 - use zsh/param/private and naming to hide internal
local head
zargs-2.0
commit tag
post-opt-arg  pre-opt-arg

Have you tried invoking _complete_debug ?




Messages sorted by: Reverse Date, Date, Thread, Author