feat: add ctrl+return to submit and stay in insert mode#68
Merged
leohenon merged 2 commits intoleohenon:ocvfrom Apr 26, 2026
Merged
feat: add ctrl+return to submit and stay in insert mode#68leohenon merged 2 commits intoleohenon:ocvfrom
leohenon merged 2 commits intoleohenon:ocvfrom
Conversation
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.
leohenon
approved these changes
Apr 26, 2026
Owner
leohenon
left a comment
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.