Closed akalongman closed 11 years ago
I am going to merge this shortly, with the following additional modifications:
find_backups()
so that it matches both the new style _
and old style -
datepart/timepart separator character in backup filenames. This will let us retain compatibility with existing backup files that use the old style."backup_on_open_file": false
. I am defaulting this to false because I don't think most users will want it enabled; having it enabled generates a lot more backup files. For example, every time you start ST2, all the open tabs get backed up, and single-clicking a file under FOLDERS in the sidebar backs it up.on_load()
and on_post_save()
into new method save_view_to_backup()
.Something that I think would really improve the behavior of backup_on_open_file
(as well as AutomaticBackups in general): only save a backup copy if the new backup copy is different than the previous backup copy. This would mostly eliminate the aforementioned disadvantages of enabling backup_on_open_file
.
Added capability to save file backup when file open (without saving) Changed datetime format from YYYY-MM-DD-HH-MM-SS to YYYY-MM-DD_HH-MM-SS