From: Frank Terbeck <frank.terbeck@rwth-aachen.de>
To: zsh-users@sunsite.dk
Subject: Re: completion for man
Date: Sat, 24 Jun 2006 01:51:33 +0200 [thread overview]
Message-ID: <20060623235133.GE6528@fsst.voodoo.lan> (raw)
In-Reply-To: <20060623231954.GA30718@spiegl.de>
Andy Spiegl <zsh.Andy@spiegl.de>:
> Recently I heard/read that there is a new wonderful completion function for
> man with support sections. But my zsh (v4.3.2) doesn't do it and always
> just completes the command names:
>
> condor:~>man <TAB>
> zsh: do you wish to see all 13618 possibilities (6810 lines)?
>
> condor:~>man 8 <TAB>
> zsh: do you wish to see all 13618 possibilities (6810 lines)?
>
> Is there maybe some configuration option I have to set?
Hi Andy,
Starting from 'zsh -f' you need the following:
[snip]
zmodload zsh/complist
autoload -U compinit && compinit
zstyle ':completion:*' menu select
zstyle ':completion:*:*:man:*' menu yes
zstyle ':completion:*' group-name ''
zstyle ':completion:*:manuals' separate-sections true
zstyle ':completion:*:manuals.*' insert-sections true
zstyle ':completion:*:descriptions' format "- %d -"
[snap]
You can even do:
zstyle ':completion:*:manuals.(^1*)' insert-sections true
...to add the section number for all sections but section number one.
Regards, Frank
next prev parent reply other threads:[~2006-06-23 23:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-23 23:19 Andy Spiegl
2006-06-23 23:51 ` Frank Terbeck [this message]
2006-06-24 0:48 ` Andy Spiegl
2006-06-24 1:27 ` Frank Terbeck
2006-06-24 21:29 ` Andy Spiegl
2006-06-25 4:35 ` Bart Schaefer
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=20060623235133.GE6528@fsst.voodoo.lan \
--to=frank.terbeck@rwth-aachen.de \
--cc=zsh-users@sunsite.dk \
/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).