opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Text selection and navigation inside input with keyboard

Open JosXa opened this issue 2 months ago • 3 comments

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?

JosXa avatar Oct 23 '25 02:10 JosXa

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.

github-actions[bot] avatar Oct 23 '25 02:10 github-actions[bot]

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.

rekram1-node avatar Oct 23 '25 02:10 rekram1-node

this should be much improved if not outright fixed as of 1.0.147, see the Keybindings doc for a complete overview

Nindaleth avatar Dec 12 '25 00:12 Nindaleth