You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctrl+f (forward-char) and ctrl+b (backward-char) are common keybindings from readline that cli tools typically support for line editing. Currently they do nothing in opencode, would be nice to add them.
This issue might be a duplicate of existing issues. Please check:
Ctrl-u not clearing input field #3647: Both issues are about missing or broken readline keybindings in OpenCode v1.0+ (opentui system). Issue Ctrl-u not clearing input field #3647 reports that most readline keybindings work except for ctrl-u and ctrl-d, while this issue reports missing ctrl+f and ctrl+b. These could potentially be addressed together as part of a comprehensive readline keybinding implementation.
Feel free to ignore if none of these address your specific case.
Adding ctrl+f and ctrl+b (and ctrl+u) looks pretty straightforward, but would it be better if they went into opentui rather than opencode? I was sketching this out quickly with an llm to see how much work it would be, but along the way I couldn't find other basic line-editing keys like ctrl+k, ctrl+a, and ctrl+e defined in opencode, so that made me wonder if maybe these things should live in opentui instead.
Activity
github-actions commentedon Nov 6, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
jdanbrown commentedon Nov 6, 2025
Adding
ctrl+fandctrl+b(andctrl+u) looks pretty straightforward, but would it be better if they went into opentui rather than opencode? I was sketching this out quickly with an llm to see how much work it would be, but along the way I couldn't find other basic line-editing keys likectrl+k,ctrl+a, andctrl+edefined in opencode, so that made me wonder if maybe these things should live in opentui instead.kommander commentedon Nov 13, 2025
This should work in the latest version?
cwegener commentedon Nov 13, 2025
Started working for me when I installed version
1.0.60yesterdayjdanbrown commentedon Nov 18, 2025
Thanks! Confirmed working now as of 1.0.76 (or earlier).
sim590 commentedon Oct 11, 2026
This is now broken. They added a new binding for ctrl-b in V2 and now readline's standard ctrl-b doesn't work anymore.