bottom
bottom copied to clipboard
Readline shortcuts support in search input
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.
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...
Oh, yeah, I see Ctrl-a and Ctrl-e work. Sorry, I must have missed that. Other shortcuts I often use are:
Ctrl-fmove cursor forward one characterCtrl-bmove cursor back one characterAlt-fmove cursor forward one wordAlt-bmove cursor backward one wordCtrl-ddelete a character after the cursorCtrl-hdelete backward one characterAlt-ddelete a word after the cursorCtrl-wdelete backward one word
Sounds good. Ctrl-w and Ctrl-h will be covered by https://github.com/ClementTsang/bottom/issues/270, and the other suggested ones seem good to me at a glance.