Feature request for product/service
Cursor CLI
Describe the request
Problem
The Cursor CLI prompt input box has no undo/redo functionality. This is a basic expectation for any text input, and it makes editing multi-line prompts frustrating.
What happens today:
Ctrl+ZsendsSIGTSTPand suspends the process, instead of undoing the last edit.- Vim mode (
/vim) does not implementu/Ctrl+Reither — I checked the current CLI bundle; only navigation and delete commands are present. - There is no edit history stack for the prompt input box.
Why this matters
A lot of prompts in the CLI are long and multi-line. It is easy to accidentally delete a paragraph, overwrite text, or make a bad edit. Without undo, the only recovery is to retype the whole prompt or fish it out of shell history, which is slow and unreliable.
Expected behavior
At minimum:
Ctrl+Zshould undo the last change in the prompt input box.Ctrl+Shift+Z(orCtrl+Y) should redo.- If that is not possible because
Ctrl+Zis reserved for process suspension, then provide an alternative shortcut and document it.
Related requests
- An official Cursor CLI keyboard shortcuts reference page. Right now shortcuts are scattered across Using Agent in CLI and Terminal setup. A single page listing all prompt input shortcuts, plus what’s missing, would help a lot.
I posted this in the older feedback thread too, but I think the issue is important enough to deserve its own focused thread. Happy to help test any implementation.
Operating System (if it applies)
Linux