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

[Linux] Also put copied text into the primary selection buffer #72

Open
baconwaifu opened this issue Nov 14, 2023 · 0 comments · May be fixed by #73
Open

[Linux] Also put copied text into the primary selection buffer #72

baconwaifu opened this issue Nov 14, 2023 · 0 comments · May be fixed by #73

Comments

@baconwaifu
Copy link

One of the nicer features of linux is that there's actually multiple clipboards: the "traditional" ctrl-c/ctrl-v clipboard, and the "primary selection" which contains what you last highlighted, and is pasted with middle-click where the mouse cursor is. QClipboard treats these as 'modes' via a parameter, so it's just an additional setText(text, Selection) call if clipboard.supportsSelection() returns True to populate it as well. (Given that highlighting text to copy it also puts it in the primary selection, I'm occasionally surprised when something that modifies the clipboard doesn't update the selection buffer as well)

It would allow quick transcription of multiple text bubbles without needing to touch the keyboard, by just highlighting text, then moving the mouse over to a text document and middle-clicking to paste it, and shouldn't interfere with normal operation or platforms that don't support the selection buffer.

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

Successfully merging a pull request may close this issue.

1 participant