Automatically save for recovery purposes unsaved documents
Posted: Thu Feb 18, 2021 8:31 pm
There is nothing worse than having some notes in TextPad, to get pulled away from your computer, getting sidetracked, forgetting to come back, only for your machine to have decided to reboot, wiping out everything you've typed!
Please implement an auto recovery method so that unsaved documents (both never saved, as well as existing documents that just didn't get re-saved once the changes had been made) get backed up and are reopened (preferably with an indicator that they are "auto-recovered" documents so that I know which files are which) automatically the next time that TextPad opens. This recommendation follows Microsoft's autorecovery methods relatively closely to how it appears to the user.
My high level recommendation for implementation would be as follows:
new (unsaved) document is created, a temporary file (such as "DocumentX autorecovery 'timedate stamp'.txt") is created in %appdata%/TextPad/autorecovery for this unsaved/unnamed file. Every x minutes, the changes are pushed to the temporary file, and the filename timedate stamp is updated. Once the file is properly saved (without being autorecovered), the app then changes the DocumentX part of the file name to the saved filename. Upon successful closure of the document, the temporary file can be deleted as part of the closure process.
If TextPad either crashes or is closed unceremoniously (such as by a damned Windows Update reboot), when TextPad reopens, it scans the autorecovery folder for any files, and if there are any, opens them up for the user to recover. If the user does not specifically save them, then I would recommend the app ask the user specifically if they are done with the file Y/N, and if no, leave the file in the autorecovery folder to be opened next time until the user either saves the file correctly, or acknowledges that they are done with it.
Please implement an auto recovery method so that unsaved documents (both never saved, as well as existing documents that just didn't get re-saved once the changes had been made) get backed up and are reopened (preferably with an indicator that they are "auto-recovered" documents so that I know which files are which) automatically the next time that TextPad opens. This recommendation follows Microsoft's autorecovery methods relatively closely to how it appears to the user.
My high level recommendation for implementation would be as follows:
new (unsaved) document is created, a temporary file (such as "DocumentX autorecovery 'timedate stamp'.txt") is created in %appdata%/TextPad/autorecovery for this unsaved/unnamed file. Every x minutes, the changes are pushed to the temporary file, and the filename timedate stamp is updated. Once the file is properly saved (without being autorecovered), the app then changes the DocumentX part of the file name to the saved filename. Upon successful closure of the document, the temporary file can be deleted as part of the closure process.
If TextPad either crashes or is closed unceremoniously (such as by a damned Windows Update reboot), when TextPad reopens, it scans the autorecovery folder for any files, and if there are any, opens them up for the user to recover. If the user does not specifically save them, then I would recommend the app ask the user specifically if they are done with the file Y/N, and if no, leave the file in the autorecovery folder to be opened next time until the user either saves the file correctly, or acknowledges that they are done with it.