News for hackers. Stuff that matters.
Re:How the Clipboard Works by imiric on Tuesday October 25, 2022 @04:18AM (#33327674)
I don't think having two different clipboard implementations is a usability advantage. Only on Linux do you find yourself in the situation where one application copied to the Unix clipboard, and another tries to paste from the "secondary" (X11?) one. Standardizing on one implementation is the only sane path forward.
Re:How the Clipboard Works by enriquto on Tuesday October 25, 2022 @04:45AM (#33327885)
> Only on Linux do you find yourself in the situation where one application copied to the Unix clipboard, and another tries to paste from the "secondary"

This never happens if you only use the unix clipboard. I agree that both methods should point to the same clipboard, but this is an implementation detail. The important thing is the interface: selecting text copies it to the clipboard, middle-clicking pastes it.

Re:How the Clipboard Works by anentropic on Tuesday October 25, 2022 @12:00PM (#33332395)
So... selecting some text by accident clears what you previously had in the clipboard?
Re:How the Clipboard Works by enriquto on Tuesday October 25, 2022 @04:08PM (#33335488)
Well, of course; why would you want to keep the first clipboard forever? This is exactly the same behavior as for ^C/^V. I don't understand the purpose of your question.
Re:How the Clipboard Works by rovolo on Wednesday October 26, 2022 @05:31PM (#33349783)
> by accident

Imagine you install a 'clapper' in your bedroom to control the lights. You say "works great for me, let's install this everywhere". Someone responsible for an auditorium then says "so clapping turns the lights on and off?"

That said, I frequently use text selection as a highlighter. I will highlight lines as I'm reading text to help me keep track of which line I'm on. I also need to select text to apply formatting such as bold or add link.

Re:How the Clipboard Works by Someone on Tuesday October 25, 2022 @06:47AM (#33328766)
MacOs sort-of has that, too. Control-K and control-Y cut and paste to a separate clipboard (at least in TextEdit.app, with its emacs-like key bindings)
Re:How the Clipboard Works by account42 on Tuesday October 25, 2022 @11:06AM (#33331563)
I have literally never run into applications mixing up the clipboard and selection on Linux - its always CTRL+C->CLIPBOARD->CTRL+V and select->PRIMARY->middleclick.

Super useful to have two different scratch buffers when moving things around.

Re:How the Clipboard Works by wizzwizz4 on Tuesday October 25, 2022 @11:56AM (#33332324)
Dillo doesn't support Ctrl+C on the contents of websites, so it feels like it mixes them up; actually, it doesn't. (Ninja-edit to correct myself.)