From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12553 invoked from network); 7 Mar 2006 13:00:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Mar 2006 13:00:12 -0000 Received: (qmail 12487 invoked from network); 7 Mar 2006 13:00:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Mar 2006 13:00:05 -0000 Received: (qmail 23617 invoked by alias); 7 Mar 2006 12:59:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22330 Received: (qmail 23608 invoked from network); 7 Mar 2006 12:59:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Mar 2006 12:59:58 -0000 Received: (qmail 11745 invoked from network); 7 Mar 2006 12:59:58 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 7 Mar 2006 12:59:55 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly25c.srv.mailcontrol.com (MailControl) with ESMTP id k27CxQ5d031867 for ; Tue, 7 Mar 2006 12:59:53 GMT Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 7 Mar 2006 12:59:25 +0000 Date: Tue, 7 Mar 2006 12:59:10 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: PATCH: list-files style for "ls -l" completion listings Message-Id: <20060307125910.05a73f9c.pws@csr.com> In-Reply-To: References: Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.6.7; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Mar 2006 12:59:25.0993 (UTC) FILETIME=[F6773990:01C641E6] X-Scanned-By: MailControl A-06-00-04 (www.mailcontrol.com) on 10.67.0.135 Peter Stephenson wrote: > Here are the bare bones of a way of getting more information about > file listings. Setting the list-files style allows you to have > files listed as for "ls -L" instead of "ls" or "ls -F". The > style can take a number so list=10 means show in long format only if > listing but not inserting and only if there are no more than 10 matches. >... > This is still very basic: > - I have chickened out of adding the framework to _path_files in all but > the simplest cases where the files are add as a simple array. If > anyone thought they understodd _path_files they could do better. > This definitely needs fixing (any occurrence of "compadd -Qf" > should handle file-list in the same way). I've fixed this, I think, though the other items are still open. I've committed the result with a few minor tweaks. Note that you can use a numeric argument to control this by using zstyle -e. Remember, too, that you need to recompile the main shell to get this to work (though unless you set the file-list style it shouldn't try to use the new compadd option). Feedback is useful. (I've finally changed the version in the archvie to 4.3.2-dev-1 as I said was going to do last week.) -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php