mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 16:02:19 +00:00
feat(tui): layout config to render full width
This commit is contained in:
parent
fdd6d6600f
commit
cdc1d8a94d
16 changed files with 465 additions and 434 deletions
|
|
@ -116,3 +116,20 @@ export DISPLAY=:99.0
|
|||
```
|
||||
|
||||
opencode will detect if you're using Wayland and prefer `wl-clipboard`, otherwise it will try to find clipboard tools in order of: `xclip` and `xsel`.
|
||||
|
||||
---
|
||||
|
||||
### 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:
|
||||
|
||||
```json
|
||||
{
|
||||
"layout": "stretch"
|
||||
}
|
||||
```
|
||||
|
||||
Add this to your `opencode.json` configuration file. The available layout options are:
|
||||
|
||||
- `"auto"` (default) - Centers content with padding
|
||||
- `"stretch"` - Uses full terminal width
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue