From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6589 invoked by alias); 9 Apr 2011 15:02:20 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28981 Received: (qmail 20188 invoked from network); 9 Apr 2011 15:02:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) 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= MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 9 Apr 2011 17:02:12 +0200 Message-ID: Subject: Re: menu-select interactive mode From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 On 9 April 2011 16:56, Mikael Magnusson 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