GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Add support for Linux PRIMARY selection (middle-click paste) · Issue #29963 · anomalyco/opencode

[FEATURE]: Add support for Linux PRIMARY selection (middle-click paste) #29963

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Add support for Linux PRIMARY selection (middle-click paste)#29963
Copy link
Assignees
simonklee

Description

@bornmw
bornmw
opened on May 30, 2026
Issue body actions

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

Description

Currently, the TUI only targets the CLIPBOARD selection when copying text. On Linux, this means that while Ctrl+C/V works, the native "highlight to copy" and "middle-click to paste" behavior (PRIMARY selection) is not supported.

This makes the TUI feel non-native on Linux environments.

Proposed Solution

Introduce a new configuration option linux_clipboard_selection in the TUI config with the following values:

  • clipboard: Standard Ctrl+C/V (current behavior)
  • primary: Targets the middle-click buffer
  • both: Updates both buffers simultaneously (recommended default)

This requires using xclip, xsel, or wl-copy to explicitly target the primary selection.

Reacted by martin-vi, Miguel López López, sbalmer, rogercost and Kyle Baker

Activity

  1. github-actions
    assigned
    simonklee
    on May 30, 2026
  2. github-actions commented on May 30, 2026

    @github-actions
    github-actionsBot
    on May 30, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • X Window (xorg) middle-click paste doesn't work #6072: X Window (xorg) middle-click paste doesn't work — describes the same underlying behavior (middle-click/PRIMARY selection not working on Linux/X11)

    If your request is specifically about adding a configuration option to target the PRIMARY selection (not just fixing middle-click paste), it may still be distinct enough to stand on its own. Please check #6072 and let us know if this covers your use case or if your request is different.

  3. bornmw commented on May 30, 2026

    @bornmw
    bornmw
    on May 30, 2026 via email
    Author
    More actions
    #6072 is different as it covers pasting into OpenCode, while mine covers copying from OpenCodeSent from my iPhoneOn May 29, 2026, at 11:56 PM, github-actions[bot] ***@***.***> wrote:#6072
  4. simonklee commented on May 31, 2026

    @simonklee
    simonklee
    on May 31, 2026
    Member
    More actions

    Ideally i'd like to lower all of this (pr and clipboard things) to OpenTUI, but i think for now this may be good.

    Reacted by sbalmer
  5. github-actions commented on Jul 31, 2026

    @github-actions
    github-actionsBot
    on Jul 31, 2026 – with GitHub Actions
    Contributor
    More actions

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

  6. github-actions
    closed this as not plannedon Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @simonklee
    simonklee

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.