From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11013 invoked from network); 23 May 2002 12:16:13 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 May 2002 12:16:13 -0000 Received: (qmail 20945 invoked by alias); 23 May 2002 12:16:05 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17213 Received: (qmail 20933 invoked from network); 23 May 2002 12:16:04 -0000 From: Sven Wischnowsky MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15596.56689.94384.139697@wischnow.berkom.de> Date: Thu, 23 May 2002 14:15:45 +0200 To: zsh-workers@sunsite.dk Subject: Re: aggregated options in completion lists In-Reply-To: <20020521085001.GA3752@logica.com> References: <1021212626.4179.3.camel@localhost.localdomain> <15584.50137.133265.722041@wischnow.berkom.de> <15593.65325.907154.556245@wischnow.berkom.de> <20020521085001.GA3752@logica.com> X-Mailer: VM 6.95 under 21.5 (patch 3) "asparagus" XEmacs Lucid Oliver Kiddle wrote: > On Tue, May 21, 2002 at 10:02:53AM +0200, Sven Wischnowsky wrote: > > > > The calculation for max-match-length (still no better name) could > > How about max-matches-width? Or maybe max-width-matches. I've taken the former. Thanks. Bye Sven Index: Completion/Base/Utility/_describe =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_describe,v retrieving revision 1.12 diff -u -r1.12 _describe --- Completion/Base/Utility/_describe 14 May 2002 08:01:18 -0000 1.12 +++ Completion/Base/Utility/_describe 23 May 2002 12:15:29 -0000 @@ -25,7 +25,7 @@ zstyle -T ":completion:${curcontext}:$_type" verbose && _showd=yes zstyle -s ":completion:${curcontext}:$_type" list-separator _sep || _sep=-- -zstyle -s ":completion:${curcontext}:$_type" max-match-length _mlen || +zstyle -s ":completion:${curcontext}:$_type" max-matches-width _mlen || _mlen=$((COLUMNS/2)) _descr="$1" Index: Completion/Zsh/Command/_zstyle =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Command/_zstyle,v retrieving revision 1.10 diff -u -r1.10 _zstyle --- Completion/Zsh/Command/_zstyle 14 May 2002 08:01:18 -0000 1.10 +++ Completion/Zsh/Command/_zstyle 23 May 2002 12:15:29 -0000 @@ -80,7 +80,7 @@ matcher c: matcher-list c: max-errors c: - max-match-length c:max-match-length + max-matches-width c:max-matches-width menu c:boolauto muttrc c:_files numbers c:bool @@ -383,8 +383,8 @@ _message -e separators 'separator string' ;; - max-match-length) - _message -e numbers 'maximum display length for matches' + max-matches-width) + _message -e numbers 'maximum display width for matches' ;; urgh) Index: Doc/Zsh/compsys.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/compsys.yo,v retrieving revision 1.156 diff -u -r1.156 compsys.yo --- Doc/Zsh/compsys.yo 14 May 2002 08:01:18 -0000 1.156 +++ Doc/Zsh/compsys.yo 23 May 2002 12:15:30 -0000 @@ -1766,9 +1766,9 @@ The default value for this style is `tt(2 numeric)'. ) -kindex(max-match-length, completion style) -item(tt(max-match-length))( -This is used to define the maximum length to use for the matches when +kindex(max-matches-width, completion style) +item(tt(max-matches-width))( +This is used to define the maximum width to use for the matches when listing matches with descriptions. In such lists, matches with the same description will be grouped together, but that means that in cases where many matches have the same description, the matches take -- Sven Wischnowsky wischnow@berkom.de