zsh-workers
 help / color / mirror / code / Atom feed
From: Harm te Hennepe <dhtehennepe@gmail.com>
To: zsh-workers@zsh.org
Subject: history-incremental-search-backward string argument regression
Date: Mon, 04 Dec 2017 22:50:55 +0000	[thread overview]
Message-ID: <CAMxkEGJtH8z8=j-GmE-NVwAjjXoom+FDeGXJQE27sSZK79756A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

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

             reply	other threads:[~2017-12-04 22:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-04 22:50 Harm te Hennepe [this message]
2017-12-09  8:10 ` Bart Schaefer
2017-12-10 23:46   ` Harm te Hennepe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMxkEGJtH8z8=j-GmE-NVwAjjXoom+FDeGXJQE27sSZK79756A@mail.gmail.com' \
    --to=dhtehennepe@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).