GeezerVison is showing github.com — [FEATURE]: On Linux/Wayland allow pasting with middle click · Issue #3684 · anomalyco/opencode
[FEATURE]: On Linux/Wayland allow pasting with middle click #3684Labels discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui DescriptionFeature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
It is possible I missed a config but on ghostty in Wayland I can't paste with middle click like in other TUI apps like lazygit.
This would be a nice to have for those of us with that muscle memory. Reacted by Mark Tompkins, Jordan McAlpine, Pavel Snajdr, Darko Luketic, Sebastian Rojo, pikdum, Mauro, Steve Schmerler, d0b3rm4n, Carlo Wood and 2 more ActivitySewer56 commented on Nov 1, 2025 Extra note: Works in VSCode's terminal, not in Alacritty.
Guessing it's VSC injecting it manually. spahl commented on Nov 1, 2025 @thdxr Is that something you'd be open to have added as is or does it need more details/discussion? I'd be happy to implement. I'd imagine that would require some opentui changes too. itmo commented on Nov 8, 2025 i am having same issue in fedora 42 X11. Especially annoying when quickly copypasting error messages from tests to prompt.. m0x2A commented on Jan 10, 2026 I'm experiencing the same issue on CachyOS with KDE Plasma Wayland.
Environment:
- OS: CachyOS (Arch-based)
- Desktop: KDE Plasma Wayland
- Terminal: Ghostty 1.2.3-arch2.1
- Mouse paste methods that don't work:
- Middle-Click (Primary Selection)
- Right-Click context menu (Clipboard)
- Paste methods that work: Shift+Insert (Clipboard)
Details:
Pasting text into OpenCode prompts doesn't work with either mouse-based clipboard mechanism available in Ghostty. Middle-Click (Primary Selection) and the Right-Click context menu (Clipboard) both fail. However, Shift+Insert works reliably. Interestingly, pasting works perfectly fine in regular Ghostty outside of OpenCode using both methods.
Additional info:
acidkewpie commented on Jan 26, 2026 Shift + middle click works when I do it in a foot terminal. github-actions commented on Mar 29, 2026 To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one. dolzenko commented on May 26, 2026
Shift + middle click works when I do it in a foot terminal.
Thank you, works for me in alacritty as well!
MetadataMetadatadiscussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui DevelopmentNo branches or pull requestsIssue actions
|