Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history-incremental-search-backward string argument regression
- X-seq: zsh-workers 42100
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Subject: Re: history-incremental-search-backward string argument regression
- Date: Sat, 9 Dec 2017 00:10:18 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vowKIpG3sAel3KtnTgLvrzcyu9mIDa8tDnrYyKpO/GQ=; b=R2CQHq8m6ATuqCzOvbLin2WS0GNF02Vq69j6KAc5piD1JzuDdImDNeN6AKfXtayQ9y 7fVavBZ1h+oMWLknyYy4AdP2zfRPPCiEoBTzxDu1wPltgOUmO3mKzQRUyeGJLSfBQLaU njjt0ppH30zQKffvGTbUCnHmmQgu3+QdUYROamwdNoHdIjNggDiiCfw77pwM1yf3u4W0 bTyS8VbJR2yhFJArbo7oJsBh3jZd8bTzSRZcVOhwD5mR0aPHcnq/X6OLudI3l46dkdUy xntXiQEdO/3GfFCz7VUSt+obogCxqtRO83b/oxc3CHdwtNbTDekKzpfFOLW7lkqKRF3D /VTw==
- In-reply-to: <CAMxkEGJtH8z8=j-GmE-NVwAjjXoom+FDeGXJQE27sSZK79756A@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>
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