Ugh in the vim clone I just implemented protections for not opening a new file or quitting without saving first and that was like… a really weird spaghetti tangle, that was like the first thing I think I've implemented on this project that felt like "ugh work" instead of being fun lol. Kinda um. Kinda really important tho.

Hey, question, how hard would it be to add a Rust panic handler that if there's unsaved content in the buffer it dumps it to disk when the app panics?

@mcc Vim does this by proactively backing up unsaved files in the background, so they can survive even a kill -9 or power loss.

Follow

@esphorem @mcc This sounds more sensible, more "delete backup on clean exit" than "try to save if stuff is already going wrong".

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.