Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history-incremental-search-backward string argument regression
- X-seq: zsh-workers 42104
- From: Harm te Hennepe <dhtehennepe@xxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: history-incremental-search-backward string argument regression
- Date: Sun, 10 Dec 2017 23:46:27 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=93VAstZXaOj8Pj+8JdRxypKVlyPfjrgWAeDM8JVF8RI=; b=thZWoVfi6vW54KoAHX6zXzUvrwQOo2O5keY51IuqLkajraNBgz25O6y8viJmFEablX bZMARRnjGw7O0hJzoIl4AQ5haBExYP18BQl6TiWMPvCnAxIIecuyU8CxN1+AyN3W1YWn RUgJHMITgH0K9MB8BVGwliz+Cs1lpfrQpSucP+F/wEFR3s16Jw1mAueYxLM4PhZ5AxAI mqFa8hcwXGD8jvjHFTelA3ZGIvrHCA5pLnkFO2ReJh1ZUz2vn2qxx9puIzqlYgwTqE1s mc7s8EsQq+TR590E8u0dYhkdVF1h0J5zaenAWHsdO2HK1rHit3DHzm6yyubvr0I9ECW3 xq4g==
- In-reply-to: <CAH+w=7bFey5U3UP8=MOB87Y25U1q1aaAn5y92A41=RPbSnOvrA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAMxkEGJtH8z8=j-GmE-NVwAjjXoom+FDeGXJQE27sSZK79756A@mail.gmail.com> <CAH+w=7bFey5U3UP8=MOB87Y25U1q1aaAn5y92A41=RPbSnOvrA@mail.gmail.com>
Thanks for your check. Somehow I completely forgot to run the code with
'zsh -f' :-( Seems that some other code in my .zshrc is interfering. I'll
figure out what causes this, and let you know if I still believe it
shouldn't happen.
Harm
On Sat, 9 Dec 2017 at 09:10 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Mon, Dec 4, 2017 at 2:50 PM, Harm te Hennepe <dhtehennepe@xxxxxxxxx>
> wrote:
> >
> > I was trying to let ^r prefill the incremental search minibuffer with the
> > current buffer contents.
> >
> > I've created a widget calling this, but the minibuffer stayed empty.
>
> Hmm, this is working for me (zsh-5.4.2-114-g45f3169):
>
> % setopt histnofunctions
> % revsrch() { zle history-incremental-search-backward waggle }
> % zle -N revsrch
> % bindkey '^R' revsrch
> %
> failing bck-i-search: waggle_
>
>
> > I manually type something into the minibuffer, it does the usual search,
> > but when I then press ^r again to find the next result, I get an empty
> > minibuffer again, instead of the next result.
>
> There are a few reasons why repeating the binding might not repeat the
> search when a user-defined widget is involved. Perhaps post your
> function?
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author