Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: menu-select interactive mode
- X-seq: zsh-workers 28981
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: menu-select interactive mode
- Date: Sat, 9 Apr 2011 17:02:12 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ZrdaYUIbjF5bwsZ5G7ge8lSNrrMGA0RKvgAga0TiOWA=; b=XEZTgz5Y8koXkhBsVHfTAvM545XvfctxHRMai6shAFekreFW+BXnE+J3O/8UyS1hqe MKsOgBf97Rqk/vy2Sq5DDd8GRqcxSPxV6CxCGU0+/Ke3dJl/bU1kkPxyrR1NKCLE6RGb FnvJRU45ekxcvJY6ZwkKs6pBA7D0FQlj5HJ+E=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Aee+rjoP7X3qLr/Eaj3wWY21n1t7QohrQDVbtl47CA7sOamxYbM0uuc6pB/ajK9j7l yJsh92KrO84M8HEaIkYEeYnCUW6OE61XiR86+LgsOdFqDJ2fBs2nt56DePLJtoREKCs3 V94+aTVJA29ca0OnDw3je+mLKyIAcCFunRnWs=
- In-reply-to: <BANLkTinRkfcNJWnYnooqSDWTYG2q1VrcZQ@mail.gmail.com>
- 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
- References: <BANLkTinRkfcNJWnYnooqSDWTYG2q1VrcZQ@mail.gmail.com>
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