You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/opencode/specs/v2/keymappings.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,4 @@
1
-
# 2.0
2
-
3
-
What we would change if we could
4
-
5
-
## Keybindings vs. Keymappings
1
+
# Keybindings vs. Keymappings
6
2
7
3
Make it `keymappings`, closer to neovim. Can be layered like `<leader>abc`. Commands don't define their binding, but have an id that a key can be mapped to like
parts: [{ type: "text", text: "Summarize the tool output above and continue." }],
133
+
}
134
+
```
135
+
136
+
Tradeoff: stored messages get much smaller and cleaner, but replay now has to join messages with turn state and prompt hooks still need a way to pick which turn they belong to.
command: z.string().describe("The command to execute"),
55
+
timeout: z.number().describe("Optional timeout in milliseconds").optional(),
56
+
workdir: z
57
+
.string()
58
+
.describe(
59
+
`The working directory to run the command in. Defaults to the current directory. Use this instead of 'cd' commands.`,
60
+
)
61
+
.optional(),
62
+
description: z
63
+
.string()
64
+
.describe(
65
+
"Clear, concise description of what this command does in 5-10 words. Examples:\nInput: ls\nOutput: Lists files in current directory\n\nInput: git status\nOutput: Shows working tree status\n\nInput: npm install\nOutput: Installs package dependencies\n\nInput: mkdir foo\nOutput: Creates directory 'foo'",
command: z.string().describe("The command to execute"),
457
-
timeout: z.number().describe("Optional timeout in milliseconds").optional(),
458
-
workdir: z
459
-
.string()
460
-
.describe(
461
-
`The working directory to run the command in. Defaults to ${Instance.directory}. Use this instead of 'cd' commands.`,
462
-
)
463
-
.optional(),
464
-
description: z
465
-
.string()
466
-
.describe(
467
-
"Clear, concise description of what this command does in 5-10 words. Examples:\nInput: ls\nOutput: Lists files in current directory\n\nInput: git status\nOutput: Shows working tree status\n\nInput: npm install\nOutput: Installs package dependencies\n\nInput: mkdir foo\nOutput: Creates directory 'foo'",
0 commit comments