mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-17 05:26:47 +03:00
docs(tui): correct shortcut reference (#52606)
Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
Unverified
parent
5fdeed271d
commit
4f0d6d0ab6
@@ -97,7 +97,6 @@ Unknown command IDs are rejected.
|
||||
| `opencode.settings` | `none` | Open settings |
|
||||
| `server.pair` | `none` | Pair device |
|
||||
| `service.restart` | `none` | Restart service |
|
||||
| `permission.mode` | `none` | Toggle auto-approve permissions |
|
||||
|
||||
## Mini
|
||||
|
||||
@@ -159,10 +158,11 @@ The retired `diff.toggle`, `diff.expand`, `diff.expand_all`, `diff.collapse`, an
|
||||
| ID | Default | Description |
|
||||
| -------------------------- | ----------- | ---------------------------------------- |
|
||||
| `prompt.editor` | `<leader>e` | Open external editor |
|
||||
| `theme.switch` | `<leader>t` | List available themes |
|
||||
| `theme.switch` | `none` | List available themes |
|
||||
| `theme.switch_mode` | `none` | Switch between light and dark theme mode |
|
||||
| `theme.mode.lock` | `none` | Lock or unlock theme mode |
|
||||
| `session.sidebar.toggle` | `<leader>b` | Toggle sidebar |
|
||||
| `terminal.toggle` | `<leader>t` | Toggle terminal pane |
|
||||
| `session.toggle.scrollbar` | `none` | Toggle session scrollbar |
|
||||
| `opencode.status` | `<leader>s` | View status |
|
||||
| `opencode.debug` | `none` | View debug info |
|
||||
@@ -269,16 +269,16 @@ The retired `diff.toggle`, `diff.expand`, `diff.expand_all`, `diff.collapse`, an
|
||||
|
||||
## Prompt Commands
|
||||
|
||||
| ID | Default | Description |
|
||||
| ----------------------------- | ------------ | ---------------------- |
|
||||
| `prompt.submit` | `none` | Submit prompt |
|
||||
| `prompt.queue` | `alt+return` | Queue prompt |
|
||||
| `prompt.editor_context.clear` | `none` | Clear editor context |
|
||||
| `prompt.images.view` | `<leader>i` | View image attachments |
|
||||
| `prompt.skills` | `none` | Open skill selector |
|
||||
| `prompt.stash` | `none` | Stash prompt |
|
||||
| `prompt.stash.pop` | `none` | Pop stashed prompt |
|
||||
| `prompt.stash.list` | `none` | List stashed prompts |
|
||||
| ID | Default | Description |
|
||||
| ----------------------------- | ---------------- | ---------------------- |
|
||||
| `prompt.submit` | `none` | Submit prompt |
|
||||
| `prompt.queue` | `<leader>return` | Queue prompt |
|
||||
| `prompt.editor_context.clear` | `none` | Clear editor context |
|
||||
| `prompt.images.view` | `<leader>i` | View image attachments |
|
||||
| `prompt.skills` | `none` | Open skill selector |
|
||||
| `prompt.stash` | `none` | Stash prompt |
|
||||
| `prompt.stash.pop` | `none` | Pop stashed prompt |
|
||||
| `prompt.stash.list` | `none` | List stashed prompts |
|
||||
|
||||
## Input Editing
|
||||
|
||||
@@ -287,7 +287,7 @@ The retired `diff.toggle`, `diff.expand`, `diff.expand_all`, `diff.collapse`, an
|
||||
| `prompt.clear` | `ctrl+c` | Clear input field |
|
||||
| `prompt.paste` | `{"key":"ctrl+v","preventDefault":false}` (`ctrl+v`; `preventDefault: false`) | Paste from clipboard |
|
||||
| `input.submit` | `return` | Submit input |
|
||||
| `input.newline` | `shift+return,ctrl+return,ctrl+j` | Insert newline in input |
|
||||
| `input.newline` | `shift+return,ctrl+return,alt+return,ctrl+j` | Insert newline in input |
|
||||
| `input.move.left` | `left,ctrl+b` | Move cursor left in input |
|
||||
| `input.move.right` | `right,ctrl+f` | Move cursor right in input |
|
||||
| `input.move.up` | `up` | Move cursor up in input |
|
||||
@@ -355,7 +355,8 @@ The viewer shows recent output and stays open after exit; output redirected to a
|
||||
| `dialog.select.submit` | `return` | Submit selected dialog item |
|
||||
| `dialog.prompt.submit` | `return` | Submit dialog prompt |
|
||||
| `dialog.worktree.generate` | `tab` | Generate worktree name |
|
||||
| `dialog.move_session.new` | `ctrl+m` | New worktree |
|
||||
| `dialog.move_session.new` | `ctrl+a` | New worktree |
|
||||
| `dialog.move_session.move` | `ctrl+m` | Move session to worktree |
|
||||
| `dialog.move_session.delete` | `ctrl+d` | Delete worktree |
|
||||
| `dialog.move_session.refresh` | `ctrl+r` | Refresh worktrees |
|
||||
| `prompt.autocomplete.prev` | `up,ctrl+p` | Move to previous autocomplete item |
|
||||
@@ -364,7 +365,7 @@ The viewer shows recent output and stays open after exit; output redirected to a
|
||||
| `prompt.autocomplete.select` | `return` | Select autocomplete item |
|
||||
| `prompt.autocomplete.complete` | `tab` | Complete autocomplete item |
|
||||
| `permission.prompt.fullscreen` | `ctrl+f` | Toggle permission prompt fullscreen |
|
||||
| `plugins.toggle` | `space` | Toggle plugin |
|
||||
| `plugins.toggle` | `return` | Toggle plugin |
|
||||
| `dialog.mcp.toggle` | `space` | Toggle MCP server |
|
||||
| `dialog.plugins.install` | `shift+i` | Install plugin from plugin dialog |
|
||||
| `dialog.plugins.update` | `ctrl+u` | Update plugin from plugin dialog |
|
||||
|
||||
@@ -14,7 +14,7 @@ opencode
|
||||
Explain how authentication works in this project
|
||||
```
|
||||
|
||||
Press **Shift+Enter**, **Ctrl+Enter**, or **Ctrl+J** for a new line. While OpenCode is working, **Enter** steers the active session and **Alt+Enter** queues the prompt for later.
|
||||
Press **Shift+Enter**, **Ctrl+Enter**, **Alt+Enter**, or **Ctrl+J** for a new line. While OpenCode is working, **Enter** steers the active session; press **Ctrl+X**, then **Enter** to queue the prompt for later.
|
||||
|
||||
## Context
|
||||
|
||||
|
||||
Reference in New Issue
Block a user