Skip to content

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

Description

@bornmw

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.

Activity

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

Metadata

Metadata

Assignees

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