From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14712 invoked by alias); 17 Jun 2016 23:56:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38713 Received: (qmail 5095 invoked from network); 17 Jun 2016 23:56:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1466207422; bh=bowxtu8LyDaPI1bB9qvkEZu5dWZk0ZRkaWFU7B3xb1w=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=OnG4zZs0MP38rEmG30rnlcThfbYE4yMZyrAIctp8rSIiT5wF6nszDPxCQkGZGQZ23rt3UyOYqI9zKuimoJFWtZtdWm9bpm/mOovzcpapKY95lile1wt7Kp1Drv6NEXgKlCDF6YCPz/zMad+e/DfyaRrzLFc8r4q5c7Kg/IwoZpfilQPCzOOtAeK6M+gSrzSM0Puzu8l9dXL2KwtfENZHK5p1NIrWNOZ5bCSsPNx3Obor50TXhFLlRd2oufPk37ymMYBK4LXGhwYnh9NjnZrGX5XonEzu3F8cCWVthYgdXthdrFmz36FXMTL4ZQ6vj0F982NYds7iMGuVpp0ZJi0YJA== X-Yahoo-Newman-Id: 641344.73526.bm@smtp144.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: bflJNzQVM1mkGQTroamtDG2UHgkCQYeXcUtyKsmJBKQBFud OpRDO_R98HR1cLcRQXT58O4YWCsR6mbkO1GliDGx3RNfmqPv_EUzP84nzRTO Lt.6WTJ0Yrcexplqm9R801_6SSG.qQ0Ena4SV.CNMNPP19vrRnIp_nYcl6UM KSSgll3YMFh.4V8T73G4gLrKRkZJxPa6GWnISt0IeSMg.Hh1osqlVBIMIvKN F6SRHxQ8oDsUTkHXtS0illjFR5yN8oAcTkAxBvre8.OuzbkgDvbyxTXzxJWm 4rpBbNVub_OnzLfhojrfdF8KQl2pvahtwxfOx99RHxwLmdkYFEIVUM3WmhjQ Mm6vEe_M.sbLFZ7Ph6n1OxmeGSXbM.IWQBe.BG44wMFfSHSIyzfdEWObBWVl CLypB1_U.BrUOj6Z9NJubIGVfDmIAeBdM0M4vVLiaoHJlXs9hD72lPKoNwDG liLK2sKFs74CAlsKyl2rOAqsY81WTHrgE5s0N_Xt0cG5i9XJYz2CSeEIVvEE xejdp2Qck7qpJaVMJAWgQcBYXaPij7g-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <160617111101.ZM488@torch.brasslantern.com> From: Oliver Kiddle References: <87oa76172f.fsf@secretsauce.net> <160612174712.ZM10957@torch.brasslantern.com> <3670.1465855245@thecus.kiddle.eu> <160614091402.ZM17103@torch.brasslantern.com> <9937.1466008377@thecus.kiddle.eu> <20160615232437.GA28886@tarsus.local2> <17354.1466180383@thecus.kiddle.eu> <160617111101.ZM488@torch.brasslantern.com> To: zsh-workers Subject: Re: Regression: broken completion on modification time MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <20296.1466207365.1@thecus.kiddle.eu> Content-Transfer-Encoding: 8bit Date: Sat, 18 Jun 2016 01:50:21 +0200 Message-ID: <20306.1466207421@thecus.kiddle.eu> Bart wrote: > } How would you want to present the exactly match given that it inserts > } nothing? In the past with the match -- description form, we didn't > } include it. With the description only form it is less out-of-place. > > Isn't there a way to stick a dummy match into the listing just to take > up space so that only the description will appear? Without the verbose style, descriptions are »before«, »exactly« and »since« You can select »exactly« but it inserts nothing. With verbose (and the recent patch), they are: »+ -- before« and »- -- since« exactly is omitted So if exactly is to be included there as requested by Daniel, it would need to be something like »'' -- exactly«, » -- exactly« or just »exactly«. > I think that in any case where the calendar won't be displayed [almost] > immediately, an entirely different set of matches should be passed to > compadd, or at least they should be added in a different order. The Okay, lets try the following. Looking at _main_complete, checking $MENUSELECT is perhaps better than $_def_menu_style. If someone has a setup where they defer menu selection and are bothered that they now miss out on the calendar, we can add a style or something. Or is there some way to prevent the completion system from saving the old_list? Matches can't be added in a different order while preserving the layout. Without the layout, the numbers alone are useless regardless of their order. Oliver diff --git a/Completion/Unix/Type/_dates b/Completion/Unix/Type/_dates index 83397b4..0b9cead 100644 --- a/Completion/Unix/Type/_dates +++ b/Completion/Unix/Type/_dates @@ -37,6 +37,7 @@ _tags dates || return 0 _comp_mesg=yes _description -2V -x dates expl date compadd "${@:/-X/-x}" "$expl[@]" - +[[ -z $MENUSELECT && $WIDGET != menu-select ]] && return [[ -n $PREFIX$SUFFIX ]] && return 0 (( rows )) || return 0 compstate[list]='packed rows'