From: Mikael Magnusson <mikachu@gmail.com>
To: Fourhundred Thecat <400thecat@gmx.ch>
Cc: zsh-users@zsh.org
Subject: Re: ignored-patterns: only ignore commands, not files
Date: Thu, 14 Jan 2021 15:04:12 +0100 [thread overview]
Message-ID: <CAHYJk3QBXdqp9LYLzSu=pMsKXKqgkQSSFhg0WRSs=tjdn4_7gA@mail.gmail.com> (raw)
In-Reply-To: <e9873add-7f2f-8051-73f5-db9a9568cbb8@gmx.ch>
On 1/14/21, Fourhundred Thecat <400thecat@gmx.ch> wrote:
> Hello,
>
> I have this in my .zshrc:
>
> zstyle ':completion:*' ignored-patterns 'foo'
>
> the goal is to ignore command "foo" when autocomleting. But this also
> ignores argument foo, (ie file is named foo, as in "ls foo")
>
> is it possible to ignore foo only when it is used as command, and not
> when it is used as argument (after another command) ?
>
> thanks,
Be more specific,
zstyle ':completion:*:-command-:*' ignored-patterns foo
(see the output of the _complete_help widget, bound to ctrl-x h by
default (note that it's not ctrl-x ctrl-h)).
--
Mikael Magnusson
next prev parent reply other threads:[~2021-01-14 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-14 6:31 Fourhundred Thecat
2021-01-14 14:04 ` Mikael Magnusson [this message]
2021-01-15 4:38 ` Fourhundred Thecat
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='CAHYJk3QBXdqp9LYLzSu=pMsKXKqgkQSSFhg0WRSs=tjdn4_7gA@mail.gmail.com' \
--to=mikachu@gmail.com \
--cc=400thecat@gmx.ch \
--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).