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

Re: another issue with `git diff` (was: zstyle tag-order completion issue)



Ahmad Ismail wrote on Wed, 09 Sep 2020 20:49 +00:00:
> zstyle -e :completion::complete:git-diff:argument-rest: tag-order 
> changed-in-working-tree-files _next_tags

First, remove the -e.  That'll address the error you reported.

Second, _next_tags is not a tag; it's a widget (= a shell function that
can be bound to a keystroke).  It doesn't belong in the value of the tag-
order style.

When you set «tag-order foo bar baz», you'll find that only completions
under the tag foo are displayed at first.  To display completions of the
tag bar, you'll have to invoke _next_tags.  However, as a widget, it's
not invoked by typing out its name; rather, it's invoked by pressing
whichever key combination or chord is bound to it.  That's explained in
the manual, under tag-order and _next_tags (they both have entries).

Cheers,

Daniel




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