Browse Source

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

Developer 1 month ago
parent
commit
071d9bddd8
1 changed files with 23 additions and 1 deletions
  1. 23 1
      package.json

+ 23 - 1
package.json

@@ -67,7 +67,29 @@
           "title": "Copy to AI: 单选"
           "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": {
   "scripts": {
     "vscode:prepublish": "node esbuild.js --minify",
     "vscode:prepublish": "node esbuild.js --minify",