gornostal / Modific

Highlight lines changed since the last commit (supports Git, SVN, Bazaar, Mercurial and TFS) / ST2(3) plugin
614 stars 44 forks source link

Why do files autosave files on focus change by default? #65

Closed callumlocke closed 10 years ago

callumlocke commented 10 years ago

For a while I've noticed ST3 strangely writing my files when I haven't asked it to. I've lost work because of it. After a bit of googling I realised it was Modific saving my files every time I switched tab. I'm amazed this is default behaviour. It assumes that I never use a random open tab as a temporary scratchpad, and that I never open a file to use as a starting point for a new file and edit it directly (planning to do "save as..." later). I don't mind you having this as an option, but it's a bit reckless to overwrite files 'automatically' (thanks) without asking, as a default setting. And there was no warning about it when I installed it. I've disabled that option now, but I really think you should reconsider having this as default.

gornostal commented 10 years ago

I'm sorry to hear that you lost your work because of Modific. I wonder why ctrl+z did help...

As for autosave option, I'll make it disabled by default. I had some reasons why it could be better to autosave files, but now I think you are right and this shouldn't be a default behavior.

gornostal commented 10 years ago

Done.