Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
history-incremental-search-backward string argument regression
- X-seq: zsh-workers 42075
- From: Harm te Hennepe <dhtehennepe@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: history-incremental-search-backward string argument regression
- Date: Mon, 04 Dec 2017 22:50:55 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=w6N9GHJ7WebgxLzYMZluKoBtlFAUFGKv9/IjqNUcVyk=; b=udF3E5IIAWy993NR7dl5iCfBp2PgEJNwDDNnS0yGh8h1TYVKyzamHUNZgN450lgTpm dMYRtcvRF7/TnIdbWnIGMmVYVTRcoIIab7a8yHTC/mfIQOV17GFbnYFVFao3B3D+YeZG op14JlaHe0cE1zbt3JhmIUybLAti4+E7N1M0klbu+vva7O15e+tfq0y7S33i/Y5kM9LG DPxBJr3YRguDq6aDyaB9CUerkR0onAVwim4ahBpsFkYc7fwsUuY2qaJdpcLPonjWj5F5 o2Iv+r1BHx0/EGWw00vUfRamDDeSMxEbmaWlYtvlv89QXy+VBGtOxZyP3KhcpAYj9Gpo O3uA==
- 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
Hi,
I was trying to let ^r prefill the incremental search minibuffer with the
current buffer contents.
According to the manual:
---
When called from a widget function by the zle command, the incremental
search commands can take a string argument. This will be treated as a
string of keys, as for arguments to the bindkey and used as initial
input for the command. Any characters in the string which are unused by
the incremental search will be silently ignored. For example,
zle history-incremental-search-backward forceps
search backwards for forceps, leaving the minibuffer containing the string
`forceps'.
---
I've created a widget calling this, but the minibuffer stayed empty. When
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.
zsh 5.2 (x86_64-ubuntu-linux-gnu) (Ubuntu 17.10 default): broken
zsh 5.4.2-dev-0 (x86_64-unknown-linux-gnu) (newest git on Ubuntu 17.10):
broken
zsh 4.3.11 (x86_64-redhat-linux-gnu) (CentOS 6.4): WORKS
Harm
Messages sorted by:
Reverse Date,
Date,
Thread,
Author