Sublime Forum

ST3: not promt for save and not save changes

#1

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]import sublime_plugin

class NoPromtToSave(sublime_plugin.EventListener):
def pre_save_async(self, view):
view.setScratch(true)
[/code]
Any help please.

0 Likes

#2

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.

0 Likes

#3

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.

0 Likes