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

Re: use tab-completion rules extracted from man page



> I wrote this script to extract all the - and -- options of any program
> from its man page, and use them as possible words for completion.

The _arguments function can already extract options from the --help
output of the program, though not the manpage.

> 	compctl -f -c -u -r -K joeyComplete -H 0 '' "*" -tn

compctl is the old, deprecated method of zsh programmable completion.  You
may want to look into the new, function-based (compsys) method to
achieve your ends.



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