Skip to content

Commit 08895c3

Browse files
authored
docs: fix tui and keybinds documentation (#25233)
1 parent 4e451a4 commit 08895c3

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

packages/web/src/content/docs/keybinds.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ OpenCode has a list of keybinds that you can customize through `tui.json`.
2323
"session_list": "<leader>l",
2424
"session_timeline": "<leader>g",
2525
"session_fork": "none",
26-
"session_rename": "none",
26+
"session_rename": "ctrl+r",
2727
"session_share": "none",
2828
"session_unshare": "none",
2929
"session_interrupt": "escape",
@@ -105,6 +105,13 @@ OpenCode has a list of keybinds that you can customize through `tui.json`.
105105
}
106106
```
107107

108+
:::note
109+
On Windows, the defaults for `input_undo` and `terminal_suspend` are different:
110+
111+
- `input_undo` defaults to `ctrl+z,ctrl+-,super+z` (the `ctrl+z` binding is added because Windows terminals do not support POSIX suspend).
112+
- `terminal_suspend` is forced to `none` because native Windows terminals do not support POSIX suspend.
113+
:::
114+
108115
---
109116

110117
## Leader key

packages/web/src/content/docs/tui.mdx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ Toggle tool execution details.
9999
/details
100100
```
101101

102-
**Keybind:** `ctrl+x d`
103-
104102
---
105103

106104
### editor
@@ -147,8 +145,6 @@ Show the help dialog.
147145
/help
148146
```
149147

150-
**Keybind:** `ctrl+x h`
151-
152148
---
153149

154150
### init
@@ -159,8 +155,6 @@ Guided setup for creating or updating `AGENTS.md`. [Learn more](/docs/rules).
159155
/init
160156
```
161157

162-
**Keybind:** `ctrl+x i`
163-
164158
---
165159

166160
### models
@@ -226,8 +220,6 @@ Share current session. [Learn more](/docs/share).
226220
/share
227221
```
228222

229-
**Keybind:** `ctrl+x s`
230-
231223
---
232224

233225
### themes
@@ -366,7 +358,7 @@ You can customize TUI behavior through `tui.json` (or `tui.jsonc`).
366358
},
367359
"scroll_speed": 3,
368360
"scroll_acceleration": {
369-
"enabled": true
361+
"enabled": false
370362
},
371363
"diff_style": "auto",
372364
"mouse": true
@@ -390,7 +382,7 @@ Use `OPENCODE_TUI_CONFIG` to load a custom TUI config path.
390382

391383
## Customization
392384

393-
You can customize various aspects of the TUI view using the command palette (`ctrl+x h` or `/help`). These settings persist across restarts.
385+
You can customize various aspects of the TUI view using the command palette (`ctrl+p`). These settings persist across restarts.
394386

395387
---
396388

0 commit comments

Comments
 (0)