Skip to content

[FEATURE]: On Linux/Wayland allow pasting with middle click #3684

Closed

Description

@spahl

Feature 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.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Nov 1, 2025
  2. Sewer56 commented on Nov 1, 2025

    @Sewer56
    Contributor

    Extra note: Works in VSCode's terminal, not in Alacritty.
    Guessing it's VSC injecting it manually.

  3. spahl commented on Nov 1, 2025

    @spahl
    Author

    @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.

  4. itmo commented on Nov 8, 2025

    @itmo

    i am having same issue in fedora 42 X11. Especially annoying when quickly copypasting error messages from tests to prompt..

  5. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 8, 2025
  6. m0x2A commented on Jan 10, 2026

    @m0x2A

    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:

  7. acidkewpie commented on Jan 26, 2026

    @acidkewpie

    Shift + middle click works when I do it in a foot terminal.

  8. github-actions commented on Mar 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  9. dolzenko commented on May 26, 2026

    @dolzenko

    Shift + middle click works when I do it in a foot terminal.

    Thank you, works for me in alacritty as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions