Skip to content

Commit

Permalink
Merge pull request #1 from SSKUltra/master
Browse files Browse the repository at this point in the history
Fixed restarting sublime problems
  • Loading branch information
SSKUltra authored Aug 20, 2017
2 parents 87d51a9 + ac34143 commit 131971d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CollaBroText.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@

# Throttle class to run on selection modifier

#trying to reload all files when sublime is opened
def plugin_loaded():
current_window = sublime.active_window()
for view_object in current_window.views():
file_location = view_object.file_name()
current_window.focus_view(view_object)
current_window.run_command("close")
current_window.open_file(file_location)

current_window.focus_view(current_window.views()[0])

class ShiftView(sublime_plugin.EventListener):
def on_activated(self,view):
# print("View File name is : "+ str(view.file_name()))
Expand Down

0 comments on commit 131971d

Please sign in to comment.