Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Add alternative key shortcuts for shift enter #287

Merged
merged 4 commits into from
May 31, 2023
Merged

Conversation

pdufour
Copy link
Contributor

@pdufour pdufour commented May 31, 2023

As mentioned in #157 shift enter is not working. This PR follows the example in amazon qldb shell https://github.com/awslabs/amazon-qldb-shell/blob/main/src/ui.rs#L162 to support Option + enter on mac (and shift enter on windows).

I got a lot of help from Bard to write this PR as I don't actually know Rust, but when I compiled it, it seems to work on my mac for option + enter to insert new lines. If someone could test on Windows that would be great. If it doesn't work on Windows, another option I've seen used is Shift + Down to insert a new line.

@philpax
Copy link
Collaborator

philpax commented May 31, 2023

Looks good to me, but I can't test it right now. Will try to get back to you soon!

@philpax philpax merged commit b3c9851 into rustformers:main May 31, 2023
@philpax
Copy link
Collaborator

philpax commented May 31, 2023

Thanks for the PR! Much appreciated :)

@hhamud hhamud mentioned this pull request Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants