From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28485 invoked from network); 27 Jun 2001 08:00:53 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Jun 2001 08:00:53 -0000 Received: (qmail 5801 invoked by alias); 27 Jun 2001 07:59:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15111 Received: (qmail 5781 invoked from network); 27 Jun 2001 07:59:44 -0000 From: "Bart Schaefer" Message-Id: <1010627075757.ZM5174@candle.brasslantern.com> Date: Wed, 27 Jun 2001 07:57:57 +0000 In-Reply-To: <000001c0fedd$01b7e3b0$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "sort completion list numerically" (Jun 27, 11:44am) References: <000001c0fedd$01b7e3b0$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , "ZSH Workers Mailing List" Subject: Re: sort completion list numerically MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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