Ctrl-u not clearing input field #3647
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Description
Description
The rest of the readline keybindings are working fine (ctrl+w, alt+f, alt+b, ...) except for:
ctrl-u: not doing anything, supposed to clear the input field from current cursor position to beginningctrl-d: supposed to remove the next character in relation to the cursor, currently it's clearing the input field.
OpenCode version
1.0.2
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Arch Linux
Terminal
alacritty 0.16.1
Reactions are currently unavailable
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiThis relates to changes in v1.0, now that opencode uses opentui
Activity
jdanbrown commentedon Nov 6, 2025
Here's a quick sketch of adding
ctrl+uin the other issue forctrl+f/ctrl+b, but I'm not sure if they should be added in directly in opencode, or lower down in opentui?kommander commentedon Nov 17, 2025
ctrl+unow clears the current line from cursor to beginning, that seems to work for multiline input.kommander commentedon Nov 17, 2025
ctrl+dis still overloaded with closing opencode, some people expect that, so there are conflicting expectations on what keybind should do what by default.jdanbrown commentedon Nov 18, 2025
imo it's working correctly (as of 1.0.76):
ctrl+dwith empty input exits opencodectrl+dwith non-empty input does delete-charBoth of these behaviors match readline:
jdanbrown commentedon Nov 18, 2025
Afaik this issue can be closed now, since the stated problems are now fixed (as of 1.0.76):