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

Re: sort completion list numerically



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