[FEATURE]: Support cursor position and text selection using mouse in chat input - Like Warp #2509

Open
opened 2026-02-16 17:36:03 -05:00 by yindo · 6 comments
Owner

Originally created by @thaoula on GitHub (Nov 2, 2025).

Originally assigned to: @kommander on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Hi Team,

Have to say great product 💪🏻

Is it possible to enable mouse behaviour in the chat input area to allow the following -

  1. Cursor positioning. You click a location in the prompt and the cursor will move to that location.
  2. Text selection. You click a word, or select a word . The text will select and the cursor will be placed at the end of the selection.

These features exist in Warp and are quite handy for quickly updating parts of the prompt or input.

The main use case for this feature request, at least for me, is to be able to quickly fix voice-to-text transcription mistakes in the prompt.

Kind Regards,
Tarek

Originally created by @thaoula on GitHub (Nov 2, 2025). Originally assigned to: @kommander on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Hi Team, Have to say great product 💪🏻 Is it possible to enable mouse behaviour in the chat input area to allow the following - 1. Cursor positioning. You click a location in the prompt and the cursor will move to that location. 2. Text selection. You click a word, or select a word . The text will select and the cursor will be placed at the end of the selection. These features exist in Warp and are quite handy for quickly updating parts of the prompt or input. The main use case for this feature request, at least for me, is to be able to quickly fix voice-to-text transcription mistakes in the prompt. Kind Regards, Tarek
yindo added the opentuidiscussion labels 2026-02-16 17:36:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3370: Similar request for text selection and navigation, but focused on keyboard shortcuts rather than mouse interaction
  • #2550: General input box usability improvements including mouse support, but less specific about the Warp-like cursor positioning and text selection features

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 2, 2025): This issue might be a duplicate of existing issues. Please check: - #3370: Similar request for text selection and navigation, but focused on keyboard shortcuts rather than mouse interaction - #2550: General input box usability improvements including mouse support, but less specific about the Warp-like cursor positioning and text selection features Feel free to ignore if none of these address your specific case.
Author
Owner

@kommander commented on GitHub (Nov 4, 2025):

The selection to edit should work mostly, but currently opencode has a selection event handler that copies the selection to clipboard and then clears the selection.

  • opentui needs a way for a Renderable to prevent the default for selection event if a selection is contained/starts/ends in it
  • opentui Textarea needs to handle mouse clicks to position the cursor
@kommander commented on GitHub (Nov 4, 2025): The selection to edit should work mostly, but currently opencode has a selection event handler that copies the selection to clipboard and then clears the selection. - opentui needs a way for a Renderable to prevent the default for selection event if a selection is contained/starts/ends in it - opentui Textarea needs to handle mouse clicks to position the cursor
Author
Owner

@kommander commented on GitHub (Nov 12, 2025):

Will come

@kommander commented on GitHub (Nov 12, 2025): Will come
Author
Owner

@kommander commented on GitHub (Dec 20, 2025):

Cursor position via mouse should work in the latest version. It still copies a mouse selection on button release, but that will change soon as well.

@kommander commented on GitHub (Dec 20, 2025): Cursor position via mouse should work in the latest version. It still copies a mouse selection on button release, but that will change soon as well.
Author
Owner

@thaoula commented on GitHub (Jan 3, 2026):

@kommander many thanks for the changes ... should i close this issue or is the more to come?

@thaoula commented on GitHub (Jan 3, 2026): @kommander many thanks for the changes ... should i close this issue or is the more to come?
Author
Owner

@kommander commented on GitHub (Jan 3, 2026):

There is still the "manual copy" thing, because currently selection with mouse in the textarea also automatically copies and clears the selection. But I think this one can be considered solved if it is for you.

@kommander commented on GitHub (Jan 3, 2026): There is still the "manual copy" thing, because currently selection with mouse in the textarea also automatically copies and clears the selection. But I think this one can be considered solved if it is for you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2509