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

Re: Preventing sorting in completers



Bart Schaefer wrote:
> I think what you've done will change the behavior of _expand in those
> cases where the internal sort done by the completion system does not
> agree with the sort performed by ${(o)exp}.  Depending on the context
> used to set the style, of course.

I assumed that (o) was equivalent to what the completion system did.

> I'm not sure what the other ramifications of the zstyle context may be;
> _expand uses
> 
>     zstyle -s ":completion:${curcontext}:" sort sort
> 
> whereas with the patch _description uses
> 
>     zstyle -s ":completion:${curcontext}:$1" sort sort

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.

-- 
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