Replies: 1 comment
-
|
Now after using Windows at work for a few years, without having multiple clipboards/selections BUT having clipboard history, I didn't really miss it. And now even on Linux, I'm slowly more and more confused as to which keybind/mouse action I need to do in the terminal to paste what I just copied in another program.. usually using my prefered paste keybind, then undo to do another keybind to actually paste what I wanted.. => I'm starting to prefer having a single clipboard to keep track of, and use the clipboard history to get back old copied things. 👉 The best solution would be, on paste, a way to detect which (of the clipboard/primary selection) was the last modified and paste from that clipboard/selection. Linux dotfiles changed: 54f365d |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is a small try at explaining why I think it has value. Take what you want!
¯\_(ツ)_/¯You may not use this, but vim for example has registers, which can be used as temporary buffers to copy text, manipulate it, save macros, access some internals of vim, interact with the system clipboard, or get multiple info from different registers at a given time.
Vim has 26 settable registers (one per letter of the alphabet). I definitely don't use them all at once it would be a nightmare to remember what goes where, but it really has its uses sometimes..
Iirc I used 6 registers at once, once, to write a pretty complex macro! (but anyway..)
The default register (when you copy/cut/paste normally) is similar to X11's primary selection for me, I use it by default for quick changes, simple copies etc. It's a short-lived temporary buffer, I trust it's content for my next 1 or 2 next actions maximum.
For things I know I want to keep for something later, (or if I need to use that text in another program) I use the other registers, or for X11 the system clipboard.
The primary selection is really "the last selected text", it shouldn't be taken as the same thing as the clipboard imo.
The current default being "copy to clipboard when selecting text" is an unfortunate shortcut. The primary selection should be used and set only for "the last selected text", other explicit copies should always go to the clipboard.
I see it as the most sensible thing to do.
Any other behavior is just confusing
Beta Was this translation helpful? Give feedback.
All reactions