Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Preventing sorting in completers
- X-seq: zsh-workers 18857
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Preventing sorting in completers
- Date: Tue, 15 Jul 2003 10:42:05 +0100
- In-reply-to: "Bart Schaefer"'s message of "Mon, 14 Jul 2003 19:14:35 -0000." <1030714191435.ZM6608@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> } Well, the only ways I can see of completely removing problems like this
> } are to pass down an additional argument into _description and _wanted to
> } stop it using the style, or use a different style.
>
> These aren't necessarily problems to be removed, just behaviors to be
> documented. There's no reason one can't have a style for sorting the
> results of _expand and another more specific style for sorting a tag
> context.
It occurred to me we could test with the tag, then without, for
compatibility; something similar is done in other places, though usually
with some default tag.
> OTOH, I wonder whether _description should NOT use the style when an
> explicit -J or -V argument has been passed? Most of the time there is
> no -J/-V argument at all to _description.
That's certainly arguable, but there's still something to be said for
giving people control anyway, in the same way you can override the set
of matched files. I think the question is: are people likely to use a
general enough context that it gives unexpected effects with sorting
elsewhere?
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author