Email or username:

Password:

Forgot your password?
Tyler Smith

#Emacs undo limited to the active region is a super power. Just like regular undo, but only applies to the selected area. e.g., undo changes in this paragraph/page/function etc., leaving the rest of the file untouched.

And the best part is it just works - highlight the region, undo (& keep undoing, as needed).

Saved me a lot of grief today!

9 comments
takeonrules

@plantarum I stumbled upon this just a few weeks ago, and was gobsmacked. I knew it existed but just didn't internalize it until I used it subconsciously.

Joël Franusic

@plantarum @deech WHAT‽! … til, after 20+ years of daily Emacs use 😭

jade

@plantarum apparently someone got nerd sniped hard enough to implement it on vim too! this is really cool! github.com/jaxbot/selective-un

mousebot

@plantarum i have never not had it bug on me, and when it bugs on me, it breaks my entire undo-history and i have to have a little cry because i'm even further away from patching my way back to what i wanted.

i never understood the bugginess, emacs just hangs till i quit out of it.

George Jones :emacs: :orgmode:

@plantarum I'm constantly amazed that there are "Oh, cool" things in emacs that I never knew about lurking around every corner after ~46 years as a user.

Go Up