Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
menu-select interactive mode
- X-seq: zsh-workers 28982
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: menu-select interactive mode
- Date: Sat, 9 Apr 2011 16:56:13 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=0V8YH5Y75lgF50dF6JMV3n/ekb0THwJkEUsal1miwKg=; b=xeMNth1Fg8AB1bbC/QLgwHE93HoK40QrTSlUbWFhxiu1b28W+HMyhU1+/3RLcArA00 09IoLM0HBLVqAIkBlNiybhYen/o1dHO2UQTnUmTPUIeh2SuZ56Une2BaN6PPo0RUewp2 Y2PheF7eW5y5ZptABphjsmyLo62deGYIJmTro=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=OkyGYpdLTldxSsw+jwzAE5xi1nwDYSpCWhiOABbPubbp5gtBWqwBRXV++AGbx2Br6x 4CFWrl6tCMOeJsHM3qA16+RN3vCqSB/YsioIU7PAlsCoiGzwo515eJYqDeZnzEzRyAIe nTbCABljwLdvrSwaBa4KkEFcGR/hPEGcB6oaQ=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
We were talking on irc about this, and I couldn't get it to work.
Turns out if you just set
zstyle ':completion:*' menu interactive
and invoke the menu-select widget, nothing happens. What you have to
do is either
zstyle ':completion:*' menu select interactive
but then you always get menu selection which you might not want (I
don't), so I ended up with this instead
zle -C menu-select-interactive menu-complete _generic
zstyle ':completion:menu-select-interactive:*' menu select interactive
bindkey "^[m" menu-select-interactive
(^[m was previously set to menu-select)
Is this intended or a bug? The _main_complete code leading up to
setting MENUMODE isn't very obvious to me.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author