opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Action like input_line_home (and _end), but only for the wrapped pseudo-line

Open Nindaleth opened this issue 1 week ago • 2 comments

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

Logging this as a feature request as I assume this is done on purpose and not a bug.

I would like to have a TUI keybind that moves the cursor to the start/end of the current line as a human sees in the input area, not the full line that was wrapped over multiple rows. That's how most of the text boxes work that I know of (with the infuriating exception of Atlassian BitBucket).

Guess this is targeting OpenTUI, but I'm not sure whether OpenCode does some changes on top of OpenTUI. From the Keybinds doc I see input_line_home and input_buffer_home actions, neither of which do what I'd like.

Example of what I mean:

Starting point:

this is a single long line
in a super narrow window
that is wrapped over<cursor>
multiple rows

Current behavior after input_line_home (as tested with Ghostty and Terminator on Linux):

<cursor>this is a single long line
in a super narrow window
that is wrapped over
multiple rows

What I'd like to have available (input_buffer_line_home?):

this is a single long line
in a super narrow window
<cursor>that is wrapped over
multiple rows

Nindaleth avatar Jan 07 '26 17:01 Nindaleth