From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20067 invoked by alias); 28 Feb 2013 01:13:32 -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: 31078 Received: (qmail 12589 invoked from network); 28 Feb 2013 01:13:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.co.uk does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1362013660; bh=lb8/7GucK9/2B3CTyCivzEJPeX5U8rJ2zkJPVidgIt0=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=RFhWISy3OeiTsVEjLK9Pui+0qu3fEDxhpIhaxxeNJfgLlzl1BjSIBTBwt+Vq1zroaGusv9+8R59NFUJMI0vuFRbw8jtiPPgVVOB0uwDGy4wYxZ+vPPHrY2JWruiZ7Uo4IBc2kNON76Xn3MPpJ3CMGLz8G1VzVUCJ0c7s3Cf5fT8= X-Yahoo-Newman-Id: 323409.45438.bm@smtp124.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ZcxhunIVM1l.yLSuDZOWHaKoCj5cSbDGQWea1lM9P6m7HCZ 5PkLZPhs3zMBHKmZu8KSAknSQgIp2FT3LPTVlq.mIrO3N00MSs0PQhboHaZn aUJkU0bVqLRra4Cmowt6.YcjAKLijz7FdZasOMEba9Il68UoRCANR3TDpACI 2ub60cvPHUn_PP8.NCKGtaGfy06HDh.hLDUE3kqSHjU1XVbOQHI8kjUw6SJY 6Lt04aDFaBf334vt5exbJ1Blt6eV0qD4l9WERepl3O6ZDLNiYMaMXRdhiuxt BNsrEX55Dc4k6ANN1SjBCrcosvCJ7x3uxI9JHea2ZJPHzWfkEdfUrOaSsljf XYRPu8aZKK.DAL2uxeVjYn0NbByG_zljV66xc1HLvP5g0sIoXma9ZA6gjY2N ZHGvIGg4Tz_APm7ckmtboRrHs4bBAnBfjZwTwq9vtu1CNdQ-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <21084.1361986051@thecus.kiddle.eu> From: Oliver Kiddle References: <21084.1361986051@thecus.kiddle.eu> To: Olivier Teuliere , zsh-workers@zsh.org Subject: Re: Limitations of menuselect MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26010.1362013641.1@thecus.kiddle.eu> Date: Thu, 28 Feb 2013 02:07:39 +0100 Message-ID: <26011.1362013659@thecus.kiddle.eu> I wrote: > Was this perhaps a bug introduced later > such as when local keymaps were added? It does work correctly as mentioned by Peter so sorry for the misinformation. I think I got mixed up between accept-line-and-down-history and accept-and-infer-next-history. It then seems that the intention is to enable the features on logical keys from the main keymap. > > 3) When using the reverse-menu-complete widget to open menuselect, I > > would like to select the last result, not the first one (otherwise I > > can use menu-complete directly...). It doesn't sem to be possible at > > the moment. This doesn't seem to be easy to solve. It seems to be in the REVERSEMENUHOOK where it fixes things to go backwards but the initial call to reversemenucomplete is not returning from menucomplete() until it is too late. > Actually, this is possible. Bind a key to vi-insert in menuselect and > you get "interactive" mode which does this. Still, there is a lot of > ways this could be better. Unfortunately, you stay in the menuselect > keymap at this point which is irritating if you've, for example, bound / > to history-incremental-search-forward. > > I can't think of a way to go straight into this mode. The bindkey -s > trick stuck it in an infinite loop. Actually, it turns out this is as simple as including the word "interactive" in the menu style. For example: zstyle ':completion*:default' menu select=0 interactive Oliver