From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10087 invoked by alias); 26 Feb 2013 06:09:38 -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: 17645 Received: (qmail 10515 invoked from network); 26 Feb 2013 06:09:26 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.42 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=hKOFYOpJYNU4Dck1vadeerDhU/wP0B/3f2GAPTqGSaA=; b=WcssDxY9bqjKr0FTo14PTR/0Yz9kau3Cyclfbtzm3YMjp4PJun2u22u7JJpe6A6plb nYseuc55msk3glFOLTwcDhvbUW8DKkzKQIajeDp6oJKYif6N1/Q9ZNCUon+vMFAg0KE4 6gUqP8KATkZwJAh78WhW8zoSZouXthuKZEFS5FqHhlJc007z6LYm1eXWCYarOWTvLw2R YFBIBakIgQfx5seDClpueRhsuWX+Xu9mHHRsh3V99/Ba/HAgJORLUw8msdKr1rn1y5NA +zfJkDnANrtlYYamP/r3nqMkF1M7EoSTiTSyKI3wni2/s6WJCQUo2SGlON4YVko58QeD zrGQ== MIME-Version: 1.0 X-Received: by 10.49.12.194 with SMTP id a2mr8025111qec.11.1361858960860; Mon, 25 Feb 2013 22:09:20 -0800 (PST) Date: Tue, 26 Feb 2013 01:09:20 -0500 Message-ID: Subject: Zsh completion configuration with history-words as another group to _complete From: joe M To: zsh-users@zsh.org, zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Hello, I am trying to figure out how to add "history-words" as a group within _complete, similar to aliases or functions. zstyle -e ':completion:*' completer \ 'compprefuncs=(_history_word_list) reply=(_complete _match _approximate _ignored _prefix)' cat /usr/share/zshcat /usr/share/zsh/5.0.2/functions/Completion/Base/_history_word_list #autoload _history "$@" return 0/5.0.2/functions/Completion/Base/_history_word_list #autoload _history "$@" return 0 The list of history-words show up along with any other groups shown by _complete or any of the completers in "reply". But, unfortunately, it does not execute the matched word with one Enter keypress. I need to press Enter twice for the history word to be used. I am not sure if the above is the correct approach to this issue, or, if I should be looking at changing _complete to add the _history_words_list as a tag within the _complete function instead. Any thoughts, please? Thanks Joe