Skip to content

Commit 360c04c

Browse files
committed
docs: copying text
1 parent 529fd57 commit 360c04c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ opencode will detect if you're using Wayland and prefer `wl-clipboard`, otherwis
119119

120120
---
121121

122+
### How to select and copy text in the TUI
123+
124+
There are several ways to copy text from opencode's TUI:
125+
126+
- **Copy latest message**: Use `<leader>y` to copy the most recent message in your current session to the clipboard
127+
- **Export session**: Use `/export` (or `<leader>x`) to open the current session as plain text in your `$EDITOR` (requires the `EDITOR` environment variable to be set)
128+
129+
We're working on adding click & drag text selection in a future update.
130+
131+
---
132+
122133
### TUI not rendering full width
123134

124135
By default, opencode's TUI uses an "auto" layout that centers content with padding. If you want the TUI to use the full width of your terminal, you can configure the layout setting:

0 commit comments

Comments
 (0)