[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] {forward,reverse}-search-history binding bug

From: G. Branden Robinson
Subject: Re: [Bug-readline] {forward,reverse}-search-history binding bug
Date: Sun, 12 Nov 2017 08:48:23 -0500
User-agent: NeoMutt/20170113 (1.7.2)

At 2017-11-12T18:49:50+1100, Yuriy Ershov wrote:
> So.. Guys, this is really easy to reproduce.
> Can someone confirm this is a bug?
> Or else pease tell me how do I map a key sequence starting with ESC (which
> is essentially any sane key/combination) to the *-search-history command.

bind '"\ez": forward-search-history'

...maps forward-search-history to Escape Z.

You can confirm that the binding is absent or present by running:

bind -q | grep z

before and after the binding command, respectively.

Note that incremental searches don't wrap the command history, so
forward-search-history is only useful after the history search "cursor"
(not the command-line cursor) is far enough back to match something.
One generally gets it there with reverse-search-history (C-s) first.


Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]