From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4910 invoked by alias); 10 Jan 2016 01:15:14 -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: 21136 Received: (qmail 3071 invoked from network); 10 Jan 2016 01:15:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EA7PXZcXQMYSyW63G5WY89RumDDNEc7F3cNjYkkloXg=; b=xyjf6k4RkcbKjgNE1KNbvIlUPwTL1Z36qreni01MVnZjHhjS+QltHKfRPpXE/fHQRX a8dJ9j5YMAGjPlIXQXdulhEMxTynr0zxSWAf7Kqmm1NdsJmoTM1vReDextdXzwMAFe7K 5cJth3tVU4IV6zBEnpOFbCnGoFWl+6UuKF90DuqlRDnR9IS+wJVV9Gdvk63wKkv8STSO LlxVNazfM37ILJmEhA+0a9Grr4ue7fYKktkuG0hR1VjytElUzFplu66ql0baevP72BXV naOgWMRnekLD6d+ZaadIQ0K53/YgoJyJsOUej/utd5zAFA4kiDmA6McYAuoWbQ12WHH0 N5kg== MIME-Version: 1.0 X-Received: by 10.140.106.37 with SMTP id d34mr157872167qgf.77.1452388510377; Sat, 09 Jan 2016 17:15:10 -0800 (PST) In-Reply-To: <160109155417.ZM4367@torch.brasslantern.com> References: <20160108093313.GA16910@linux.vnet.ibm.com> <160109155417.ZM4367@torch.brasslantern.com> Date: Sun, 10 Jan 2016 02:15:10 +0100 Message-ID: Subject: Re: Announcement of Zsh Command Architect v1.0 From: Mikael Magnusson To: Bart Schaefer Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On Sun, Jan 10, 2016 at 12:54 AM, Bart Schaefer wrote: > On Jan 8, 6:04pm, Sebastian Gniazdowski wrote: > } > } I've invoked bindkey -e, compinit and the zstyle, Alt-/ shows set of > } words, when repeated it iterates over them. One problem: duplicates. > } Any solution? > > zstyle ':completion:*:history-words' remove-all-dups true > > To find this you must either read comments in _history_complete_word > or search the docs, because of the way all the styles are grouped in > one doc section separate from all the widgets or completion functions. > > } Also, is it possible to select with cursor keys? > > You have to override the complete-word binding in the #compdef line of > _history_complete_word, like so: > > compdef -K _history_complete_word \ > _history-complete-older menu-select '\e/' \ > _history-complete-newer menu-select '\e,' > > On Jan 9, 9:21am, Sebastian Gniazdowski wrote: > } Subject: Re: Announcement of Zsh Command Architect v1.0 > } > } PS. It completes only "The_Voice...", does not propose the other > } segment "The\ Voice...", don't know why > > I'm not sure why either, because for me it works with both variations. > What does > > print -lr "${historywords[@]}" | fgrep Voice > > show in the context you are testing? Perhaps he doesn't have hist_lex_words set. -- Mikael Magnusson