299
It always gets me (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by ytrav@lemmy.world to c/programmer_humor@programming.dev

*redo, sorry

all 44 comments
sorted by: hot top controversial new old
[-] victron@programming.dev 93 points 1 year ago
[-] RampageDon@lemmy.world 24 points 1 year ago* (last edited 1 year ago)

Right, this meme is just undo but with extra steps

[-] qaz@lemmy.world 23 points 1 year ago

They probably mean redo, because that is what CTRL + SHIFT + Z and CTRL + Y commonly do.

[-] SatyrSack@lemmy.one 5 points 1 year ago

They tried to CTRL+SHIFT+Z to undo that last word, but that key combo was actually set to export the photo

[-] rtorlas@lemmy.world 51 points 1 year ago
[-] Synthead@lemmy.ml 17 points 1 year ago

Don't forget that Vim also keeps every tree of undo history. Wrote someone one way, wanted to try another way, and changed your mind? Switch to the other undo future! Change your mind again? Go back!

And there's persistent undo, where your undo history is written a file. Quit Vim, power off your machine for 5 years, power it back on, and you can still undo!

[-] marcos@lemmy.world 39 points 1 year ago

Shouldn't it be used for redo?

I mean, yeah, of course it should be paste. But if you decide to break the established convention, isn't the next option redo, instead of undo?

[-] nicoweio@lemmy.world 34 points 1 year ago

Germans on English kezboards know the struggle

[-] Dogeek@sh.itjust.works 11 points 1 year ago

I see what you did there.

[-] mister_monster@monero.town 31 points 1 year ago

My text editor uses u and U

[-] lrabbt@lemmy.world 5 points 1 year ago
[-] ChickenAndRice@sh.itjust.works 6 points 1 year ago
[-] philm@programming.dev 5 points 1 year ago* (last edited 1 year ago)

Hmm pretty sure, it's not vim, as that would be u and C-r

[-] sip@programming.dev 2 points 1 year ago

idk my vim uses u U in visual.

[-] mister_monster@monero.town 2 points 1 year ago

You know it.

[-] 6xpipe_@lemmy.world 18 points 1 year ago

"What did that code look like two minutes ago?"

  • Cmd+A
  • Cmd+C
  • Cmd+ZZZZZZZZZZZZZZZZZZZZZZ

"Oh, ok."

  • Cmd+Shift+ZZZZZZZZZZZZZZZZZZZZZZ
[-] ytrav@lemmy.world 3 points 1 year ago

why is this so true,,,,,

[-] janAkali@lemmy.one 2 points 1 year ago* (last edited 1 year ago)

lol, just use time travel, Vim time travel:
:earlier 2m
and back:
:later 2m

[-] nogrub@lemmy.world 1 points 1 year ago

wait that seems really usefull is that in standart vim ?

[-] janAkali@lemmy.one 1 points 1 year ago* (last edited 1 year ago)

Yes, plain vanilla Vim
Here's help entry (see section 4 if link doesn't redirect to it).
And it is even more useful with an undo-tree plugin.

[-] nogrub@lemmy.world 1 points 1 year ago

oh thank you good sir ^^

[-] linuxgator@lemmy.ml 15 points 1 year ago

More like Ctrl-WHYYYY?

[-] knobbysideup@lemm.ee 10 points 1 year ago
[-] Synthead@lemmy.ml 5 points 1 year ago
[-] darcy@sh.itjust.works 6 points 1 year ago

vim using u and ``

[-] lolcabanon@programming.dev 6 points 1 year ago* (last edited 1 year ago)

Am I the only one who only knew ctrl+y? I've been used to it since forever and never used ctrl+shift+z even tough I am a keyboard shorcut fanboy...

edit: also the logic behind ctrl+shift+z totally makes sense, i'll try it everywhere now lol

[-] EmasXP@lemmy.world 5 points 1 year ago

Ctrl + Y shall paste, and nothing else!

[-] Diabolo96@lemmy.dbzer0.com 33 points 1 year ago* (last edited 1 year ago)

Ctrl-c copy. Ctrl-v past. Ctrl-x cut

[-] Eonandahalf@lemmy.world 28 points 1 year ago
[-] redcalcium@lemmy.institute 16 points 1 year ago* (last edited 1 year ago)

I prefer ctrl+shift+z for redo. The advantage is you can spam both undo and redo without moving your finger from Ctrl and Z buttons. Very common in professional apps.

[-] Squids@sopuli.xyz 5 points 1 year ago

Also in art apps, because it's not uncommon to want to undo and redo the same action over and over to see the difference something makes

...except gimp and krita. Seriously get your damn act together youse two

[-] Diabolo96@lemmy.dbzer0.com 11 points 1 year ago* (last edited 1 year ago)

And Ctrl-z undo.

That's all i know. If anyone know more please share.

[-] MagicShel@programming.dev 8 points 1 year ago
[-] Diabolo96@lemmy.dbzer0.com 9 points 1 year ago

Strange, It open the magnifier.

[-] BorgDrone@lemmy.one 7 points 1 year ago

y to yank p to paste d to cut

[-] Skipcast@lemmy.world 7 points 1 year ago

Found the qwertz user

[-] PBSkidz4Lyfe@lemmy.world 4 points 1 year ago

Similar to how vscode uses Ctrl+shift+arrows for multi line editing but for some reason on my person computer that is hot keyed to flip the screen upside down.

[-] Joosl@feddit.de 2 points 1 year ago

Windows Explorer..

[-] docAvid@midwest.social 1 points 1 year ago

C-/ for undo. C-/ for redo. All you need.

this post was submitted on 10 Aug 2023
299 points (85.9% liked)

Programmer Humor

19192 readers
1182 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 1 year ago
MODERATORS