Open SamirSaidani opened 6 years ago
This seems like an edge case that the program should not be expected to handle. System crashes seem a bit out of scope. That said, setting TMPDIR would be the effective and standard cure, correct?
On Thu, Feb 22, 2018, 8:15 PM Samir S. notifications@github.com wrote:
When your computer crash, all files on /tmp (usually a mem filesystem) is automatically cleaned after reboot. If you were writing some notes at this moment, all your notes are lost.
One workaround is to allow another temporary directory, like $HOME/tmp and use vim recovery capabilities (vim -r) to recover your notes.
geeknote should allow at least to set another temporary directory, at best put all the markdown temporary files into .geeknote directory.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/VitaliyRodnenko/geeknote/issues/389, or mute the thread https://github.com/notifications/unsubscribe-auth/AADeMBMB4lR0oMbQTk3-ZQmSn8GUZfoTks5tXcrCgaJpZM4SP6vE .
It looks like vim and libreoffice programmers handle this edge case, so it makes sense that geeknote handle this case too, since note editing is a core feature of geeknote. System crashes is a part of the user experience, and as such resilient software design should be considered by the programmer. TMPDIR looks good for me, or at least using $HOME/.geeknote/ to save temporary note files for a quick patch. Thanks for this nice software !
When your computer crashes, all files on /tmp (usually a mem filesystem) are automatically cleaned after reboot. If you were writing some notes at this moment, all your notes are lost.
One workaround is to allow another temporary directory, like $HOME/tmp and use vim recovery capabilities (vim -r) to recover your notes.
geeknote should allow at least to set another temporary directory, at best put all the markdown temporary files into .geeknote directory by default.
PS: I've just lost my half-page note :-/