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

REC_EXACT and AUTO_MENU, and compctl -U too

One thing that's annoyed me for a very long time is the interaction of
recexact with automenu.  Suppose I have both options set.

zsh% /usr/li

The possible completions at this point are /usr/lib and /usr/libexec.  I
press TAB (which is bound to expand-or-complete).

zsh% /usr/lib

This is not a completion; it's the unique prefix of a menu completion, or
it would be in most circumstances.  With recexact, though, when I press
TAB again expecting to menucomplete to libexec, I instead get /usr/lib/
and now I can only complete within that directory.

What I'd like is to have recexact behavior when I type the entire prefix
and automenu behavior when zsh supplies the prefix.

While I'm on the subject of mildly stupid completion behavior, automenu
in conjunction with compctl -U could do with a bit of work.  It'd be a
lot more useful if menu completion kicked in immediately when compctl -U
returns multiple matches and automenu is set.  Otherwise you lose both
the set of completions and the nonunique suffix as soon as the first TAB
is pressed.

I haven't dug around in the code for either of these yet; any conflicting
opinions on whether this is worthwhile?  Any remarks on how difficult they
are to pull off?

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Messages sorted by: Reverse Date, Date, Thread, Author