Skip to content

Conversation

@aweis89
Copy link
Contributor

@aweis89 aweis89 commented Dec 19, 2025

Summary

  • Added 'current' as a valid position option for UI placement, allowing Opencode to take over the active window.
  • Updated position handling in dimensions and window closing logic to support this new layout.
  • Disabled winfixbuf in 'current' mode and added an autocommand to automatically close Opencode when switching to a different file, enabling a seamless workflow with file pickers.
  • Ensured compatibility with existing configurations.

Resolves #145

- allow 'current' as a valid position option for UI placement
- update position handling in dimensions and window closing logic
- ensure compatibility with existing configurations
… switch

When 'ui.position' is set to 'current', disabling 'winfixbuf' prevents E1513
errors when external pickers (like Snacks) try to switch buffers. Added a
BufEnter autocmd to automatically close the Opencode UI when a non-Opencode
buffer enters an Opencode window in this mode.
@sudo-tee
Copy link
Owner

Interesting, I will test this today

@sudo-tee
Copy link
Owner

@aweis89 This looks good.

Can you add the config option to the README ?

I will merge after this

- clarify that UI position can now be 'current' alongside 'right' and 'left'
- improve documentation for better user understanding of options
@sudo-tee
Copy link
Owner

Thanks for the PR

@sudo-tee sudo-tee merged commit b4ad8c1 into sudo-tee:main Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fullscreen none-split option

2 participants