I still don't get buffers

https://programming.dev/post/13934342

I still don't get buffers - programming.dev

Nevermind simply having an OS-level clipboard manager…
Win+V works decently enough for me.
Same for plasma, global clipboard is just more convenient
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
Global clipboard synced with the smartphone thanks to KDE connect !
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.
Holy crap I think that may be why I never used it. Fuck how much Windows likes to calls home
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.

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.

Password managers should mark their clipboard data as sensitive and clean it up. Use a proper password manager and there won’t be issues.
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
There is for windows, and it’s further improved if you get power toys too

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

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.

The os buffer is just another buffer that I can yank into.
Or the KDE System tray…
Ah, that is what I meant with OS-level clipboard manager (in fact, that is precisely what I thought of).
Windows also has it, but it’s disabled by default for some reason
It’s not disabled.
Gee, X11! How come your mom lets you have THREE clipboards?
Wait is that an actual thing?

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.

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?

Not exactly. When you select a text and copy it, the two selections will end up containing the same text, but you can write to either selection without affecing the other by using an API, e.g. a website’s “copy to clipboard” button, or xclip/wl-copy.

Clipboard managers with a history feature are an altogether different layer on top of the standard selections. Plasma’s clipboard manager only cares about the clipboard selection, and even then, there are exceptions (e.g. copying a password for KeepassXC doesn’t save it in the history).

Plasma has a setting to synchronize selection and clipboard or something like that.

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

then theyre all ignored by x-clip

xD

Same thing but reversed with multiple cursors :/
That’s actually the biggest thing I miss about VSCode

github.com/mg979/vim-visual-multi

I also missed multiple courses, but I started using vim-visual-multi in my nvim config and it’s been great. There’s a few others I tried that I couldn’t get to work quite right (usually some weird conflict with nvim-cmp) but I’ve had the best success with vim-visual-multi.

GitHub - mg979/vim-visual-multi: Multiple cursors plugin for vim/neovim

Multiple cursors plugin for vim/neovim. Contribute to mg979/vim-visual-multi development by creating an account on GitHub.

GitHub
I’m gonma bookmark and try this next time I find the courage to mess around my nvim config. That last none_ls breaking change has made me very hesitant to mess around with things that aren’t just colorschemes ngl.
I also tried github.com/smoka7/multicursors.nvim and the experience was horrible. Then I tried github.com/…/multiple-cursors.nvim and I absolutely love it. It has conflict with cmp, but the README has great tutorial on disabling cmp only when using multiple cursors, and dealing with other plugins to maks them work or disable them in the multicursor mode.
GitHub - smoka7/multicursors.nvim: A multi cursor plugin for Neovim.

A multi cursor plugin for Neovim. Contribute to smoka7/multicursors.nvim development by creating an account on GitHub.

GitHub
helix has a pretty good mc system in the select mode.
search in selection is such a cool workflow

yah ive been swapping to hx wherever i need to do refactoring, it’s too good to miss out.

space-r ename symbol for easymode.

This feels like something I also do in neovim unless I’m misunderstanding you completely. Is it highlighting text and having yoir search apply just to the highlighted text?

If so, yes it’s great whenever you use it

yeah, and helix spawns a cursor at every match
I’ve been meaning to check helix out for a while now but haven’t found the time :(
Same here, but Atom. Maybe I should start using Atom again.
FYI atom project is dead. There is a community form available but it was to buggy for me.
I know it’s dead. I still have it, and it still does all I want from an IDE.

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.

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”).

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.

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

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[^black_hole]) This is for neovim. Have keybinds for them and there saved you a plugin :D

[^black_hole]: Text yanked in this register is gone, i.e. it’s not saved in any register.

any emacs elitists here?
they have no use for copy buffers, they are still configuring emacs.
No, but I’m happy to talk to you about our lord and savior nano
Get out
Sorry, is that… esc… then : then q and ! or did I get the order wrong? Can’t I just ctrl+o ctrl+x?
We be rocking that kill ring !

Obligatory boo and/or hiss

I’ve also been meaning to give emacs a try but haven’t found the time or energy to figure out how to exit vim

just get QT browser and search it with any search engine
I had to learn emacs for my engineering computation class, up to the point that we were required to present our code in emacs if we had questions to ask during office hours.
What would an operating system need yank registers for? Maybe if you get a good text editor to go with it, like Evil Mode 😉

I’m just an emacs … enjoyer (…?) and I just don’t understand the post. I’m pretty sure buffers here refer to something different from emacs buffers as they’re completely unrelated to clipboards. Then from a quick scan of the plug-in mentioned it seems to mimic the clipboard ring emacs has had for many decades (always?).

Basically I have no idea what’s going on here.