this post was submitted on 10 Sep 2023
584 points (96.5% liked)

Programmer Humor

24347 readers
1101 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 2 years ago
MODERATORS
 
all 47 comments
sorted by: hot top controversial new old
[–] Johanno@feddit.de 62 points 2 years ago (6 children)

Use ctrl +shift +c to copy in terminal

[–] errer@lemmy.world 99 points 2 years ago (1 children)

Use ctrl +shift +c to copy in terminal

Ah yes the classic dangerous command made safe by a modifier key. Put the gun to your head and pull the trigger, just make sure you’re holding down the shift key and it’s all good!

[–] Jakeroxs@sh.itjust.works 1 points 2 years ago

It's all good bro the shafty is on

[–] Albbi@lemmy.ca 16 points 2 years ago* (last edited 2 years ago)

Ctrl+insert to copy and shift+insert also works! It was the DOS way of doing it.

[–] TheWoozy@lemmy.world 11 points 2 years ago

Or just left click to highlight & middle click to paste.

[–] Lmaydev@programming.dev 5 points 2 years ago (2 children)

Just have to be different don't they.

[–] kaba0@programming.dev 3 points 2 years ago

Or change copy to command+c.. I’m gonna be honest, OSX is right here. And quite strangely it is very hard to customize your linux to imitate that.

[–] kaba0@programming.dev 1 points 2 years ago

Or change copy to command+c.. I’m gonna be honest, OSX is right here. And quite strangely it is very hard to customize your linux to imitate that.

[–] Mr_Dr_Oink@lemmy.world 2 points 2 years ago

This is how my secure crt is set up when im accessing switches. If i use ctrl+c it cancels what im doing and drops back to priv mode and its so frustrating.

[–] SuperIce@lemmy.world 2 points 2 years ago

Or just highlight the text and use middle click to paste

[–] confusedbytheBasics@lemmy.world 59 points 2 years ago (2 children)

Select text to copy. Middle click to paste.

Don't use Ctrl...

[–] Trobador@lemmy.world 0 points 2 years ago (1 children)

I never realized that was why people used the primaey clipboard on Linux...

But I'll be frank : fuck that. I'd rather disable it entirely and stop having to deal with random text pasting in bad places when I'm using the touchpad

[–] confusedbytheBasics@lemmy.world 3 points 2 years ago

What wonky touchpad makes that a problem?

You could use shift -insert instead I suppose.

[–] mcmodknower@programming.dev 34 points 2 years ago (1 children)

It didn't load completely at first, so i saw something like this and i think it is even better that way:

[–] DR_Hero@programming.dev 3 points 2 years ago (1 children)

Now I'm upset this wasn't the original haha

[–] wols@programming.dev 2 points 2 years ago

I think it works better with the context of the original already present.

[–] kamen@lemmy.world 28 points 2 years ago* (last edited 2 years ago) (3 children)

I've almost gotten into the habit of hitting Ctrl+Shift+C when I want to copy something because of that.

[–] vpklotar@lemmy.world 16 points 2 years ago (1 children)

I do that all the time. Opens up developer tools on firefox if you do it.

[–] fernandu00@lemmy.ml 9 points 2 years ago

I open developer tools every day doing that!

[–] rinze 9 points 2 years ago (2 children)

Yes. And on Microsoft Teams that triggers a chat call.

Burn it with fire!

[–] scottywh@lemmy.world 3 points 2 years ago
[–] phoenixz@lemmy.ca 3 points 2 years ago (2 children)

That solution ish the worst. Ctrl-shift-c does a shitload of different things in different programs, and in browsers it does different things per page.

Ctrl-ins, shift-ins, shift-del for the win bit THEN some programs simply refuse to support that.

I have like 4 different copy paste short cuts because of this and it sucks

[–] kamen@lemmy.world 2 points 2 years ago (1 children)

I'm not saying it's great, but at least in my use I haven't seen it being destructive/disruptive like Ctrl+C is.

[–] phoenixz@lemmy.ca 1 points 2 years ago

Ctrl-c for copying is a windows thing and it's annoying.

[–] millie@lemmy.film 1 points 2 years ago (1 children)

Do you at least have 4 clipboards to go with them? Because I don't think I could ever go back to a single clipboard.

[–] phoenixz@lemmy.ca 1 points 2 years ago (1 children)

I use standard Linux dual clipboard (Ctrl ins and just select, middle click) but most extra clipboards I've seen require a lot of extra clicking to get the work done. I want something simple stupid fast.

[–] millie@lemmy.film 1 points 2 years ago

I'm running windows for my daily, but I've got Ditto and it works great. I have like 3 clipboards set up, could set up more. It just needs a different hotkey combination. It's really simple.

[–] Swiggles@lemmy.blahaj.zone 17 points 2 years ago

Ctrl/Shift+Insert gang rise!

[–] 4am@lemm.ee 8 points 2 years ago

Running a long command and didn’t ctrl-D it…

[–] rmi@feddit.de 7 points 2 years ago (5 children)

I bought a Mac to solve this problem lol

[–] beeng@discuss.tchncs.de 14 points 2 years ago

Should have used middle mouse button instead

[–] Doug@midwest.social 7 points 2 years ago

That sounds a lot like

My rear passenger tire was about 3psi low so I bought a new Grand Cherokee

[–] jungle@lemmy.world 5 points 2 years ago* (last edited 2 years ago)

Yeah, I was looking at this wondering why anyone would stop a program just to copy a line, and then I remembered that not everyone uses a Mac.

[–] Vilian@lemmy.ca 3 points 2 years ago

you can literally change the shortcut

[–] EqMinMax@lemmy.world 3 points 2 years ago

Modern problems require costly solutions.

[–] o11c@programming.dev 5 points 2 years ago (2 children)

I don't remember the last time I used ctrl-C. It's always select or "+y.

[–] bellsDoSing@lemm.ee 2 points 2 years ago

I additionally mapped that latter one to F2, because being able to repeatedly copy from VIM and paste into another application without having to move your hand between mouse and keyboard is nice.

Of course, that's VIM. If you meant "vim mode" in shell, then that's a different story.

[–] fl42v@lemmy.ml 1 points 2 years ago

And I just set clipboard unnamedplus

[–] yokonzo@lemmy.world 5 points 2 years ago

I literally just learned about Ctrl+c last week, I've been using terminal casually since I was 10, and always thought it was dumb that when a script was stuck hanging that I had to close the command window and redo my steps. I always thought it was weird that you had to right click to copy something and never thought why that might be the case, I have no excuses.

[–] attero@feddit.de 0 points 2 years ago