Skip to content

feat: Add configurable newline shortcuts with Ctrl+Enter as default #5047

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

0x23d11
Copy link
Contributor

@0x23d11 0x23d11 commented Apr 8, 2025

Description

Closes #4786

As described in issue #4786 , users need a more flexible way to insert newlines in the editor, especially when sharing code or asking questions about manually written code.

Solution

  • Add UI configuration option to specify newline keyboard shortcuts
  • Support ctrl+enter, and alt+enter for newline input

Checklist

  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screenshots

In the following screen recording I'm using cmd+enter in mac to get a newline in the editor
https://github.com/user-attachments/assets/d24895da-665d-4a5a-b410-b043370ec14b

Testing instructions

[ For new or modified features, provide step-by-step testing instructions to validate the intended behavior of the change, including any relevant tests to run. ]

@0x23d11 0x23d11 requested a review from a team as a code owner April 8, 2025 14:15
@0x23d11 0x23d11 requested review from sestinj and removed request for a team April 8, 2025 14:15
Copy link

netlify bot commented Apr 8, 2025

Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit e5b6d91
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/67f52f6efeb38f00081d4460

@sestinj
Copy link
Contributor

sestinj commented Apr 9, 2025

@0x23d11 Looking at the issue, it looks like that user wanted shift+enter to work, which should already work in Continue. If it doesn't, I think this is a separate bug that we should address rather than adding this additional complex code. I'm going to close this PR for now and maybe we can follow up with the person in the issue

@sestinj sestinj closed this Apr 9, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Press <alt+enter> or <ctrl+enter> to allow input multiple lines.
2 participants