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
{{ message }}
Repository navigation
OpenTUI: ctrl-z background controls are broken #3737
If it matters, my 2¢: that's what /editor is for; get rid of undo & let ^Z do its default thing -> add an optional keybind for people who really really want undo in the TUI.
If it matters, my 2¢: that's what /editor is for; get rid of undo & let ^Z do its default thing -> add an optional keybind for people who really really want undo in the TUI.
It's already implemented as you described.
Undo&redo were mapped to alternative key bindings by @kommander and my PR implements the default terminal behavior to enable background and foreground terminal controls
Activity
kommander commentedon Nov 4, 2025
Opencode needs to re-map the undo for the Textarea to not collide with other mappings.
aymuos15 commentedon Nov 4, 2025
Could I take this up?
I was thinking ctrl + Z can be undo and ctrl + shift + z can be suspend?
goniz commentedon Nov 4, 2025
I've started to look into it.
goniz@949f037
Wdyt about this approach? It's not done yet but the suspend part works
@kommander
goniz commentedon Nov 4, 2025
In my opinion the terminal's native behaviors should take priority over the textarea editing behavior.
aymuos15 commentedon Nov 4, 2025
In warp, it is undo in its "text area" hence my suggestion but yeah, I get that.
goniz commentedon Nov 4, 2025
So annoying 😂😵
But yeah, that's my own preference
fix(tui): remap textarea undo/redo to allow ctrl-z suspend
kommander commentedon Nov 17, 2025
ctrl+zshould not be mapped by default anymoreBrianVandenberg-vivint commentedon Nov 18, 2025
As of 1.0.74 it's still not working on MacOS (in iTerm2 at least).
goniz commentedon Nov 18, 2025
I have a PR open at #3983
It's working but still has some artifacts due to incomplete shutdown sequence in opentui.
I still haven't had the time to figure out and fix
BrianVandenberg-vivint commentedon Nov 18, 2025
If it matters, my 2¢: that's what
/editoris for; get rid of undo & let ^Z do its default thing -> add an optional keybind for people who really really want undo in the TUI.goniz commentedon Nov 18, 2025
It's already implemented as you described.
Undo&redo were mapped to alternative key bindings by @kommander and my PR implements the default terminal behavior to enable background and foreground terminal controls