Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sort completion list numerically
- X-seq: zsh-workers 15111
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>, "ZSH Workers Mailing List" <zsh-workers@xxxxxxxxxx>
- Subject: Re: sort completion list numerically
- Date: Wed, 27 Jun 2001 07:57:57 +0000
- In-reply-to: <000001c0fedd$01b7e3b0$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <000001c0fedd$01b7e3b0$21c9ca95@xxxxxxxxxxxxxx>
On Jun 27, 11:44am, Andrej Borsenkow wrote:
} Subject: sort completion list numerically
}
} Is it possible to sort lists numerically, so that foo-2.3.10 comes after
} foo-2.3.9?
I don't think so, but what happens if you `setopt numeric_glob_sort'?
} Ideally, this should apply to every part
What defines a "part"? A match spec? Which match spec, if there are
several?
The best way I can think of would be to have the function that generates
the matches put them into the correct ordering and then add them with
compadd -V, but that may mean re-inventing a whole lot of the completion
system ...
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author