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

Re: zsh's answer to the bash completion fm project

John Buttery wrote:

> ...
>   So that changes my original question to: Can/should we have a file for
> compctl recipes, and then a directory containing the files for the stuff
> made with the new system?

About the compctl part: I'd only consider such a list of
compctl-commands to be a todo-list of things that should be
implemented for the new system.  And that may actually be helpful.
I'm not sure that there will be many such cases, though, with the new
system being as comprehensive as it already is.

About the function-directory: the new system uses a hierarchy of
directories for classification and easier management.  New functions
will and should be put into it (and hence will end up in the

For both parts: one of the things to look out for is opinions and
suggestions for different ways completion behaves.  We recently had
someone who user@host completions to be inserted in one go, not with
`us<TAB>ho<TAB>'.  Collecting such things would be interesting so that
we get a list of things we can try to make possible in the new system.

>   Oh, and to the people who wrote me privately, pointing out that
> compctl is strongly deprecated in favor of the new system, that it
> sucks, etc etc...yes, I know this, I wasn't suggesting we advocate using
> it.  All I meant was that if a recipe exists for compctl and hasn't been
> ported to the new system yet, we should still include it unless using
> both systems at once is impossible and/or a huge resource hit.

I think they can still be combined, at least they should.  The
overhead for compctl from a user's point of view is basically that
there is another module loaded (for systems without dynamic linking it
has to be linked into the zsh binary).  From my point of view there is
quite a bit of legacy code in the completion code that's only needed
to support compctl.  And I hate that, but don't see a way around it.


Sven Wischnowsky                          wischnow@xxxxxxxxx

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