浏览代码

feat: add Ctrl+K C keybinding for all 4 commands

Developer 1 月之前
父节点
当前提交
071d9bddd8
共有 1 个文件被更改,包括 23 次插入1 次删除
  1. 23 1
      package.json

+ 23 - 1
package.json

@@ -67,7 +67,29 @@
           "title": "Copy to AI: 单选"
         }
       ]
-    }
+    },
+    "keybindings": [
+      {
+        "key": "ctrl+k ctrl+c",
+        "command": "copy-ai-ctx.copySelection",
+        "when": "editorHasSelection"
+      },
+      {
+        "key": "ctrl+k ctrl+c",
+        "command": "copy-ai-ctx.copyFile",
+        "when": "!editorHasSelection && editorFocus"
+      },
+      {
+        "key": "ctrl+k ctrl+c",
+        "command": "copy-ai-ctx.copySelectedFiles",
+        "when": "explorerViewletVisible && !listMultiSelection"
+      },
+      {
+        "key": "ctrl+k ctrl+c",
+        "command": "copy-ai-ctx.copyMultiFiles",
+        "when": "explorerViewletVisible && listMultiSelection"
+      }
+    ]
   },
   "scripts": {
     "vscode:prepublish": "node esbuild.js --minify",