Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
carriage return (<enter> key) behavior during menu completion
- X-seq: zsh-users 14642
- From: Linus Arver <linusarver@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: carriage return (<enter> key) behavior during menu completion
- Date: Sun, 13 Dec 2009 13:42:47 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:x-x-sender:to :subject:message-id:user-agent:mime-version:content-type; bh=PDy4Ghz1HGxyQq1TZ7kunleKeyaBNgoxd8YlfwejAxs=; b=NV+ZHWkr+hmdQfPPT+uma6/JsIcNy6P5VmAFoYOHJs8UXHlDIqYC4HmWjHMvekBUjK y7N7Bjy5Rgvqb/CNqIxwf5ol5joffPbO+ZPuJDMmk99x3Mf9lg0TUFGhc1RQ8WuOCbMM LqBcMBqOWoK1xzd433RxovZgShrgpbSOLIL/w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:x-x-sender:to:subject:message-id:user-agent:mime-version :content-type; b=erlvBqCy3tihi72hAefkQKvxUJoe5hJOi+f30pvbBQhN75jajaurIjOZscyt2IqdY7 Grn43JtoOWBNo+RYy7aKTqCHcn7ks7qLtlDU9SmI4O1vNWjsjVZUMMxKRs5qz6STS0mT 3w2Uq5xlt1egSJY6B9QywLGEdhquTzfYzWjuc=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
I have in my ~.zshrc:
autoload -U compinit
compinit
setopt menu_complete
zstyle ':completion:*' menu select=1 _complete _ignored _approximate
LISTMAX=9999
If I do "cd <tab>", zsh will list all the directories in a menu. However, after
<tab>-ing to a directory I want, I have to press the <enter> key twice -- once
to exit the menu, and once more to execute the cd command with the selected
directory. Is there a way to make it so that I only have to press <enter>
_once_ to execute the command whenever the completion menu is running?
Interestingly, <enter> behaves like I want it to without menus (without the
'zstyle' line above), but with the menus, it's different for some reason.
Thanks,
Linus
Messages sorted by:
Reverse Date,
Date,
Thread,
Author