From: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh-workers@zsh.org
Subject: Re: Issue with insert-sections style
Date: Thu, 9 Sep 2010 20:00:30 +0100 [thread overview]
Message-ID: <20100909200030.140f4da0@pws-pc> (raw)
In-Reply-To: <m3hbhyrdya.fsf@klanderman.net>
On Thu, 09 Sep 2010 14:04:13 -0400
Greg Klanderman <greg@klanderman.net> wrote:
> >>>>> On September 9, 2010 Julius Plenz <julius@plenz.com> 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 <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next prev parent reply other threads:[~2010-09-09 20:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 14:50 Julius Plenz
2010-09-09 16:34 ` Bart Schaefer
2010-09-09 18:04 ` Greg Klanderman
2010-09-09 19:00 ` Peter Stephenson [this message]
2010-09-10 13:50 ` Greg Klanderman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100909200030.140f4da0@pws-pc \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).