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

remove ctrl+shift+L shortcut and update shift+alt+L shortcut #6148

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

beyang
Copy link
Member

@beyang beyang commented Nov 18, 2024

  • Removed Shift+Ctrl+L (previously created a new chat) due to conflict with Windows default shortcut.
  • Updated Shift+Alt+L to create a new chat when the focus is not in the editor. When the focus is in the editor, the behavior remains unchanged (the current selection is added to the chat context).

Test plan

Test both shortcuts locally

@beyang beyang requested review from abeatrix and a team November 18, 2024 20:31
Comment on lines +654 to +663
{
"command": "cody.chat.new",
"key": "shift+alt+l",
"when": "cody.activated && !editorTextFocus"
},
{
"command": "cody.chat.new",
"key": "shift+alt+/",
"when": "cody.activated && !editorTextFocus"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to leave the existing keybindings in place for Linux and MacOS users and only introduce the new bindings for windows users? Or do we not think people are using these?

Suggested change
{
"command": "cody.chat.new",
"key": "shift+alt+l",
"when": "cody.activated && !editorTextFocus"
},
{
"command": "cody.chat.new",
"key": "shift+alt+/",
"when": "cody.activated && !editorTextFocus"
},
{
"command": "cody.chat.new",
"key": "shift+ctrl+l",
"when": "cody.activated && !editorTextFocus && !isWindows"
},
{
"command": "cody.chat.new",
"key": "shift+ctrl+/",
"when": "cody.activated && !editorTextFocus && !isWindows"
},
{
"command": "cody.chat.new",
"key": "shift+alt+l",
"when": "cody.activated && !editorTextFocus && isWindows"
},
{
"command": "cody.chat.new",
"key": "shift+alt+/",
"when": "cody.activated && !editorTextFocus && isWindows"
},

Copy link
Member Author

Choose a reason for hiding this comment

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

This just shipped, so I doubt many users are using this, and I'd prefer to maintain some consistency.

@beyang beyang merged commit f5b991b into main Nov 19, 2024
16 of 18 checks passed
@beyang beyang deleted the bl/shortcuts branch November 19, 2024 17:33
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.

2 participants