# Fix keybinding for Ctrl+Y in CLI

**URL:** <https://forum.cursor.com/t/fix-keybinding-for-ctrl-y-in-cli/162123>\
**Category:** Feature Requests\
**Tags:** cli, keybindings\
**Created:** [June 1, 2026, 1:59pm UTC](https://forum.cursor.com/t/fix-keybinding-for-ctrl-y-in-cli/162123 "2026-06-01T13:59:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joey\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@Joey\_Smith](https://forum.cursor.com/u/Joey_Smith)\
**Post date:** [June 1, 2026, 1:59pm UTC](https://forum.cursor.com/t/fix-keybinding-for-ctrl-y-in-cli/162123/1 "2026-06-01T13:59:06Z")

</div>

### 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.

---

<div class="post-metadata">

**Author:** ![Joey\_Smith](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@Joey\_Smith](https://forum.cursor.com/u/Joey_Smith)\
**Post date:** [June 1, 2026, 1:59pm UTC](https://forum.cursor.com/t/fix-keybinding-for-ctrl-y-in-cli/162123/4 "2026-06-01T13:59:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cigumo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/cigumo/32/102537_2.png) [@cigumo](https://forum.cursor.com/u/cigumo)\
**Post date:** [June 16, 2026, 2:06am UTC](https://forum.cursor.com/t/fix-keybinding-for-ctrl-y-in-cli/162123/8 "2026-06-16T02:06:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 16, 2026, 5:41pm UTC](https://forum.cursor.com/t/fix-keybinding-for-ctrl-y-in-cli/162123/10 "2026-06-16T17:41:18Z")

</div>

Hey all!

Appreciate you sharing this.

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