mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
docs: copying text
This commit is contained in:
parent
529fd57e75
commit
360c04c542
1 changed files with 11 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue