Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: menu-select interactive mode



On 9 April 2011 16:56, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> 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.

Additionally, when you do the second one, ie set both select and
interactive, the menu-select widget does invoke interactiveness, so my
guess is the code simply checks the style instead of also checking
which widget invoked it.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author