Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: default tag-order (was Re: zsh 4.2.1-test-A)
- X-seq: zsh-workers 20241
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh <zsh-workers@xxxxxxxxxx>
- Subject: Re: default tag-order (was Re: zsh 4.2.1-test-A)
- Date: Sun, 8 Aug 2004 09:03:07 -0700 (PDT)
- Cc: 258431@xxxxxxxxxxxxxxx
- In-reply-to: <16609.1091976020@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200408061350.i76DovBi028948@xxxxxxxxxxxxxx> <20040806180339.GA31854@xxxxxxxxxxx> <10094.1091886003@xxxxxxxxxxxxxxxxxxxxx> <20040808044557.GA8117@xxxxxxxxxxx> <16609.1091976020@xxxxxxxxxxxxxxxxxxxxx>
- Reply-to: zsh-workers@xxxxxxxxxx
On Sun, 8 Aug 2004, Oliver Kiddle wrote:
> The problem is with the default tag-order defined in _tags. The relevant
> bit of code is as follows:
> zstyle -a ":completion:${curcontext}:" tag-order order ||
> order=('(|*-)argument-* (|*-)option[-+]* values' options)
>
> There are a few different things we could do here. I can't work out why
> "values" needs to be in there.
>
> One safe option is to insert `(( ! ${@[(I)options]} )) ||'.
> That checks if there is an options tag before applying the tag-order.
I'm confused by this suggestion. If there's no options tag, the tag-order
doesn't make any difference, because it's in the second group of tags.
And in the case of cdrecord, there _is_ an options tag. How would that
proposed change help?
> Any other thoughts?
>
> Default tag-orders really need thinking about in general. It'd be nice
> to be able to specify them from completion functions themself.
Why is that not possible? For example, several completion functions set
the cache-policy style if it's not already set.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author