From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: "Zsh Users" <zsh-users@sunsite.dk>
Subject: Re: Equivalent of compctl -L with "new" completion system?
Date: Tue, 18 Jul 2006 20:30:08 +0100 [thread overview]
Message-ID: <200607181930.k6IJU8MS002714@pwslaptop.csr.com> (raw)
In-Reply-To: Message from "John Reese" <john.reese@gmail.com> of "Tue, 18 Jul 2006 11:32:54 PDT." <488030720607181132l372c5613y91108869dac9760b@mail.gmail.com>
"John Reese" wrote:
> Is there a command or function that will (a) list all commands that
> have custom (zshcompsys) completions and indicate what they are, and
> (b) do the same, but only for a given command, like
>
> (a) compctl -L
> and
> (b) compctl -L svn
You can do
print -l ${(k)_comps}
to show the contexts for which there are completions. This includes
both command names and special contexts such as
-value-,DISPLAY,-default- (the value of the DISPLAY environment variable).
print ${_comps[svn]}
will show you if a given command is handled and if so by what function.
--
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next prev parent reply other threads:[~2006-07-18 19:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <john.reese@gmail.com>
2006-07-18 18:32 ` John Reese
2006-07-18 19:30 ` Peter Stephenson [this message]
2006-07-18 19:31 ` John Reese
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=200607181930.k6IJU8MS002714@pwslaptop.csr.com \
--to=p.w.stephenson@ntlworld.com \
--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).