Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: make zstyle ignore both _* and __* commands
- X-seq: zsh-users 22762
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Filipe Silva <filipe.silva@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: make zstyle ignore both _* and __* commands
- Date: Mon, 03 Jul 2017 12:47:30 +0100
- Cms-type: 201P
- In-reply-to: <CAEwkUWMPpa0_=0mDuBoPj31i9fxkwzJ6wNEvyqhOm2e11i5Vsg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <CAEwkUWPVcbXVk5Y3pOVt81GbV6Yr=haDLiphK9t=5dQKPpWOVg@mail.gmail.com> <20170702182042.2c129fde@ntlworld.com> <CGME20170702213844epcas5p125cd81d51a278be641770ea8454cb7f1@epcas5p1.samsung.com> <CAEwkUWMPpa0_=0mDuBoPj31i9fxkwzJ6wNEvyqhOm2e11i5Vsg@mail.gmail.com>
On Sun, 2 Jul 2017 18:37:14 -0300
Filipe Silva <filipe.silva@xxxxxxxxx> wrote:
> omg, you are absolutely right. It should do already this because of the
> regex.
> I'm so ashamed of myself.
>
> All right, I did found a case where this does not work.
>
> if I type d_[tab] it shows this: http://imgur.com/ZSBZHvp (notice the
> __fast_highlight...)
__fast_highlight doesn't occur in the zsh source tree, so that's in some
library you've got. I would guess it's not being matched as a function
at all, otherwise it's no different from the other cases. Maybe it's a
variable; you can complete those in command position for assignment
purposes.
You'll probably find it helps to have headers for different types of
match turned on for this sort of purpose --- try:
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author