121 points

Nevermind simply having an OS-level clipboard manager…

permalink
report
reply
67 points

Win+V works decently enough for me.

permalink
report
parent
reply
41 points

Same for plasma, global clipboard is just more convenient

permalink
report
parent
reply
13 points

Global clipboard is chef’s kiss. Back when I was on Ubuntu/Gnome, I had to install CopyQ but having one come with the OS is great

permalink
report
parent
reply
3 points

Global clipboard synced with the smartphone thanks to KDE connect !

permalink
report
parent
reply
8 points

I think windows+v syncs to microsoft servers or something. I remember when I was running chris titus tech’s debloat script it removed that functionality.

permalink
report
parent
reply
10 points

I googled it, there is an option to sync it to your Microsoft account, but I can’t say whether that’s on by default when you turn on clipboard history because I skipped adding a Microsoft account. But if it is, you can turn it off in Settings -> System -> Clipboard.

permalink
report
parent
reply
8 points

Holy crap I think that may be why I never used it. Fuck how much Windows likes to calls home

permalink
report
parent
reply
1 point

An excellent option to have when one of the major use cases for clipboards is as an intermediary for password managers.

I hope they eventually get sued into the fucking ground.

permalink
report
parent
reply
1 point

I’m don’t know why but I’ve never used windows clipboard manager, which is weird because I go out of my way to make sure I have one when I’m on linux

permalink
report
parent
reply
18 points

There is for windows, and it’s further improved if you get power toys too

permalink
report
parent
reply
1 point

I took a look through my power toys settings, but couldn’t find anything there that had to do with the win+v clipboard history. Google hasn’t been any help either. What is it that I’m overlooking? How does powertoys improve the clipboard history feature?

permalink
report
parent
reply
1 point

I’m currently not on my windows pc at the moment but it could be that it’s functionality might actually be native to win 11? I don’t realise use it myself I just remember seeing it when originally getting powertoys and thinking that was cool

permalink
report
parent
reply
17 points

Application specific buffers are the first thing I disable on emacs. The OS one isn’t just integrated with every other normal piece of software, it’s also more powerful and easier to use.

… at least on my Linux, YMMV.

permalink
report
parent
reply
5 points

The os buffer is just another buffer that I can yank into.

permalink
report
parent
reply
9 points

Windows also has it, but it’s disabled by default for some reason

permalink
report
parent
reply
0 points

It’s not disabled.

permalink
report
parent
reply
5 points

Or the KDE System tray…

permalink
report
parent
reply
1 point

Ah, that is what I meant with OS-level clipboard manager (in fact, that is precisely what I thought of).

permalink
report
parent
reply
1 point

Oh, I gotcha now

permalink
report
parent
reply
3 points

Nah that’d be too intuitive

In all seriousness though, I kinda appreciate moving things around in my editor without losing that one snipet I copied for later

permalink
report
parent
reply
40 points

ive never had to think about clipboard buffers until i used a modal editor.

now i spend %60 of my time trying to figure out where the copied symbol went.

permalink
report
reply
8 points

I don’t have the name handy, but there’s at least one plugin for vim that shows buffer previews in a popup. I’ve got it mapped to leader-sb (for “show buffer”).

permalink
report
parent
reply
4 points

Telescope?

permalink
report
parent
reply
1 point

yah, helix has that in the info bar oob.

im just not thinking about that when im copying shit, i just want to copy paste like it’s 1999.

permalink
report
parent
reply
7 points

You can see all registers in use with :registers, to paste from a register say "2 in insert mode use key combination <ctrl-r>2 or in normal mode "2p. You can check out more in :help registers. Unnamed register or "" is the system clipboard I think. To copy texts in a register you can prepend yank (/delete/cut, etc.) with that register "_ (for black hole register[1]) This is for neovim. Have keybinds for them and there saved you a plugin :D


  1. Text yanked in this register is gone, i.e. it’s not saved in any register. ↩︎

permalink
report
parent
reply
6 points

So far I haven’t been brave enough for that feature. It’s either “that main place yank goes”, “system clipboard”, or “that place that makes it disappear” for me

permalink
report
parent
reply
37 points

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

permalink
report
reply
19 points

then theyre all ignored by x-clip

xD

permalink
report
parent
reply
7 points

Wait is that an actual thing?

permalink
report
parent
reply
27 points
*

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.

permalink
report
parent
reply
3 points

In modern desktops, the primary selection is overwritten every time you select some text

( °O°)
You just opened a whole new world for me, it works in Wayland too

permalink
report
parent
reply
2 points

Okay I had no.idea. So on Plasma, I’m guessing when I copy anything, it’s writing it both the primary selection, and the clipboard selection and that’s how it stays in the clipboard manager thingy?

permalink
report
parent
reply
33 points

I can’t tell if ops joke is “intentionally confusing buffers with registers” and everyone is playing along or if people aren’t making the distinction between the two in this thread.

Which is ironic and humorous…potentially by accident.

permalink
report
reply
6 points

I’m an idiot and I think I confused the two haha

My thought process based on when I setup my config: “yank copies to my main ‘buffer’, <leader> yank copies to system clipboard through that special ‘buffer’, and <leader> delete deletes without replacing what’s in my main ‘buffer’. I have multiple clipboards!”

Completely forgot they’re called registers and that buffers are just “where text is” (at least as far as I understand it)

permalink
report
parent
reply
2 points

I kind of assumed that his comment was independent of the meme he posted and served more to underline a perceived power that vim has over other editors. In this case a power OP doesn’t even understand/use himself.

permalink
report
parent
reply
30 points

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

permalink
report
reply
0 points

Last I checked you have to enable it, which is annoying.

permalink
report
parent
reply
14 points

You use it once, it asks if you want to enable, and you click literally one button.

permalink
report
parent
reply
8 points

Meanwhile, this was a feature on KDE-land since Klipper, which goes back (as far as I know and if I remember well) to KDE 3 or sooner.

permalink
report
parent
reply
6 points

There have been third party clipboard managers forever in windows, which is kind of funny because that is almost more like the unix philosophy than expecting the UI system to handle it all.

permalink
report
parent
reply
4 points

To be fair it may be a security concern if someone is copy pasting passwords

permalink
report
parent
reply
5 points

Keeping their admin password in the history so they don’t have to alt+tab to their Secret Server webpage? W-who would do such a thing?!

permalink
report
parent
reply
3 points

I was going to mention that was a potential issue

permalink
report
parent
reply
2 points

Yeah, it floors me that it doesn’t look see a high-entropy 8+ character strings and not keep it.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 6.1K

    Monthly active users

  • 988

    Posts

  • 38K

    Comments