From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21912 invoked from network); 1 Jun 2002 20:27:04 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 1 Jun 2002 20:27:04 -0000 Received: (qmail 20549 invoked by alias); 1 Jun 2002 20:26:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5025 Received: (qmail 20537 invoked from network); 1 Jun 2002 20:26:44 -0000 From: "Bart Schaefer" Message-Id: <1020601202612.ZM9140@candle.brasslantern.com> Date: Sat, 1 Jun 2002 20:26:12 +0000 In-Reply-To: <20020531225024.A17033@radiomaranon.org.pe> Comments: In reply to Andy Spiegl "trying completion of varying data" (May 31, 10:50pm) References: <20020531225024.A17033@radiomaranon.org.pe> X-Mailer: Z-Mail (5.0.0 30July97) To: Andy Spiegl , zsh-users@sunsite.dk Subject: Re: trying completion of varying data MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii To add to what Clint suggested ... On May 31, 10:50pm, Andy Spiegl wrote: } } Looking at these working examples: } zstyle ':completion:*:*:mpg123:*' file-patterns \ } '*.(mp3|MP3):mp3\ files *(-/):directories' } } zstyle ':completion:*:processes' command 'ps -au$USER' } } I tried } zstyle ':completion:*:*:xvncviewer:*' command 'show.active.pcs' } (where show.active.pcs does the above) Don't just look at the examples, look at the doc. Not all contexts use all styles. In particular, the "command" style is only used to override the default match-generating command for completions that already use such a command; it won't magically cause an arbitrary completion to start using a command to generate the matches. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net