Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: aggregated options in completion lists
- X-seq: zsh-workers 17213
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: aggregated options in completion lists
- Date: Thu, 23 May 2002 14:15:45 +0200
- In-reply-to: <20020521085001.GA3752@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1021212626.4179.3.camel@xxxxxxxxxxxxxxxxxxxxx> <15584.50137.133265.722041@xxxxxxxxxxxxxxxxxx> <15593.65325.907154.556245@xxxxxxxxxxxxxxxxxx> <20020521085001.GA3752@xxxxxxxxxx>
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@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author