From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1019 invoked from network); 10 Mar 2003 13:52:00 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 10 Mar 2003 13:52:00 -0000 Received: (qmail 13781 invoked by alias); 10 Mar 2003 13:51:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5960 Received: (qmail 13774 invoked from network); 10 Mar 2003 13:51:27 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 10 Mar 2003 13:51:27 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [212.125.75.4] by sunsite.dk (MessageWall 1.0.8) with SMTP; 10 Mar 2003 13:51:26 -0000 Received: (qmail 24114 invoked from network); 10 Mar 2003 13:51:25 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-12.tower-1.messagelabs.com with SMTP; 10 Mar 2003 13:51:25 -0000 Received: from finches.logica.co.uk ([158.234.142.11]) by iris.logica.co.uk (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id NAA10652; Mon, 10 Mar 2003 13:51:24 GMT X-Authentication-Warning: iris.logica.co.uk: Host [158.234.142.11] claimed to be finches.logica.co.uk Received: from finches.logica.co.uk (localhost [127.0.0.1]) by finches.logica.co.uk (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id h2ADtM802433; Mon, 10 Mar 2003 14:55:22 +0100 cc: zsh-users@sunsite.dk X-VirusChecked: Checked In-reply-to: From: Oliver Kiddle References: To: "Virginia Mann" Subject: Re: menu selection and enter key Date: Mon, 10 Mar 2003 14:55:22 +0100 Message-ID: <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. accept-line in menu selection is redefined to do that. If I've understood what you want it to do correctly, you can do: double-accept() { zle accept-line && zle accept-line } zle -N double-accept bindkey -M menuselect '^M' double-accept Does that help? Oliver