summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoradamdotdevin <[email protected]>2025-07-16 13:26:26 -0500
committeradamdotdevin <[email protected]>2025-07-16 13:26:26 -0500
commit360c04c5429f070f05ec00a4dd4d727818f1a2ba (patch)
treee5a90307aa8279bf65dc180b09c467c4b97755f4
parent529fd57e7550f0c26b3e3633e8a79da7ae23dc51 (diff)
downloadopencode-360c04c5429f070f05ec00a4dd4d727818f1a2ba.tar.gz
opencode-360c04c5429f070f05ec00a4dd4d727818f1a2ba.zip
docs: copying text
-rw-r--r--packages/web/src/content/docs/docs/troubleshooting.mdx11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/web/src/content/docs/docs/troubleshooting.mdx b/packages/web/src/content/docs/docs/troubleshooting.mdx
index 72064155e..f5bee1ad6 100644
--- a/packages/web/src/content/docs/docs/troubleshooting.mdx
+++ b/packages/web/src/content/docs/docs/troubleshooting.mdx
@@ -119,6 +119,17 @@ opencode will detect if you're using Wayland and prefer `wl-clipboard`, otherwis
---
+### How to select and copy text in the TUI
+
+There are several ways to copy text from opencode's TUI:
+
+- **Copy latest message**: Use `<leader>y` to copy the most recent message in your current session to the clipboard
+- **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)
+
+We're working on adding click & drag text selection in a future update.
+
+---
+
### TUI not rendering full width
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: