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

EZ-compctl (was Re: ideas: free-search-complete, noexpand)

Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

> If you meant that the description should be on a somewhat higher
> level (something like: these options, or these options followed by
> filenames, than an optional directory-name, then all files), then I
> would like to agree, but I'm not sure, how easy we can make that
> (thinking about commands like `find').

find is an extreme case.  Most people (me, for example) want to be
able to construct completions for fairly simple things like the tar
example, and some kind of easy way to do that would be useful, I
think.  A Perl script or something that would produce human-readable
compctl commands from something similar to the syntax you get in
manpages (in as much as compctl commands are ever human-readable)
would be ideal.

i.e., stuff the complex cases: just provide something that's handy.
If it produces compctl that one can read, then it'll probably help in
learning compctl too.  (Let's be honest, although the documentation to
compctl is *lots* better than it once was, this is still one of the
harder bits of zsh to learn.)

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