Home Download Buy Blog Forum Support

ST3: not promt for save and not save changes

ST3: not promt for save and not save changes

Postby Binocular222 on Wed May 22, 2013 10:35 am

in ST3: Hotexit will not promt for save; any modification is saved
However, I need a tiny plugin that both not promt and not save modification.
I tried this without success:
Code: Select all
import sublime_plugin

class NoPromtToSave(sublime_plugin.EventListener):
    def pre_save_async(self, view):
        view.setScratch(true)

Any help please.
Binocular222
 
Posts: 55
Joined: Sat May 18, 2013 4:10 pm

Re: ST3: not promt for save and not save changes

Postby skuroda on Wed May 22, 2013 11:24 pm

I'm not sure what you mean. Setting hot exit to True doesn't save the files (well to that location on disk). There is content saved as part of the session I believe. If it is saving to the original file location on disk every time you close, I'd guess you have a plugin or something that is causing it.
skuroda
 
Posts: 685
Joined: Fri Oct 05, 2012 8:11 am

Re: ST3: not promt for save and not save changes

Postby Binocular222 on Thu May 23, 2013 3:03 am

Oh, my bad writing.
I mean after exit with Hot exist, the next time I start ST3, all changes are still there. I just need to "revert before save", which is in Menu File → Revert File. A plugin to auto revert before exist is what I'm looking for.
Binocular222
 
Posts: 55
Joined: Sat May 18, 2013 4:10 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 17 guests