zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: menu-select interactive mode
Date: Sat, 9 Apr 2011 17:02:12 +0200	[thread overview]
Message-ID: <BANLkTik_Ugey6bgCRXBz-fzgheod8htJYA@mail.gmail.com> (raw)
In-Reply-To: <BANLkTinRkfcNJWnYnooqSDWTYG2q1VrcZQ@mail.gmail.com>

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


  reply	other threads:[~2011-04-09 15:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-09 14:56 Mikael Magnusson
2011-04-09 15:02 ` Mikael Magnusson [this message]
     [not found]   ` <BANLkTinRkfcNJWnYnooq SDWTYG2q1VrcZQ@mail.gmail.com>
2011-04-09 20:12   ` Bart Schaefer
2011-04-09 20:58     ` Mikael Magnusson
     [not found]       ` <110410074855.ZM9428@ torch.brasslantern.com>
2011-04-10 14:48       ` Bart Schaefer
2011-04-10 15:37         ` Mikael Magnusson
2011-04-10 18:50           ` Bart Schaefer
2011-04-10 19:19             ` Mikael Magnusson
2011-04-24 10:40             ` Jun T.
2011-04-24 18:38               ` Bart Schaefer
     [not found]                 ` <a06240800c9db5111c85e@kba.biglobe.ne.jp>
2011-04-26  0:55                   ` Bart Schaefer
2011-04-26 16:31                     ` Jun T.
2011-04-24 12:18         ` Jun T.
2011-04-24 19:13           ` Bart Schaefer
2011-04-26  0:06 Jun T.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTik_Ugey6bgCRXBz-fzgheod8htJYA@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).