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

Re: Complete with *part* not part*



On 12 February 2016 at 18:16, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Feb 12,  5:11pm, Sebastian Gniazdowski wrote:
> } Want to have this only for "zplugin" and only for its sub-command.
>
> The name is "matcher" when it's a specific tag, "matcher-list" is for
> the global setting.  So this should theoretically do it:
>
> zstyle ':completion:*:zplugin:*:argument-rest' matcher 'r:|=** l:|=*'

Looked at the dtrace output and found this to work:
zstyle ':completion::complete:zplugin::plugins' matcher 'r:|=** l:|=*'

Fine thing the dtrace, huh. I think it reveals some bugs in my
completion design. Should I be using -C for _arguments? Because there
are tests that look bad, double "argument-rest":

Zstyle -s :completion::complete:zplugin:argument-rest:argument-rest
matcher match

Best regards,
Sebastian Gniazdowski



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