Fix keybinding for Ctrl+Y in CLI

Feature request for product/service

Cursor CLI

Describe the request

Currently, the CLI binds Ctrl+Y to show previous sessions; however, under most CLI apps that use readline bindings, Ctrl+Y is used to “yank” a previously “killed” bit of text. Confusingly, Cursor CLI supports all the normal readline/emacs style keystrokes for “killing” bits of input into the buffer, but doesn’t appear to provide any mechanism to “yank” the buffer back to input. This has caused me to have to rewrite critical prompts many times when I was trying to perform edits using the kill/yank cycle.

Here’s a screen recording with Keycastr showing how this is usually expected to work.

This is extremely annoying. And pressing escpae then deletes the prompt you were writing, so you lose it all. Please fix this. I’m more than happy if you fix ESC not to lose what you were writing.

Hey all!

Appreciate you sharing this.

A fix was merged and should land in our next major CLI release (typically we do one weekly).