Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Zsh completion configuration with history-words as another group to _complete



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