Undo / redo typing

Open 💬 7 comments Opened Aug 16, 2025 by aehlke

What feature would you like to see?

Cmd-Z / Shift-Cmd-Z to undo/redo entered text in a prompt

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

7 Comments

nilswx · 11 months ago

Bonus: /undo and /redo commands in OpenCode (TUI) not only rewind the chat, but also revert/restore any file changes.

https://opencode.ai/docs/tui/#undo

vimsux · 4 months ago

please implement readline/emacs style undo (C-/ or C-_) and redo (C-?) since most readline keys appear to be implemented already.

there does not appear to be any way to undo right now.

quanru · 3 months ago

+1 Undo/redo typing support would be very helpful, especially in terminal environments where Cmd+Z gets intercepted.

DavidAnsc · 3 months ago

Agree, sometimes it is really frustrating when you accidentally delete a line of prompt... it's completely usable right now but it'd be better to have it.

hunterwilhelm · 1 month ago

Any form of undo / redo in the text editor would be fantastic!

techjoec · 1 month ago

I just whacked the entire prompt I had written and was pissed but asked codex about it and since I'm in linux/bash and had used ctrl+K it said duh use ctrl+y. Saved me some blood pressure, passing it along, worked great.

aehlke · 1 month ago
I just whacked the entire prompt I had written and was pissed but asked codex about it and since I'm in linux/bash and had used ctrl+K it said duh use ctrl+y. Saved me some blood pressure, passing it along, worked great.

Awesome, it works as well for ctrl-u, ctrl-c, etc.