Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to make l/r:|=* matcher default in completion?
- X-seq: zsh-users 27916
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: How to make l/r:|=* matcher default in completion?
- Date: Sun, 24 Jul 2022 12:51:20 -0700
- Archived-at: <https://zsh.org/users/27916>
- In-reply-to: <CAKc7PVAUZ2ZLp=xv-PF01cQxW=hzwKEQ-UTUaw1d9-x4KPDMig@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAKc7PVAUZ2ZLp=xv-PF01cQxW=hzwKEQ-UTUaw1d9-x4KPDMig@mail.gmail.com>
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