From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25170 invoked by alias); 10 Jun 2016 17:42:02 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21642 Received: (qmail 7403 invoked from network); 10 Jun 2016 17:41:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=HRxvf4Tt7HyN4k4m2NU9fAAyuN4XDKYv5VGtapanlOI=; b=K77KEsUTkHGbVnkL1wKvKYQMNQ337EPv3yYaH+y3WR4uppdt5ZKzrGkVNN4zqtZUls FDtcZ1PIKQ2/lLDLL2431ex4M/ZMu6madZEv/oq2xHk1UFyjM05pn9gW9TQqh1hqsCuC rl31nm45Zjk1gdity9nh4HrbdV/PZQmGsYPLxfHUkUozqFUm12b+QJLVTNrEThspmoa0 G2WCrkKihsLMwvOV8Z0x91NpQPu91QMFN9VdqUmJtyEwB1P3g+tYPLwoWqfiY3t6Pc1q XKzO+33z7GNCrguYBJZrFvU7l5IVDzlofTP0d8zwPzWfaLzC3uaqctp8cNg5QWe1N7FQ cGag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=HRxvf4Tt7HyN4k4m2NU9fAAyuN4XDKYv5VGtapanlOI=; b=ViviCiDyL3wnE0+9PSs9E0aH5Qm2XFRAE1N6R/13WdrMyGSjAW9PyLp8PK3cf+Vn79 EPgOjkQ7SwKvhp7ZDLwiIn8133oKddRI0UY09XLmV9Z5BUQg6242haWdVzbT+2gYIzJT 9+h90yaKPfYQ9/a338HAcepQcxLufUohbEoC67uMTd6JhGX07BVCY6sRMjg6wIymiJ0Q 95uF6TOWeoeyQI55yEa5wVOJauvXw8dZ/licJJurCcI4Omw5FSQ4rhrYdlkGFSd7FvTw UzUOwkcfTN3Lplg6/Wi7i2FGvwdC1tJQr5G5Jaic3gN12QSpPjA5yP2Yuc3BfJos3SPR 1gkw== X-Gm-Message-State: ALyK8tKVAf3JPoHfnB2v9PiXsGSO67aj6ynmoX+P2Hc9DRKkY76mUzJmytvjSgFAVTvW+Q== X-Received: by 10.66.89.228 with SMTP id br4mr3460704pab.110.1465580514440; Fri, 10 Jun 2016 10:41:54 -0700 (PDT) From: Bart Schaefer Message-Id: <160610104206.ZM9045@torch.brasslantern.com> Date: Fri, 10 Jun 2016 10:42:06 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Are completions in some way heavy?" (Jun 10, 2:22pm) References: <160606090104.ZM11947@torch.brasslantern.com> <160607134455.ZM29902@torch.brasslantern.com> <30148.1465376630@thecus.kiddle.eu> <160608114009.ZM807@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Are completions in some way heavy? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 10, 2:22pm, Sebastian Gniazdowski wrote: } } > I think Sebastian wants to search through the descriptions, whereas } > the complist search only examines the completions themselves. } } It searches through descriptions of options. Quite nice thing. Hmm, indeed it does. It only highlights the option, not the matched search string, which is probably OK. I didn't realize this worked any differently than "interactive" in this respect (see below). } zstyle ':completion:*:*:*:default' menu yes select search Hmm again. Seems to work inconsistently, with e.g. zstyle ':completion:*' menu 'yes=long' 'select=9' search Sometimes I have to press TAB twice to enter incremental search, other times it starts the search immediately so a second TAB exits from the search again (though not all the way out of the menu). } Don't know yet how to cycle through matches, You have to bind a key in the menuselect keymap, e.g., bindkey -M menuselect ^S history-incremental-search-forward bindkey -M menuselect ^R history-incremental-search-backward If I ever knew why that isn't bound by default, I've forgotten. It probably should copy the bindings from the main keymap. } would like to leave completion on space bindkey -M menuselect ' ' accept-line (But then you can't search the descriptions for multiple word phrases.) } don't get what "interactive" mode is. It's like search, except instead of displaying the whole menu and searching through it, the list of possible matches is narrowed down as you type. THIS mode definitely does NOT search descriptions, and if both interactive and search are specified, interactive wins.