I cannot believe that in this the year of our lord 2025 we still have two separate clipboard buffers on desktop Linux.
There are very few cases where I will execute a paste (whether it is with middle click or Ctrl-V) and I will want the resulting paste to be anything other than the last thing I copied. Whatever X11 subcommittee came up with the idea that users would want to juggle stuff between the two buffers, or whatever the fuck the thinking was, needs to be punished physically. It’s not enough to tell them: They need to remember, so that they will know what they did was wrong, and get fearful in the future if they ever think of doing anything like that again. Their names should be made public, so that people in the future who might want to hire them will know what they did. (I tried to find out who it was, but Google is drunk again and couldn’t really tell me all that much.)
I am already aware that the X11 people spent a lot of time huffing glue in between creating overly complicated standards documents. So maybe the fact that they made some baffling and wrong decisions for literally no reason isn’t surprising. It was a long time ago, a lot of bad things happened back then. What I really cannot understand is why Wayland looked at that decision, and the long history of pain and suffering it had caused over the years, and decided, “You know what? Let’s keep that around. What harm could it do? And anyway… it’s compatible!”
Having two clipboards is literally just worse. They did extra work, and enforced extra work on every programmer and every user, just to make things worse. If anyone knows of something I can run that will just do a simple bidirectional sync between the two clipboards, so I can just pretend to myself that all of this isn’t happening, please tell me. I tried to find a solution for half the morning so far, because I finally just got enraged by it, and I couldn’t find one.
If I imagine hard to myself, I can maybe imagine a scenario where I might want to hit Ctrl-C, then I would accidentally highlight something right after, and then I would want to paste the thing I did Ctrl-C for. But surely that use case isn’t the one that we need to wrap the whole desktop Linux clipboard situation around, to make sure that Fat-Finger Freddy can still get his pasting done, all while the rest of us have to go around saying things like “wl-paste -p -w ‘wl-copy’” and everyone has to do a bunch of extra work whenever they want to do the already difficult task of making pasting work in an editor over SSH or something.
I literally can’t believe how bad it is. It’s like a prank. It’s like one of those imaginary programming languages where someone invented a deliberately malicious feature and then implemented it to a T to be funny.
I do not like it. Not one bit.
Also: Did you know there’s a secondary selection? There are actually three clipboards. Emacs is only editor in history that does anything with the third one. Hold down “alt” and drag with the left button to highlight something, and it’ll go into the top secret secondary clipboard, where nothing else will ever see it.
OH HOW USEFUL
SAID NO ONE EVER
nesc@lemmy.cafe 10 months ago
I love that there is multiple clipboards, Primary is one of the best things ever. It’s super useful, I often select text in browser while reading and don’t need it in my clipboard, but when there is something interesting copied text is just one click away. Actually I would love a configurable number of clipboards, 5 would be great.
As foryour frustration you can use clipboard manager (iirc klipper on kde syncs them by default but you can disable or enable primary there).
PhilipTheBucket@ponder.cat 10 months ago
I wonder why that is lol
I solved my problem already;
wl-pastewas able to set up a situation that’s pretty acceptable to me (which, BTW, actually will preserve your ability to highlight text and then paste something from CLIPBOARD into something else if you want to). Helix over ssh still can only manage to yank text into one of the clipboards, and not the other, but I have invested enough of my free time into this problem at this point and don’t really want to delve into the reasons for that any further since I have a workflow that semi-works and whatever it’s fine.Like I said in one of the other comments, adding the ability to paste text from any of the last N copies would solve your problem as well as many others, and it would also degrade gracefully into acceptable behavior instead of degrading into inability to copy-paste as the current system does. I’ve already solved my problem so I am fine, but I still refuse to accept on any level that this was the right way to structure things.
nesc@lemmy.cafe 10 months ago
Ability to paste text from last n copies is also built-in in every clipboard manager, for kde klipper history is mapped to win+v, for others I don’t know.
Ability to sync clipboard over ssh that will support other applications is a neat thing to have, true.