From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Eric Cook <llua@gmx.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: How to disable completion for a builtin? (actually a reserved word) + an apparent bug
Date: Thu, 25 Jul 2019 10:58:47 +0200 [thread overview]
Message-ID: <CAKc7PVC5ycr5WyFer2xPZDV4MhMs5r+znDnUQDKSf4jMg-4VQg@mail.gmail.com> (raw)
In-Reply-To: <2f038b00-dac8-51ea-28d7-ef9db4d4e0f8@gmx.com>
On Thu, 25 Jul 2019 at 02:49, Eric Cook <llua@gmx.com> wrote:
>
> On 7/24/19 11:39 AM, Sebastian Gniazdowski wrote:
> >
> > I don't want to change disable's completion. What I want is that:
> >
> > % decl<TAB>
> >
> > will not try to complete "declare".
> >
>
> zstyle :completion::complete:-command-::commands ignored-patterns declare
A perfect solution. I was about to double (in a plugin) the _*
function responsible for doing the commands completion and apply a
filter there, and now I don't have to.
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
prev parent reply other threads:[~2019-07-25 8:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20190724141945epcas1p30d69e2d7ba1ce29f994ff486284d4553@epcas1p3.samsung.com>
2019-07-24 14:18 ` Sebastian Gniazdowski
2019-07-24 14:27 ` Peter Stephenson
2019-07-24 14:56 ` Sebastian Gniazdowski
2019-07-24 15:02 ` Sebastian Gniazdowski
2019-07-24 15:15 ` Peter Stephenson
2019-07-24 15:39 ` Sebastian Gniazdowski
2019-07-24 15:48 ` Peter Stephenson
2019-07-24 15:59 ` Sebastian Gniazdowski
2019-07-24 19:50 ` Eric Cook
2019-07-25 8:58 ` Sebastian Gniazdowski [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=CAKc7PVC5ycr5WyFer2xPZDV4MhMs5r+znDnUQDKSf4jMg-4VQg@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--cc=llua@gmx.com \
--cc=zsh-workers@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).