From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10944 invoked from network); 11 Mar 2003 07:19:36 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Mar 2003 07:19:36 -0000 Received: (qmail 19583 invoked by alias); 11 Mar 2003 07:19:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5961 Received: (qmail 19570 invoked from network); 11 Mar 2003 07:19:14 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Mar 2003 07:19:14 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [192.35.17.28] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Mar 2003 7:19:14 -0000 Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by goliath.siemens.de (8.11.6/8.11.6) with ESMTP id h2B7JEe01335; Tue, 11 Mar 2003 08:19:14 +0100 (MET) Received: from MOWD019A.mow.siemens.ru ([163.242.196.119]) by mail2.siemens.de (8.11.6/8.11.6) with ESMTP id h2B7JDR11095; Tue, 11 Mar 2003 08:19:13 +0100 (MET) Received: by mowd019a.mow.siemens.ru with Internet Mail Service (5.5.2653.19) id ; Tue, 11 Mar 2003 10:21:29 +0300 Received: from mw2b210c (163.242.193.12 [163.242.193.12]) by MOWD019A.mow.siemens.ru with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id GWA4BM01; Tue, 11 Mar 2003 10:21:27 +0300 From: Borzenkov Andrey To: "'Oliver Kiddle'" , "'Virginia Mann'" Cc: zsh-users@sunsite.dk Subject: RE: menu selection and enter key Date: Tue, 11 Mar 2003 10:19:06 +0300 Message-ID: <6134254DE87BD411908B00A0C99B044F03A0B66A@mowd019a.mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-reply-to: <2431.1047304522@finches.logica.co.uk> > "Virginia Mann" wrote: > > I'm configuring zsh for the first time and trying to understand the > > features. > > > > I find menu completion very useful, and I like seeing the list of > candidates > > below it. yes, that's the one I want, and it > > executes. > > > > Then I found menu *selection*, which let me see where I was as I = tabbed > thru > > the candidates by highlighting where I am in the list, which is = very > > convenient. Unfortunately, when I reach the one I want and hit = , > it > > no longer executes. Now it just inserts a space and sits there = waiting > for > > me to enter more. I have to hit enter again to make it execute. >=20 But you may just as well continue editing current line without = executing it. > accept-line in menu selection is redefined to do that. If I've > understood what you want it to do correctly, you can do: >=20 > double-accept() { > zle accept-line && zle accept-line > } > zle -N double-accept > bindkey -M menuselect '^M' double-accept >=20 Would not simple bindkey -M menuselect '^M' .accept-line be easier?=20 =20 -andrey