3 ms·
It's #1, but it's the primary selection, not the clipboard. On Linux, there's the clipboard, which is the Ctrl+C/Ctrl+V that most people are familiar with. Th
by deathanatos 3y ago
It's #1, but it's the primary selection, not the clipboard.
On Linux, there's the clipboard, which is the Ctrl+C/Ctrl+V that most people are familiar with.
There's also the "primary selection", which is the currently highlighted text. That selection can be pasted into a different app or text box with middle click. So you can really quickly do highlight, middle-click, highlight, middle click.
The primary selection is stored separately from the clipboard too, so it won't overwrite the contents of such.
But, because setting the primary selection is just selecting text, if JS selects text, then it sets the primary selection. Compare with the clipboard: JS cannot normally set the clipboard except in certain contexts (the OP goes into these).
- loxias 3y agoAh, whew. Write only. I used to make use of the difference between clipboard and cut buffer, intentionally using them both, but for a long time now I just run autocutsel in the background which keeps them in sync -- makes it easier to copy a region in emacs and move it into firefox, or vice versa.