Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

history-search-backward places cursor in the beginning of line when there's nothing to search #618

Open
olegantonyan opened this issue Dec 21, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@olegantonyan
Copy link

Description

When using up arrow to search in history:

"\e[A": history-search-backward
"\e[B": history-search-forward

Reline places cursor in the beginning of line if you haven't typed anything to search for. Video: https://youtu.be/_qwt6poHyvM
Expected behavior: place cursor at the end when there's nothing to search i.e. ignore search function and just bring the history item. This is how readline works.

Looks like reline interprets empty input as empty substring to search in history.

Originally reported to Ruby https://bugs.ruby-lang.org/issues/20074 as 3.3 began using reline by default.

Terminal Emulator

Konsole, kitty, yakuake

@epistrephein
Copy link

For those used to readline behavior this is very annoying, since it's the exact opposite.
Any chance this will be fixed? Or any pointers to try to tackle this?

@ima1zumi ima1zumi added the bug Something isn't working label Jan 21, 2024
@tompng tompng added the good first issue Good for newcomers label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Development

No branches or pull requests

4 participants