From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11653 invoked from network); 29 Jun 2001 08:22:37 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 Jun 2001 08:22:37 -0000 Received: (qmail 15521 invoked by alias); 29 Jun 2001 08:21:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15176 Received: (qmail 15506 invoked from network); 29 Jun 2001 08:21:46 -0000 To: Peter Whaite Cc: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Picky criticism of ls completion list formatting References: <200106281949.PAA16170@aragorn.cortexmachina.com> From: Alexandre Duret-Lutz X-Home-Page: http://www.epita.fr/~duret_g/ X-Attribution: adl Organization: LRDE/EPITA http://www.lrde.epita.fr/ Date: 29 Jun 2001 10:27:29 +0200 In-Reply-To: <200106281949.PAA16170@aragorn.cortexmachina.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>> "Peter" == Peter Whaite writes: [...] Peter> OK I see. The (GNU) ls algorithm uses variable column Peter> widths separated with 2 spaces, whereas zsh by default Peter> uses the same column width for all the columns separated Peter> by 3 spaces. List_packed makes the widths variable but Peter> still keeps the spacing of 3. I looked at this about a year ago, so things maybe different now, but IIRC both ls and zsh use 2 spaces to separate columns. The difference is that for ls -F the file-type-character is part of the filename while Zsh for Zsh it's separate. If list_types is set, Zsh will add a third column to display this additional character. Thus if you have only plain files, Zsh will appear to separate column with spaces through actually one of them is a file-type-charater. This should be obvious if you highlight this caracter, for instance with: zstyle ':completion:*:default' list-colors 'tc=03;31' [...] -- Alexandre Duret-Lutz