-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add keyboard shortcuts for Editor actions #542
Conversation
<action id="CodeGPT.TriggerEditorPopup" | ||
class="ee.carlrobert.codegpt.actions.editor.ShowEditorActionGroupAction" | ||
text="Show CodeGPT Actions"> | ||
<keyboard-shortcut first-keystroke="ctrl shift alt m" keymap="$default"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add the same shortcut for mac os x as well?
https://github.com/carlrobertoh/CodeGPT/blob/platform/2024.1/src/main/resources/META-INF/plugin.xml#L77
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, as a Linux and Windows User I always forget about that "other" keyboard 😆
Aren't they missing for the toggle Code Completions Action too?
<keyboard-shortcut first-keystroke="ctrl shift alt c" keymap="$default"/> |
<keyboard-shortcut first-keystroke="ctrl shift alt c" keymap="$default"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ignore my last comment, sorry. The ctrl shift alt m
combination is already valid on mac as shift option meta m
. No changes needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the additional keyboard-shortcuts again
963120c
to
092b6a7
Compare
thank you very much for your hard work @PhilKes |
This PR closes #314
Adds Action to show CodeGPT Actions popup with keyboard shortcut:
![popup-shortcuts](https://private-user-images.githubusercontent.com/39240633/329571413-b86c6674-573b-480a-a981-9ef1f95ee1ee.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDg1NzgsIm5iZiI6MTcyMTMwODI3OCwicGF0aCI6Ii8zOTI0MDYzMy8zMjk1NzE0MTMtYjg2YzY2NzQtNTczYi00ODBhLWE5ODEtOWVmMWY5NWVlMWVlLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDEzMTExOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ4ZmVmNmJjYWRjMGY4ZTAzMTg3MzM3NWEzMDUxZDJmZTgzNTlhNTIzN2E3ODIyZWQyOWIxZDQyZWE0NTFhMTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.k64Y65kvvxgZkCSf-ZGAtx0Y0Y3HVvus198lxqgbemA)
All Actions are assigned an alpha-numeric letter for seamless keyboard controls.
I didn't really know how to define the best default shortcut, so I sticked with the
![image](https://private-user-images.githubusercontent.com/39240633/329571763-663c1655-d931-46be-b580-2d1d33bc7b16.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDg1NzgsIm5iZiI6MTcyMTMwODI3OCwicGF0aCI6Ii8zOTI0MDYzMy8zMjk1NzE3NjMtNjYzYzE2NTUtZDkzMS00NmJlLWI1ODAtMmQxZDMzYmM3YjE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDEzMTExOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiMWE3ZDg2ODc3YzY3MmRlOTFlMjdlZGZmZDgxNzQ2NGZhZTc5MzgyMjBjMWRmNTE3NzAzYjY4OGQ2NmEwYTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iAbcLOcrDTLce6VV2qfra_YUatmyxLEV5mjB3mC2Hxw)
CTRL+SHIFT+ALT
combo plus "M" (maybe "M" for "Menu"?), that doesn't seem to be used by anything too important: