From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20159 invoked from network); 8 Dec 1999 10:13:41 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Dec 1999 10:13:41 -0000 Received: (qmail 10163 invoked by alias); 8 Dec 1999 10:13:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8942 Received: (qmail 10156 invoked from network); 8 Dec 1999 10:13:12 -0000 From: "Bart Schaefer" Message-Id: <991208101306.ZM15710@candle.brasslantern.com> Date: Wed, 8 Dec 1999 10:13:06 +0000 In-Reply-To: <199912080908.KAA15466@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "PATCH: hidden matches in menu-select" (Dec 8, 10:08am) References: <199912080908.KAA15466@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: hidden matches in menu-select MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 8, 10:08am, Sven Wischnowsky wrote: } Subject: PATCH: hidden matches in menu-select } } +Normally, the completion code may decide to not show of the matches in ^^^^^^^^^^^^^^^^^^^^^^^^^^ } +the list. These hidden matches are either matches for which the Once I started fixing that sentence, I just couldn't stop myself. (Maybe we should change the color-cap to "du"plicate instead of "mu"ltiple? Neither the original paragraph nor this rewite explains the derivation of "mu".) Index: Doc/Zsh/mod_complist.yo =================================================================== @@ -154,17 +154,17 @@ neither tt(ZLS_COLORS) nor tt(ZLS_COLOURS) is set, the same terminal control sequence as for the `tt(%S)' escape in prompts is used. -Normally, the completion code may decide to not show of the matches in -the list. These hidden matches are either matches for which the +The completion code sometimes decides not to show all of the matches +in the list. These hidden matches are either matches for which the completion function which added them explicitly requested that they -don't appear in the list (using the tt(-n) option of the tt(compadd) -builtin command) or they are matches which show the the same string in -the list (because they differ only in things like prefixes or suffixes -that are never listed). In the list used for menu-selection, however, -even these matches will be shown so that it is possible to select -them. To be able to highlight such matches the tt(hi) and tt(mu) -capabilities in the tt(ZLS_COLORS) and tt(ZLS_COLOURS) parameters are -supported for hidden matches of the first and second kind, respectively. +not appear in the list (using the tt(-n) option of the tt(compadd) +builtin command) or they are matches which duplicate a string already +in the list (because they differ only in things like prefixes or +suffixes that are not displayed). In the list used for menu-selection, +however, even these matches are shown so that it is possible to select +them. To highlight such matches the tt(hi) and tt(mu) capabilities in +the tt(ZLS_COLORS) and tt(ZLS_COLOURS) parameters are supported for +hidden matches of the first and second kind, respectively. Selecting matches is done by moving the mark around using the zle movement functions. The zle functions tt(send-break) and tt(accept-line) can be used -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com