Skip to content

Support Ctrl+Enter to confirm commit #4530

@KnapSac

Description

@KnapSac

Is your feature request related to a problem? Please describe.
When inside the commit description part of the commit dialog, the default keybind to commit is Alt+Enter. This is unfortunate, because it's also bound to toggle fullscreen in Windows Terminal. I tried to change the keybind by setting keybind.universal.confirmInEditor to <c-enter>, but that is not a supported option.

Describe the solution you'd like
I'd prefer <c-enter> as the default keybind, this is a common UI pattern on the web. I'd also be fine to have it be configurable. I don't know whether the keybind.universal.confirmInEditor setting is used for this, but if so it should probably support <c-enter>.

#1700 might be related, but I believe that it's outdated as Alt+Enter is no longer used to enter newlines in the commit message, which you can now do using Enter itself.

I'd be happy to look into implementing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions