Pretty sure most of you already know this but for those who don’t: you have two clipboards in Linux. One is the traditional clipboard where you copy with control c and paste with control v. The other one is when you highlight text and use the mouse middle click to paste text.
More details here.
And then there is the “clipboard” (copy paste function) in the nano text editor being a third
You can also configure vim to use the first clipboard (works with nvim but never tested on vim).
Btw it makes using other OSs painful when you are used to it…
Neat, he?
It’s a pain when you switch between Windows and Linux all the time and you can’t do the middle click in Windows.
Tbf, lots of things in Windows are a pain when you’re used to Linux.
Correction: Lots more things are a pain…
Just simply…At least in Cinnamon, I can mouse over the audio icon on the panel and roll the scroll wheel to change the volume. Last time I tried it on Windows, you had to click the icon first. While that alone doesn’t sound like much, the whole OS is like that, needing extra little interactions for basically everything. Now that I’m used to using Cinnamon, using Windows feels like walking in beach sand.
I believe they added this in windows recently. Otherwise I absolutely agree though.
On my arch install with hyperland, clip boards have been by far the hardest thing to setup. I finally got a basic clipboard manger working using clipman and wofi. But tbh I don’t really understand how that’s working.
My main issues though have been trying to copy from one with vim open to other terminal with vim. Copying from vim elsewhere using y(yank) works fine. Copying elsewhere into vim works great. But vim to vim will not work for me.
Also trying to find a way to make copying text out of a terminal running tmux not so overly complex and tedious.
For copying from Tmux, I recommend tmux-yank. There are also multiple plugins allowing you to copy predefined set of text types (IP adresses, URLs, etc…). I’m currently using tmux-thumbs. Note that you have to set custom command in tmux-thums to actually copy the text to xclip or whatever you are using. example in my dotfiles
Not going to lie, I hate the middle click clipboard and disable it ASAP. I really dislike the idea that it copies things without my explicit permission.
It’s one of the things that I hated at first when moving from Windows, but then I got so used to it I just can’t live without it. Whenever I use Windows, I would try to quickly copypaste text using selection, doing so for 5-10 seconds, until I realise this is not a thing on this OS.
Ditto. And sometimes I use both the Ctrl+C and middle-click clipboards at the same time, when I want to copy two chunks of text. Like this:
- Select chunk A, press Ctrl+C
- Select chunk B
- Shift window
- Paste chunk B through middle-click
- Paste chunk A through Ctrl+V
Windows and KDE Plasma both have CMD + V to show a list of all things that have been copied. So I always just do Ctrl + C, Ctrl + C, Ctrl + V, CMD + V -> down arrow -> enter. Though on KDE Plasma you will need another Ctrl + V to actually do the pasting after you have selected the value to paste, whereas on Windows selecting the value also pastes it. But the workflows are very similar.
I don’t believe anything is actually copied until you request it to be pasted. The clipboards in Linux mark where the data is, and don’t actually initiate a copy until there’s a destination.
I actually like the feature but could you explain how you disabled it? I’ve tried to merge all three clipboards into one a few years ago and couldn’t make it work
Whenever I use a touchpad without physical buttons, I usually disable the middle button entirely. It’s more of a hammer-to-mosquito solution than what you were asking, but it’s as easy as adding this command to the autostart file (on Xorg): xinput set-button-map "Name-of-your-Touchpad-goes-here" 1 0 3 4 5 6 7
, where “Name-of-your-Touchpad-goes-here” can be found with xinput list --name-only
.