From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23392 invoked from network); 5 May 2004 15:07:10 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 5 May 2004 15:07:10 -0000 Received: (qmail 29272 invoked from network); 5 May 2004 15:06:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 May 2004 15:06:48 -0000 Received: (qmail 2105 invoked by alias); 5 May 2004 15:06:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19881 Received: (qmail 2069 invoked from network); 5 May 2004 15:06:45 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 5 May 2004 15:06:42 -0000 Received: (qmail 28328 invoked from network); 5 May 2004 15:06:07 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 5 May 2004 15:06:06 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 291B77004A; Wed, 5 May 2004 11:05:35 -0400 (EDT) Date: Wed, 5 May 2004 11:05:35 -0400 From: Clint Adams To: Paul Joey Clark Cc: zsh-workers@sunsite.dk, ian@caliban.org Subject: Re: use tab-completion rules extracted from man page Message-ID: <20040505150535.GA27529@scowler.net> References: <20040505024226.GA22722@hwi.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040505024226.GA22722@hwi.ath.cx> User-Agent: Mutt/1.5.5.1+cvs20040105i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.9 required=6.0 tests=BAYES_30 autolearn=no version=2.63 X-Spam-Hits: -0.9 > 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.