Skip to content

Commit 395e42e

Browse files
committed
feat: add keyboard shortcut for 'Add to Context' action (package.json only)
- Added keyboard shortcut configuration in package.json: - macOS: Cmd+' - Windows/Linux: Ctrl+' - Shortcut is only active when editor has text selection - Removed all code implementation per review feedback
1 parent 3fe2918 commit 395e42e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,16 @@
302302
}
303303
]
304304
},
305+
"keybindings": [
306+
{
307+
"command": "roo-cline.addToContext",
308+
"key": "cmd+'",
309+
"mac": "cmd+'",
310+
"win": "ctrl+'",
311+
"linux": "ctrl+'",
312+
"when": "editorTextFocus && editorHasSelection"
313+
}
314+
],
305315
"submenus": [
306316
{
307317
"id": "roo-cline.contextMenu",

0 commit comments

Comments
 (0)