-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Add a keybinding for Quick Fix #17502
base: main
Are you sure you want to change the base?
Conversation
@@ -637,6 +638,7 @@ | |||
{ "keys":"ctrl+shift+p", "id": "Terminal.ToggleCommandPalette" }, | |||
{ "keys":"win+sc(41)", "id": "Terminal.QuakeMode" }, | |||
{ "keys": "alt+space", "id": "Terminal.OpenSystemMenu" }, | |||
{ "keys": "ctrl+period", "id": "Terminal.QuickFix" }, |
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.
The
quickFix
action is bound toctrl+period
by default to align with VS' "quick actions" feature and VS Code's "quick fix" feature.
@zadjii-msft funny enough, I feel like openSuggestions
would be better suited here. Especially since the suggestions UI loads quick fixes automatically. Maybe we want ctrl+period to be used for openSuggestions instead?
Also, we're in a weird spot rn. Quick fixes are behind a feature flag so idk if it makes sense to bind this just yet. Happy to remove changes to this file, just want some clarity on the plan here.
CC @DHowett
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.
hard veto binding just ctrl+anything
. Ctrl alone is reserved for a modifier for the CLI application to use.
I'm probably biased, so I probably need to recuse myself from answering if it should be quickFix
or showSuggestions
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.
(In case you're curious) Found that "ctrl+period" is used for "repeat the last command" in nano, so yeah, we need a different keybinding.
Changed to "ctrl+shift+period".
The questions above still stand though. How about long-term we do...
- ctrl+shift+period --> quick fix
- alt+shift+period --> suggestions
Just wanna make sure I don't claim a keybinding you were planning to claim later.
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.
Discussed a bit during today's bug bash. Here's the leading proposal rn:
- default kbd opens suggestions UI (source=all)
- clicking QF button --> open suggestions UI
As we add more quick fixes (i.e. actual winget suggestions, non-snippets, etc.) and non-snippet suggestions, we can revisit this and change it.
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.
(Aside from the question in your comment, LGTM.)
@@ -637,6 +638,7 @@ | |||
{ "keys":"ctrl+shift+p", "id": "Terminal.ToggleCommandPalette" }, | |||
{ "keys":"win+sc(41)", "id": "Terminal.QuakeMode" }, | |||
{ "keys": "alt+space", "id": "Terminal.OpenSystemMenu" }, | |||
{ "keys": "ctrl+period", "id": "Terminal.QuickFix" }, |
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.
hard veto binding just ctrl+anything
. Ctrl alone is reserved for a modifier for the CLI application to use.
I'm probably biased, so I probably need to recuse myself from answering if it should be quickFix
or showSuggestions
Quick Fix feedback from bug bash
|
Adds a keybinding to open the quick fix menu, if one is available.
The
quickFix
action is bound toctrl+period
by default to align with VS' "quick actions" feature and VS Code's "quick fix" feature.Closes #17377