Skip to content

Preserve Prompt on Ctrl+C #2232

Closed
Closed

Description

@qwerty-turbo

As a proud Neovim user like myself, I am super used to Vim motions, they run through my veins, every keystroke feels powerful. But when I open OpenCode and start writing a prompt, I feel weak. I keep hitting Ctrl+C to go to normal mode, but it just deletes my whole prompt with no way to get it back. That feels bad.

It’d be nice if Ctrl+C cleared the prompt but saved it in history, so pressing the up arrow brings it back. Then if I send a new prompt, that old one can just get wiped. Something like that.

Activity

  1. github-actions commented on Aug 25, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. panta82 commented on Dec 18, 2025

    @panta82
    Contributor

    You can press arrow up to go back to previous prompts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions