@kensanata happens to me all the time as a vim user too, falling down rabbit holes until you forgot the way back up. it doesnt help that im easily distractable
@y0x3y Editors these days, rabbit holes all the way down!
@kensanata haha its an epidemic
Getting old? The "why did I come into this room" syndrome.
Can you run arbitrary shell commands from within Emacs?
@fitheach Of course you can!
Sorry, what were we talking about?
@fitheach Rabits? 😭
@fitheach Haha, cannot delete and redraft because my mastodon backup code is running and the glorious Mastodon network has a rate limit for deletion of 30 statuses per 30 minutes!! Aaaargh.
I have a keybind to "tee" the file to a tmpfile, and then move the file to the real place. It's handy, and I use more than I'd like to admit :)
Here you go - it's all on one line, if Mastodon breaks the wrapping. Pop it in .vimrc and then try ":W"
command W w !sudo tee % >/dev/null
Sadly no, I don't have an Emacs version. As an ex-colleague of mine once put it: "I gave up on Emacs when I had to complete a command with my nose". Each to their own though, for sure :)
@kensanata we're all gonna yak-shave ourselves to death
mental stack overflow
@kensanata this is kind of why I use issue tracking even for personal projects and sometimes even config on my laptop.