zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Thomas Lauer <thomas.lauer@gmail.com>
Cc: Thomas Lauer <thomas.lauer@virgin.net>, Zsh Users <zsh-users@zsh.org>
Subject: Re: _pick_variant
Date: Sat, 14 Nov 2020 11:21:13 -0800	[thread overview]
Message-ID: <CAH+w=7b1jf_ZMj4x6yEfsq30BHpXp9YbYCg_3BnerL6-BYTnkg@mail.gmail.com> (raw)
In-Reply-To: <20201114095651.bc9745dd9453d9011f16fdcb@gmail.com>

On Sat, Nov 14, 2020 at 1:56 AM Thomas Lauer <thomas.lauer@gmail.com> wrote:
>
> On Fri, 13 Nov 2020 14:26:34 -0800 Bart Schaefer
> <schaefer@brasslantern.com> wrote:
> >
> > It is conceivably possible to rewrite compinit such that it does not
> > install completions for commands not found in $path
>
> This is indeed what I was half expecting, given that zsh completion is
> such a powerful and flexible beast.

The trouble with this is that there are completion routines included
with the distribution that are designed for autoloadable functions
also included with the distribution.  If compinit filters out
completions for commands not found in $path (plus builtins), it will
miss out the completions for those "standard" functions too.

It's probably just as well to let compinit do its usual thing and then
remove the completions you don't want, as discussed at
https://zsh.org/users/26048


      reply	other threads:[~2020-11-14 19:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-13 17:41 _pick_variant Thomas Lauer
2020-11-12 18:35 ` _pick_variant Bart Schaefer
2020-11-12 18:40   ` _pick_variant Roman Perepelitsa
2020-11-12 19:07     ` _pick_variant Ray Andrews
2020-11-12 19:17       ` _pick_variant Roman Perepelitsa
2020-11-12 19:20       ` Fwd: _pick_variant JAMES R CUTLER
2020-11-13  9:34   ` _pick_variant Thomas Lauer
2020-11-13 10:42     ` _pick_variant Roman Perepelitsa
2020-11-13 10:57       ` _pick_variant Thomas Lauer
2020-11-13 11:18       ` _pick_variant Roman Perepelitsa
2020-11-13 22:26       ` _pick_variant Bart Schaefer
2020-11-14  9:56         ` _pick_variant Thomas Lauer
2020-11-14 19:21           ` 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=7b1jf_ZMj4x6yEfsq30BHpXp9YbYCg_3BnerL6-BYTnkg@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=thomas.lauer@gmail.com \
    --cc=thomas.lauer@virgin.net \
    --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).