Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: menu selection and enter key
- X-seq: zsh-users 5960
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: "Virginia Mann" <tuanglen@xxxxxxxxxxx>
- Subject: Re: menu selection and enter key
- Date: Mon, 10 Mar 2003 14:55:22 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <BAY1-F126hivuAiXC9q0002f693@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <BAY1-F126hivuAiXC9q0002f693@xxxxxxxxxxx>
"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. <tab><tab><tab> yes, that's the one I want<enter>, 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 <enter>, 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author