Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh completion configuration with history-words as another group to _complete
- X-seq: zsh-users 17649
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Zsh completion configuration with history-words as another group to _complete
- Date: Tue, 26 Feb 2013 08:26:11 -0800
- In-reply-to: <CAHjjW152=f9aBk52CxpFWWioPi__U04eEktdW5iWVTkYSDMr6A@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAHjjW152=f9aBk52CxpFWWioPi__U04eEktdW5iWVTkYSDMr6A@mail.gmail.com>
On Feb 26, 1:09am, joe M wrote:
}
} zstyle -e ':completion:*' completer \
} 'compprefuncs=(_history_word_list) reply=(_complete _match
} _approximate _ignored _prefix)'
I'm now regretting having mentioned compprefuncs in that thread last
month. Really, just don't mess with it unless you know exactly why
you need it.
} 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.
That's probably because _history is adding so many matches that a menu
is always being invoked.
} I am not sure if the above is the correct approach to this issue
I think my previous response covers this ...
(BTW, zsh-workers see all zsh-users postings, no need to copy both lists.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author