Skip to content

Commit

Permalink
Update hotkeys.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Varriount authored May 23, 2017
1 parent 9369c56 commit 98659f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nimlime_core/commands/hotkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@


def gen_sync_settings(key, default):
print('f')
global sync_list

def sync_settings():
print('e', key)
v = sublime.active_window().active_view()
v.settings().set(key, settings.get(key, default))

Expand All @@ -27,15 +29,19 @@ def sync_settings():

class HotkeySyncer(EventListener):
def sync(self):
print('d')
global sync_list
for callback in sync_list.values():
callback()

def on_new(self, view):
print('c')
self.sync()

def on_clone(self, view):
print('b')
self.sync()

def on_load(self, view):
print('a')
self.sync()

0 comments on commit 98659f3

Please sign in to comment.