Branden, thank you for your reply.
As I said, that does not work for me.
What I get is - search mode with empty string. I.e. any binding that starts
with ESC key is unusable for that purpose because the search string gets
reset.

I have tested this on Ubuntu and Mac OS. The behavior is identical and
wrong.

Can you please try that on your machine?


Yury

On Mon, Nov 13, 2017 at 12:48 AM, G. Branden Robinson <
[email protected]> wrote:

> 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.
>
> --
> Regards,
> Branden
>
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to