Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 92a1943

Browse files
committed
upgrade to opentui 0.1.32, activates kitty keyboard
1 parent 1e15fc2 commit 92a1943

5 files changed

Lines changed: 33 additions & 20 deletions

File tree

bun.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opencode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"@opencode-ai/plugin": "workspace:*",
5555
"@opencode-ai/script": "workspace:*",
5656
"@opencode-ai/sdk": "workspace:*",
57-
"@opentui/core": "0.0.0-20251031-fc297165",
58-
"@opentui/solid": "0.0.0-20251031-fc297165",
57+
"@opentui/core": "0.1.32",
58+
"@opentui/solid": "0.1.32",
5959
"@parcel/watcher": "2.5.1",
6060
"@solid-primitives/event-bus": "1.1.2",
6161
"@pierre/precision-diffs": "catalog:",

packages/opencode/src/cli/cmd/tui/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export function tui(input: {
154154
targetFps: 60,
155155
gatherStats: false,
156156
exitOnCtrlC: false,
157+
useKittyKeyboard: true,
157158
},
158159
)
159160
})

packages/opencode/src/config/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,11 +466,11 @@ export namespace Config {
466466
input_clear: z.string().optional().default("ctrl+c").describe("Clear input field"),
467467
input_forward_delete: z.string().optional().default("ctrl+d").describe("Forward delete"),
468468
input_paste: z.string().optional().default("ctrl+v").describe("Paste from clipboard"),
469-
input_submit: z.string().optional().default("enter").describe("Submit input"),
469+
input_submit: z.string().optional().default("return").describe("Submit input"),
470470
input_newline: z
471471
.string()
472472
.optional()
473-
.default("shift+enter,ctrl+j")
473+
.default("shift+return,ctrl+j")
474474
.describe("Insert newline in input"),
475475
history_previous: z.string().optional().default("up").describe("Previous history item"),
476476
history_next: z.string().optional().default("down").describe("Previous history item"),

packages/opencode/test/keybind.test.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ describe("Keybind.toString", () => {
2828
})
2929

3030
test("should convert shift modifier to string", () => {
31-
const info: Keybind.Info = { ctrl: false, meta: false, shift: true, leader: false, name: "enter" }
32-
expect(Keybind.toString(info)).toBe("shift+enter")
31+
const info: Keybind.Info = {
32+
ctrl: false,
33+
meta: false,
34+
shift: true,
35+
leader: false,
36+
name: "return",
37+
}
38+
expect(Keybind.toString(info)).toBe("shift+return")
3339
})
3440

3541
test("should convert function key to string", () => {
@@ -38,7 +44,13 @@ describe("Keybind.toString", () => {
3844
})
3945

4046
test("should convert special key to string", () => {
41-
const info: Keybind.Info = { ctrl: false, meta: false, shift: false, leader: false, name: "pgup" }
47+
const info: Keybind.Info = {
48+
ctrl: false,
49+
meta: false,
50+
shift: false,
51+
leader: false,
52+
name: "pgup",
53+
}
4254
expect(Keybind.toString(info)).toBe("pgup")
4355
})
4456

@@ -220,15 +232,15 @@ describe("Keybind.parse", () => {
220232
])
221233
})
222234

223-
test("should parse shift+enter combination", () => {
224-
const result = Keybind.parse("shift+enter")
235+
test("should parse shift+return combination", () => {
236+
const result = Keybind.parse("shift+return")
225237
expect(result).toEqual([
226238
{
227239
ctrl: false,
228240
meta: false,
229241
shift: true,
230242
leader: false,
231-
name: "enter",
243+
name: "return",
232244
},
233245
])
234246
})

0 commit comments

Comments
 (0)