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

Edit/Chat: Change shortcut and add dedicated setting #2865

Merged
merged 5 commits into from
Jan 31, 2024
Merged

Conversation

umpox
Copy link
Contributor

@umpox umpox commented Jan 23, 2024

Description:

  • Adds a dedicated setting for "Command Hints". Disabled by default for now
  • Changes the shortcut to "Opt+K" and "Opt+L" for Edit / Chat
image image

Test plan

  1. Enable "Command Hints"
  2. Check hint text shows up on selections
  3. Check shortcuts work for both Edit and Chat
  4. Disable "Command Hints"
  5. Check hint text doesn't show
  6. Check shortcuts still work

@umpox umpox changed the title Edit/Chat: Change shortcut Edit/Chat: Change shortcut and add dedicated setting Jan 31, 2024
@umpox umpox marked this pull request as ready for review January 31, 2024 11:32
@umpox umpox requested review from toolmantim, abeatrix and a team January 31, 2024 11:32
@umpox
Copy link
Contributor Author

umpox commented Jan 31, 2024

I went with the wording "Command Hints" but open to better ideas, cc @abeatrix @toolmantim

@umpox umpox self-assigned this Jan 31, 2024
Comment on lines +839 to +845
"cody.commandHints.enabled": {
"order": 12,
"title": "Cody Command Hints",
"type": "boolean",
"markdownDescription": "Enable hints for Edit and Chat shortcuts, displayed alongside editor selections.",
"default": false
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This being more visible means users are going to start enabling it. I personally think we should enable it by default once we have the logic to show custom keyboard shortcuts if users try to change it

@umpox umpox merged commit a8e969c into main Jan 31, 2024
15 checks passed
@umpox umpox deleted the tr/cmd-chat-shortcuts branch January 31, 2024 15:15
umpox added a commit that referenced this pull request Feb 1, 2024
## Description

These shortcuts were accidentally not enabled everywhere as part of
#2865

We can enable these shortcuts fully now, even when the command hint
setting is off

## Test plan

1. Check the `unstable` flag is off
2. Check shortcuts show normally

<!-- Required. See
https://sourcegraph.com/docs/dev/background-information/testing_principles.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants