From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26485 invoked by alias); 9 Sep 2010 20:12:47 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28248 Received: (qmail 17977 invoked from network); 9 Sep 2010 20:12:43 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MISSING_HEADERS autolearn=no version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.56 as permitted sender) Date: Thu, 9 Sep 2010 20:00:30 +0100 From: Peter Stephenson Cc: zsh-workers@zsh.org Subject: Re: Issue with insert-sections style Message-ID: <20100909200030.140f4da0@pws-pc> In-Reply-To: References: <20100909145014.GL2506@plenz.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=4QByPj+6Iq2k/6L54d+eVKTdgQxdscpRskJJReCfdXo= c=1 sm=0 a=iGsURRE0INUA:10 a=4YI7mmuYAqcA:10 a=kj9zAlcOel0A:10 a=0QhtZkFNAAAA:8 a=HYG4G6p_AAAA:8 a=NLZqzBF-AAAA:8 a=5dd8YVyIUvOUIklCmLMA:9 a=8m4Q53VghSIVw24uWHHWnh28Fl4A:4 a=CjuIK1q_8ugA:10 a=KLYB3oV4TgcA:10 a=GqRKa4PrDMEA:10 a=_dQi-Dcv4p4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 On Thu, 09 Sep 2010 14:04:13 -0400 Greg Klanderman wrote: > >>>>> On September 9, 2010 Julius Plenz wrote: > > > zstyle ':completion:*' group-name '' > > zstyle ':completion:*:descriptions' format 'completing %B%d%b' > > zstyle ':completion:*:manuals' separate-sections true > > As an aside, can someone help me with the right zstyle syntax to have > the first two lines above apply only to man page completions? What you're supposed to do is use ^Xh in the context where you want the style to apply and work it out from that. The tag would be after the last colon shown. I think using the command name and tag would be good enough, :completion:*:*:man:*:manuals. There are some limitations on whether some styles are looked up with the tag, in which case you're out of luck with making it specific to manual pages, but you should still be able to use the command, :completion:*:*:man:*:*. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/