opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Preserve Prompt on Ctrl+C

Open qwerty-turbo opened this issue 4 months ago • 2 comments

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.

qwerty-turbo avatar Aug 25 '25 00:08 qwerty-turbo

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

  • #183: Make ctrl+c close open pane before closing opencode - discusses different Ctrl+C behavior
  • #1764: Feature request: edit mode vim - requests vim keybindings in prompt editing
  • #314: history_previous and history_next keybinds not working - about history navigation functionality
  • #1701: Feature request: history reverse search like curses-based TUIs - about enhanced history search/access
  • #2067: Prompt History gets overwritten when working on multiple projects - about prompt history preservation

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

github-actions[bot] avatar Aug 25 '25 00:08 github-actions[bot]

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

panta82 avatar Dec 18 '25 14:12 panta82