Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Quote of % in a completed func name?
- X-seq: zsh-users 29265
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Quote of % in a completed func name?
- Date: Mon, 18 Sep 2023 07:58:02 -0700
- Archived-at: <https://zsh.org/users/29265>
- In-reply-to: <CAH+w=7ZEJ7BksHuE08Xs6meomB3-L3kRZ-Q_AgR1HV1oqMAPnA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAKc7PVDphx+Nsrkc+i0pCwyK=gZQh4NCpUYBxtEMYzoKcq-GFw@mail.gmail.com> <CAH+w=7ZEJ7BksHuE08Xs6meomB3-L3kRZ-Q_AgR1HV1oqMAPnA@mail.gmail.com>
On Mon, Sep 18, 2023 at 7:56 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> BUFFER=${(*)BUFFER//#%(#b)(${(kj:|:)~functions[(I)%*]})/\\\\$match[1]}
>
> (remove (*) and setopt extendedglob for older zsh)
Oh, remove the #% too, that was a leftover from testing, you want to
match anywhere in the buffer not the whole buffer.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author