Preserve Prompt on Ctrl+C
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.
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.
You can press arrow up to go back to previous prompts.