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

Readline shortcuts support in search input #407

Open
jul1u5 opened this issue Feb 15, 2021 · 3 comments
Open

Readline shortcuts support in search input #407

jul1u5 opened this issue Feb 15, 2021 · 3 comments
Labels
feature Requests for a new feature.

Comments

@jul1u5
Copy link

jul1u5 commented Feb 15, 2021

Describe the feature request

It would be nice to have readline keyboard shortcuts (e.g., Ctrl-a to go to the beginning of the line) in the search input.

Additional context/details

I found this library: https://github.com/kkawakam/rustyline.

@jul1u5 jul1u5 added the feature Requests for a new feature. label Feb 15, 2021
@ClementTsang
Copy link
Owner

ClementTsang commented Feb 16, 2021

Um, not sure if it's what you meant, but I already do support Ctrl-a to go to the beginning on the line and Ctrl-e to skip to the end within the search input.

Are there any specific shortcuts you want support for? I don't mind adding more support for common ones, but like, I'm not copying things like emacs mode or anything...

@jul1u5
Copy link
Author

jul1u5 commented Feb 16, 2021

Oh, yeah, I see Ctrl-a and Ctrl-e work. Sorry, I must have missed that. Other shortcuts I often use are:

  • Ctrl-f move cursor forward one character
  • Ctrl-b move cursor back one character
  • Alt-f move cursor forward one word
  • Alt-b move cursor backward one word
  • Ctrl-d delete a character after the cursor
  • Ctrl-h delete backward one character
  • Alt-d delete a word after the cursor
  • Ctrl-w delete backward one word

@ClementTsang
Copy link
Owner

Sounds good. Ctrl-w and Ctrl-h will be covered by #270, and the other suggested ones seem good to me at a glance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Requests for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants