Browse Source

docs: update keymap.json bindings for OpenCode command (#4192)

Josiah Witt 3 months ago
parent
commit
fb2b3e567c
1 changed files with 14 additions and 1 deletions
  1. 14 1
      packages/web/src/content/docs/acp.mdx

+ 14 - 1
packages/web/src/content/docs/acp.mdx

@@ -46,7 +46,20 @@ You can also bind a keyboard shortcut by editing your `keymap.json`:
 [
 [
   {
   {
     "bindings": {
     "bindings": {
-      "cmd-alt-o": ["agent::NewExternalAgentThread", { "agent": "OpenCode" }]
+      "cmd-alt-o": [
+        "agent::NewExternalAgentThread",
+        {
+          "agent": {
+            "custom": {
+              "name": "OpenCode",
+              "command": {
+                "command": "opencode",
+                "args": ["acp"]
+              }
+            }
+          }
+        }
+      ]
     }
     }
   }
   }
 ]
 ]