Skip to content

Commit

Permalink
prevent double-adding selected context
Browse files Browse the repository at this point in the history
shortcut changes:
- (unchanged) toggle between chat and editor: alt+L
- add selection as context: alt+L -> shift+alt+L
- new chat: shift+alt+L -> shift+ctrl+L
  • Loading branch information
beyang committed Nov 4, 2024
1 parent 15412e3 commit 3c13a25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ This is a log of all notable changes to Cody for VS Code. [Unreleased] changes a

### Changed

- Chat: This patch updates the chat keyboard shortcuts to be as follows, thereby avoiding the tendency to "double-add" a code snippet when using the `alt+L` shortcut:
- `Alt+L`: between chat and editor (this is unchanged)
- `Shift+Alt+L` (previously alt+L): add selection as context:
- `Shift+Ctrl+L` (previously shift+alt+L): new chat

## 1.40.1

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@
},
{
"command": "cody.chat.new",
"key": "shift+alt+l",
"key": "shift+ctrl+l",
"when": "cody.activated"
},
{
Expand Down Expand Up @@ -645,12 +645,12 @@
},
{
"command": "cody.mention.selection",
"key": "alt+l",
"key": "shift+alt+l",
"when": "cody.activated && editorTextFocus && editorHasSelection"
},
{
"command": "cody.mention.selection",
"key": "alt+/",
"key": "shift+alt+/",
"when": "cody.activated && editorTextFocus && editorHasSelection"
},
{
Expand Down

0 comments on commit 3c13a25

Please sign in to comment.