[FEATURE]: Text selection and navigation inside input with keyboard
Describe the enhancement you want to request
Normally, you press Shift+LeftArrow, Ctrl+LeftArrow, Ctrl+Shift+LeftArrow, etc. to navigate around and select text. This doesn't work at all. No vim bindings either.
What can be done here within the constraints of the TUI and without reinventing the wheel?
This issue might be a duplicate of existing issues. Please check:
- #2649: Standard keyboard cursor navigation (Home/End key, ctrl+left/right key) - addresses similar keyboard navigation concerns including Ctrl+LeftArrow/RightArrow not working
- #2520: Use Ctrl + arrow keys to move faster - specifically requests Ctrl + arrow keys functionality for faster text navigation
- #3090: add ctrl+left/right to navigate by word - directly addresses the same Ctrl+left/right functionality mentioned in your issue
- #2755: feat: Copy Mode for OpenCode - comprehensive feature request for vim/tmux-like text selection and copying capabilities in the TUI
- #2550: Input Box Usability Improvements - broader discussion about improving the TUI input experience including navigation
Feel free to ignore if none of these address your specific case.
more to come on this soon we are rewriting the tui and we will support a lot more bindings, including I believe vim bindings for text editing.
this should be much improved if not outright fixed as of 1.0.147, see the Keybindings doc for a complete overview