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?