zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: dominik.vogt@gmx.de, Zsh Users <zsh-users@zsh.org>
Subject: Re: Where do these completions come from?
Date: Sun, 17 Oct 2021 12:00:09 -0700	[thread overview]
Message-ID: <CAH+w=7bjT1_4ZxaKRnJytf2XFwU0Vq6h9jHkzymys6AjT-dq+w@mail.gmail.com> (raw)
In-Reply-To: <20211016213045.GA8749@gmx.de>

On Sat, Oct 16, 2021 at 2:33 PM Dominik Vogt <dominik.vogt@gmx.de> wrote:
>
> On Sat, Oct 16, 2021 at 11:59:34AM -0700, Bart Schaefer wrote:
> > On Fri, Oct 15, 2021 at 1:29 PM Dominik Vogt <dominik.vogt@gmx.de> wrote:
> > >
> > > Is there a way to tell zsh only to complete parameter names that
> > > are actually in the environment and not zsh internal ones?
> >
> > It ought to be possible with the tag-order style and examination of
> > the keys/values in the $parameters special hash
>
> 'k.  Please don't waste time on this, it's not important.

Actually the tag-order part is the hard bit and probably overkill
anyway.  This should be enough:

zstyle -e :completion::complete:-command-::parameters \
  ignored-patterns 'reply=(${(k)parameters[(R)*(hidden|undefined)*])'


      reply	other threads:[~2021-10-17 19:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-15 18:40 Dominik Vogt
2021-10-15 18:46 ` Roman Perepelitsa
2021-10-15 18:56   ` Dominik Vogt
2021-10-15 19:13     ` Roman Perepelitsa
2021-10-15 20:10       ` Bart Schaefer
2021-10-15 20:26         ` Dominik Vogt
2021-10-16 18:59           ` Bart Schaefer
2021-10-16 21:30             ` Dominik Vogt
2021-10-17 19:00               ` Bart Schaefer [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='CAH+w=7bjT1_4ZxaKRnJytf2XFwU0Vq6h9jHkzymys6AjT-dq+w@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=dominik.vogt@gmx.de \
    --cc=zsh-users@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).