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

Re: zstyle tag-order completion issue



Hi Daniel Shahaf,

Thank you very much for this kind reply.

Best Regards,

Ahmad Ismail



On Thu, Sep 10, 2020 at 12:03 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
Ahmad Ismail wrote on Wed, 09 Sep 2020 18:33 +0600:
> In git completion, I want  ancillary-manipulator-commands tag first, then
> ancillary-interrogator-commands tag, then rest of the tags.
>
> My following zstyle is showing ancillary-manipulator-commands tag first,
> then ancillary-interrogator-commands tag, but then not showing rest of the
> tags.
>
> zstyle -e ':completion::complete:git:argument-1:' tag-order '
> reply=(
> "ancillary-manipulator-commands
> ancillary-interrogator-commands"
> -
> )
> '

This means: First, show a-m-commands and a-i-commands; and, because of
the dash, show nothing else.  So, just delete the solitary dash.  Note:
with that configuration, you'll have to invoke _next_tags (q.v.) in
order to list completions from other tags.

Incidentally, you can always simply «zstyle -e foo bar 'reply=(baz
qux)'» to «zstyle foo bar baz qux».  It's exactly equivalent.

Note the quoting.  «zstyle … tag-order 'foo bar'» and «zstyle …
tag-order foo bar» are both valid, but have different meanings.

Cheers,

Daniel


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