diff options
| author | Gautier DI FOLCO <[email protected]> | 2026-04-06 04:14:11 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-05 21:14:11 -0500 |
| commit | 4712c18a5833da85cd3946357662b148e78573f7 (patch) | |
| tree | 7f46341d12cb40c0543611670b8c6c864316ddcf /packages/web | |
| parent | 9e156ea168fd5b21627e341085bba73018454cb1 (diff) | |
| download | opencode-4712c18a5833da85cd3946357662b148e78573f7.tar.gz opencode-4712c18a5833da85cd3946357662b148e78573f7.zip | |
feat(tui): make the mouse disablable (#6824, #7926) (#13748)
Diffstat (limited to 'packages/web')
| -rw-r--r-- | packages/web/src/content/docs/cli.mdx | 1 | ||||
| -rw-r--r-- | packages/web/src/content/docs/config.mdx | 5 | ||||
| -rw-r--r-- | packages/web/src/content/docs/tui.mdx | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/packages/web/src/content/docs/cli.mdx b/packages/web/src/content/docs/cli.mdx index e2ba2404d..579038ad0 100644 --- a/packages/web/src/content/docs/cli.mdx +++ b/packages/web/src/content/docs/cli.mdx @@ -573,6 +573,7 @@ OpenCode can be configured using environment variables. | `OPENCODE_DISABLE_CLAUDE_CODE_PROMPT` | boolean | Disable reading `~/.claude/CLAUDE.md` | | `OPENCODE_DISABLE_CLAUDE_CODE_SKILLS` | boolean | Disable loading `.claude/skills` | | `OPENCODE_DISABLE_MODELS_FETCH` | boolean | Disable fetching models from remote sources | +| `OPENCODE_DISABLE_MOUSE` | boolean | Disable mouse capture in the TUI | | `OPENCODE_FAKE_VCS` | string | Fake VCS provider for testing purposes | | `OPENCODE_DISABLE_FILETIME_CHECK` | boolean | Disable file time checking for optimization | | `OPENCODE_CLIENT` | string | Client identifier (defaults to `cli`) | diff --git a/packages/web/src/content/docs/config.mdx b/packages/web/src/content/docs/config.mdx index 39f3cd8ff..52ee1da0a 100644 --- a/packages/web/src/content/docs/config.mdx +++ b/packages/web/src/content/docs/config.mdx @@ -272,7 +272,8 @@ Use a dedicated `tui.json` (or `tui.jsonc`) file for TUI-specific settings. "scroll_acceleration": { "enabled": true }, - "diff_style": "auto" + "diff_style": "auto", + "mouse": true } ``` @@ -280,8 +281,6 @@ Use `OPENCODE_TUI_CONFIG` to point to a custom TUI config file. Legacy `theme`, `keybinds`, and `tui` keys in `opencode.json` are deprecated and automatically migrated when possible. -[Learn more about TUI configuration here](/docs/tui#configure). - --- ### Server diff --git a/packages/web/src/content/docs/tui.mdx b/packages/web/src/content/docs/tui.mdx index 6dfa7b312..e89fb4af3 100644 --- a/packages/web/src/content/docs/tui.mdx +++ b/packages/web/src/content/docs/tui.mdx @@ -368,7 +368,8 @@ You can customize TUI behavior through `tui.json` (or `tui.jsonc`). "scroll_acceleration": { "enabled": true }, - "diff_style": "auto" + "diff_style": "auto", + "mouse": true } ``` @@ -381,6 +382,7 @@ This is separate from `opencode.json`, which configures server/runtime behavior. - `scroll_acceleration.enabled` - Enable macOS-style scroll acceleration for smooth, natural scrolling. When enabled, scroll speed increases with rapid scrolling gestures and stays precise for slower movements. **This setting takes precedence over `scroll_speed` and overrides it when enabled.** - `scroll_speed` - Controls how fast the TUI scrolls when using scroll commands (minimum: `0.001`, supports decimal values). Defaults to `3`. **Note: This is ignored if `scroll_acceleration.enabled` is set to `true`.** - `diff_style` - Controls diff rendering. `"auto"` adapts to terminal width, `"stacked"` always shows a single-column layout. +- `mouse` - Enable or disable mouse capture in the TUI (default: `true`). When disabled, the terminal's native mouse selection/scrolling behavior is preserved. Use `OPENCODE_TUI_CONFIG` to load a custom TUI config path. |
