Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: use tab-completion rules extracted from man page
- X-seq: zsh-workers 19881
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Paul Joey Clark <pclark@xxxxxxxxxxxxx>
- Subject: Re: use tab-completion rules extracted from man page
- Date: Wed, 5 May 2004 11:05:35 -0400
- Cc: zsh-workers@xxxxxxxxxx, ian@xxxxxxxxxxx
- In-reply-to: <20040505024226.GA22722@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20040505024226.GA22722@xxxxxxxxxx>
> 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