Skip to content
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(amazonq): add keyboard shortcut for open chat panel #5070

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "feature",
"description" : "add ctrl+alt+Q as keyboard shortcut for opening Q chat panel"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
<reference id="aws.toolkit.open.q.window"/>
</group>
<!-- TODO: q.openchat will eventually be in amazonq, aws.toolkit.q.sign.in will eventually be in core. -->
<action id="q.openchat" class="software.aws.toolkits.jetbrains.services.amazonq.QOpenPanelAction"/>
<action id="q.openchat" class="software.aws.toolkits.jetbrains.services.amazonq.QOpenPanelAction">
<keyboard-shortcut keymap="Mac OS X" first-keystroke="control alt Q"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now this adds both control + alt + Q and cmd + alt + Q in mac, needs more debugging

<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="control alt Q"/>
<keyboard-shortcut keymap="$default" first-keystroke="control alt Q" />
</action>

<group id="aws.toolkit.q.sign.in">
<action id="q.sign.in" class="software.aws.toolkits.jetbrains.services.amazonq.explorerActions.SignInToQAction"/>
Expand All @@ -53,32 +57,44 @@

<action id="aws.toolkit.jetbrains.core.services.cwc.commands.ExplainCodeAction"
class="software.aws.toolkits.jetbrains.services.cwc.commands.ExplainCodeAction">
<keyboard-shortcut keymap="$default" first-keystroke="meta alt E" />
<keyboard-shortcut keymap="Mac OS X" first-keystroke="control alt E"/>
<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="control alt E"/>
<keyboard-shortcut keymap="$default" first-keystroke="control alt E" />
</action>

<action id="aws.toolkit.jetbrains.core.services.cwc.commands.RefactorCodeAction"
class="software.aws.toolkits.jetbrains.services.cwc.commands.RefactorCodeAction">
<keyboard-shortcut keymap="$default" first-keystroke="meta alt U" />
<keyboard-shortcut keymap="Mac OS X" first-keystroke="control alt U"/>
<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="control alt U"/>
<keyboard-shortcut keymap="$default" first-keystroke="control alt U" />
</action>

<action id="aws.toolkit.jetbrains.core.services.cwc.commands.FixCodeAction"
class="software.aws.toolkits.jetbrains.services.cwc.commands.FixCodeAction">
<keyboard-shortcut keymap="$default" first-keystroke="meta alt Y" />
<keyboard-shortcut keymap="Mac OS X" first-keystroke="control alt Y"/>
<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="control alt Y"/>
<keyboard-shortcut keymap="$default" first-keystroke="control alt Y" />
</action>

<action id="aws.toolkit.jetbrains.core.services.cwc.commands.OptimizeCodeAction"
class="software.aws.toolkits.jetbrains.services.cwc.commands.OptimizeCodeAction">
<keyboard-shortcut keymap="$default" first-keystroke="meta alt A" />
<keyboard-shortcut keymap="Mac OS X" first-keystroke="control alt A" />
<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="control alt A"/>
<keyboard-shortcut keymap="$default" first-keystroke="control alt A" />
</action>

<action id="aws.toolkit.jetbrains.core.services.cwc.commands.GenerateUnitTestsAction"
class="software.aws.toolkits.jetbrains.services.cwc.commands.GenerateUnitTestsAction">
<keyboard-shortcut keymap="$default" first-keystroke="meta alt T" />
<keyboard-shortcut keymap="Mac OS X" first-keystroke="control alt T"/>
<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="control alt T"/>
<keyboard-shortcut keymap="$default" first-keystroke="control alt T" />
</action>

<action id="aws.toolkit.jetbrains.core.services.cwc.commands.SendToPromptAction"
class="software.aws.toolkits.jetbrains.services.cwc.commands.SendToPromptAction">
<keyboard-shortcut keymap="$default" first-keystroke="meta alt S" />
<keyboard-shortcut keymap="Mac OS X" first-keystroke="control alt S"/>
<keyboard-shortcut keymap="Mac OS X 10.5+" first-keystroke="control alt S"/>
<keyboard-shortcut keymap="$default" first-keystroke="control alt S" />
</action>

<action id="aws.toolkit.jetbrains.core.services.cwc.inline.openChat"
Expand Down
Loading