Skip to content

Commit

Permalink
add on_save listener
Browse files Browse the repository at this point in the history
  • Loading branch information
qiray committed Jan 9, 2018
1 parent 939e64c commit bc243e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

VERSION_MAJOR = 0
VERSION_MINOR = 9
VERSION_REVISION = 0
VERSION_REVISION = 1

ST3 = int(sublime.version()) >= 3000

Expand Down Expand Up @@ -242,6 +242,9 @@ def on_load(self, view):

def on_clone(self, view):
self.on_new(view)

def on_post_save_async(self, view):
self.on_new(view)

def plugin_loaded(): #this function autoruns on plugin loaded
view = get_opened_files_view()
Expand Down

0 comments on commit bc243e0

Please sign in to comment.