diff options
| author | opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> | 2025-12-30 09:44:09 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-30 09:44:09 -0600 |
| commit | 37da005a0141b099bb72671b320991c85de8cd0f (patch) | |
| tree | c42dfb5fa54fe598c7409b45193baddc23b589a2 /packages/web/src/content/docs/keybinds.mdx | |
| parent | 8b708242f1eb21e40af5ef24e6e3eb4b7683a45e (diff) | |
| download | opencode-37da005a0141b099bb72671b320991c85de8cd0f.tar.gz opencode-37da005a0141b099bb72671b320991c85de8cd0f.zip | |
docs: projects, find.files, notifications (#6438)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/web/src/content/docs/keybinds.mdx')
| -rw-r--r-- | packages/web/src/content/docs/keybinds.mdx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/keybinds.mdx b/packages/web/src/content/docs/keybinds.mdx index 4f1b09d3f..04d03d0d8 100644 --- a/packages/web/src/content/docs/keybinds.mdx +++ b/packages/web/src/content/docs/keybinds.mdx @@ -118,6 +118,29 @@ You can disable a keybind by adding the key to your config with a value of "none --- +## Desktop prompt shortcuts + +The OpenCode desktop app prompt input supports common Readline/Emacs-style shortcuts for editing text. These are built-in and currently not configurable via `opencode.json`. + +| Shortcut | Action | +| -------- | ---------------------------------------- | +| `ctrl+a` | Move to start of current line | +| `ctrl+e` | Move to end of current line | +| `ctrl+b` | Move cursor back one character | +| `ctrl+f` | Move cursor forward one character | +| `alt+b` | Move cursor back one word | +| `alt+f` | Move cursor forward one word | +| `ctrl+d` | Delete character under cursor | +| `ctrl+k` | Kill to end of line | +| `ctrl+u` | Kill to start of line | +| `ctrl+w` | Kill previous word | +| `alt+d` | Kill next word | +| `ctrl+y` | Yank (paste) last killed text | +| `ctrl+t` | Transpose characters | +| `ctrl+g` | Cancel popovers / abort running response | + +--- + ## Shift+Enter Some terminals don't send modifier keys with Enter by default. You may need to configure your terminal to send `Shift+Enter` as an escape sequence. |
