Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No provision made for multiple clipboards, e.g. on Linux #213

Open
sersorrel opened this issue Apr 29, 2024 · 0 comments
Open

No provision made for multiple clipboards, e.g. on Linux #213

sersorrel opened this issue Apr 29, 2024 · 0 comments

Comments

@sersorrel
Copy link

Linux machines frequently have multiple clipboards ("selections"). For example, using X11, in addition to the "clipboard" selection that ctrl-C and ctrl-V operate on, there is a "primary" selection which is populated with the last text to be selected, and is pasted from with middle-click. (There is also a "secondary" selection, which is at this point mostly obsolete.) Depending on the compositor, I believe the primary selection is also supported on Wayland.

The Clipboard API doesn't make any provision for the existence of these multiple clipboards. This is unfortunate: they're still widely used! For example, middle-clicking the New Tab button in Firefox and Chrome on Linux will open a new tab using the contents of the primary selection (searching it or navigating to it).

A concrete example of a place this causes issues: the Tree Style Tab extension for Firefox can't properly emulate this browser behaviour, because it can't access the primary selection when opening new tabs. See piroor/treestyletab#3489 (comment).

Is there any interest in resolving this problem in the standard? It seems like #81 covers the same problem, but was closed with no explanation four years ago.

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

No branches or pull requests

1 participant