Skip to content

feat: add ctrl+return to submit and stay in insert mode#68

Merged
leohenon merged 2 commits intoleohenon:ocvfrom
reobin:feat/ctrl-enter-submit
Apr 26, 2026
Merged

feat: add ctrl+return to submit and stay in insert mode#68
leohenon merged 2 commits intoleohenon:ocvfrom
reobin:feat/ctrl-enter-submit

Conversation

@reobin
Copy link
Copy Markdown

@reobin reobin commented Apr 25, 2026

this one is more of a suggestion, and has not been discussed in any issue. feedback welcome.

I find useful to be able to quickly submit the input without leaving insert mode. ctrl+enter is commonly used for similar features.

reobin and others added 2 commits April 25, 2026 11:39
this one is more of a suggestion, and has not been discussed in any issue. feedback welcome.

I find useful to be able to quickly submit the input without leaving insert mode. ctrl+enter is commonly used for similar features.
Copy link
Copy Markdown
Owner

@leohenon leohenon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think ctrl+return should be default since it's already a newline binding, and flipping it to submit can break existing expectations. It’s also not reliably distinguishable from enter in all terminals. This is still useful with vim_enter_submit: false, so I kept input_force_submit but defaulted it to none and restored ctrl+return under input_newline. Also users who want enter to submit in insert mode can already use vim_enter_submit: true.

@leohenon leohenon merged commit 8cc948e into leohenon:ocv Apr 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants