I have a ZSH completer that provides the expected completions, but provides them in lexicographical order, as opposed to the order in which they were added via compadd
:
_matcher_complete() {
(git ls-files 2>/dev/null || find .) | /usr/local/bin/matcher -l20 ${words[CURRENT]} | while read line; do
compadd -U "$line"
done
compstate[insert]=menu
}
zle -C matcher-complete complete-word _generic
zstyle ':completion:matcher-complete:*' completer _matcher_complete
zstyle ':completion:matcher-complete:*' menu-select
bindkey '^X^T' matcher-complete
How can I order the completions by insertion order?