zsh-users
 help / color / mirror / code / Atom feed
From: "John Reese" <john.reese@gmail.com>
To: "Peter Stephenson" <p.w.stephenson@ntlworld.com>
Cc: "Zsh Users" <zsh-users@sunsite.dk>
Subject: Re: Equivalent of compctl -L with "new" completion system?
Date: Tue, 18 Jul 2006 12:31:38 -0700	[thread overview]
Message-ID: <488030720607181231p38f3280ct85f824e1d650256d@mail.gmail.com> (raw)
In-Reply-To: <200607181930.k6IJU8MS002714@pwslaptop.csr.com>

On 7/18/06, Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
> "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.

Neat.  Thanks.


      reply	other threads:[~2006-07-18 19:31 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
2006-07-18 19:31     ` John Reese [this message]

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=488030720607181231p38f3280ct85f824e1d650256d@mail.gmail.com \
    --to=john.reese@gmail.com \
    --cc=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).