this post was submitted on 11 May 2024
1 points (100.0% liked)

Programmer Humor

19471 readers
1315 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 10 comments
sorted by: hot top controversial new old
[–] fibojoly@sh.itjust.works 1 points 5 months ago

Y'all haven't heard of Windows clipboard history? Windows + V will change your life, I tell ya!

[–] stepan@lemmy.cafe 0 points 5 months ago (1 children)

Same thing but reversed with multiple cursors :/

[–] whats_all_this_then@programming.dev 0 points 5 months ago (1 children)

That's actually the biggest thing I miss about VSCode

[–] rtxn@lemmy.world 0 points 5 months ago (1 children)

Gee, X11! How come your mom lets you have THREE clipboards?

[–] whats_all_this_then@programming.dev 0 points 5 months ago (1 children)

Wait is that an actual thing?

[–] rtxn@lemmy.world 1 points 5 months ago* (last edited 5 months ago)

Yes. X11 replaced X10's obsolete cut buffers (which can be modified by any process) with state-of-the-art selections. There are three selections in X11: a primary, a secondary, and a clipboard.

In modern desktops, the primary selection is overwritten every time you select some text (including in the terminal), which makes its content very ephemeral. You can paste it with the middle mouse button.

The secondary selection is generally not used, but it's present in the specification, and you can use xclip -selection secondary to access it. Wayland doesn't seem to have a secondary selection.

The clipboard selection is what most people understand to be THE clipboard. You have to write to it explicitly (through a keyboard shortcut, API, or CLI tool), and its content persists until it is overwritten, explicitly cleared, or the X server is killed. While the primary and secondary can only contain text, the clipboard can contain many kinds of data.

[–] Ephera@lemmy.ml 0 points 5 months ago (1 children)

Nevermind simply having an OS-level clipboard manager...

[–] mp3@lemmy.ca 0 points 5 months ago (1 children)

Win+V works decently enough for me.

[–] jnk@sh.itjust.works 1 points 5 months ago

Same for plasma, global clipboard is just more convenient