Esempio n. 1
0
 def on_select(self, selected):
     if 0 > selected < len(self.results):
         return
     item = self.results[selected]
     commit = self.item_to_commit(item)
     ViewCollection.set_compare(commit)
     ViewCollection.clear_git_time(self.view)
     ViewCollection.add(self.view)
Esempio n. 2
0
 def on_select(self, selected):
     if 0 > selected < len(self.results):
         return
     item = self.results[selected]
     commit = self.item_to_commit(item)
     ViewCollection.set_compare(commit)
     ViewCollection.clear_git_time(self.view)
     ViewCollection.add(self.view)
Esempio n. 3
0
 def on_modified(self, view):
     if not self.live_mode:
         return None
     if not self.non_blocking:
         if not self.live_delay:
             ViewCollection.add(view)
         elif not self.delayed_update_scheduled:
             if self.allow_instant_update:
                 self.allow_instant_update = False
                 sublime.set_timeout(lambda: self.delayed_update(view), 10)
                 sublime.set_timeout(lambda: self.enable_instant_update(), self.live_instant_interval)
             else:
                 self.delayed_update_scheduled = True
                 sublime.set_timeout(lambda: self.delayed_update(view), self.live_continuous_delay)
Esempio n. 4
0
 def on_activated(self, view):
     if self.settings_loaded():
         if not self.non_blocking and self.focus_change_mode:
             ViewCollection.add(view)
Esempio n. 5
0
 def on_post_save(self, view):
     if self.settings_loaded():
         if not self.non_blocking:
             ViewCollection.add(view)
Esempio n. 6
0
 def on_post_save_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Esempio n. 7
0
 def on_modified_async(self, view):
     if not self.live_mode:
         return None
     if self.non_blocking:
         ViewCollection.add(view)
 def on_load_async(self, view):
     if self.non_blocking and not self.live_mode:
         ViewCollection.add(view)
 def on_post_save(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
Esempio n. 10
0
 def on_load_async(self, view):
     if self.non_blocking and not self.live_mode:
         ViewCollection.add(view)
Esempio n. 11
0
 def on_modified(self, view):
     if self.live_mode:
         ViewCollection.add(view)
Esempio n. 12
0
 def delayed_update(self, view):
     ViewCollection.add(view)
     self.delayed_update_scheduled = False
Esempio n. 13
0
 def on_modified(self, view):
     if self.live_mode:
         ViewCollection.add(view)
Esempio n. 14
0
 def on_clone_async(self, view):
     if self.settings_loaded():
         if self.non_blocking:
             ViewCollection.add(view)
Esempio n. 15
0
 def on_modified_async(self, view):
     if self.settings_loaded():
         if self.non_blocking and self.live_mode:
             ViewCollection.add(view)
Esempio n. 16
0
 def on_post_save(self, view):
     if self.settings_loaded():
         if not self.non_blocking:
             ViewCollection.add(view)
Esempio n. 17
0
 def on_activated(self, view):
     if self.settings_loaded():
         if not self.non_blocking and self.focus_change_mode:
             ViewCollection.add(view)
Esempio n. 18
0
 def on_activated_async(self, view):
     if self.non_blocking and self.focus_change_mode:
         ViewCollection.add(view)
 def on_clone_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Esempio n. 20
0
 def run(self):
     self.view = self.window.active_view()
     ViewCollection.set_compare("HEAD")
     ViewCollection.clear_git_time(self.view)
     ViewCollection.add(self.view)
Esempio n. 21
0
 def on_activated_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Esempio n. 22
0
 def get_handler(view):
     if ViewCollection.has_view(view):
         key = ViewCollection.get_key(view)
         return ViewCollection.views[key]
     else:
         return ViewCollection.add(view)
Esempio n. 23
0
 def on_clone_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Esempio n. 24
0
 def on_clone(self, view):
     ViewCollection.add(view)
Esempio n. 25
0
 def on_activated_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Esempio n. 26
0
 def on_post_save(self, view):
     ViewCollection.add(view)
Esempio n. 27
0
 def run(self):
     self.view = self.window.active_view()
     ViewCollection.set_compare("HEAD")
     ViewCollection.clear_git_time(self.view)
     ViewCollection.add(self.view)
Esempio n. 28
0
 def on_activated(self, view):
     ViewCollection.add(view)
Esempio n. 29
0
 def on_load(self, view):
     if self.settings_loaded():
         if not self.non_blocking and not self.live_mode:
             ViewCollection.add(view)
Esempio n. 30
0
 def on_modified(self, view):
     if view.settings().get('git_gutter_live_mode', True):
         ViewCollection.add(view)
Esempio n. 31
0
 def get_handler(view):
     if ViewCollection.has_view(view):
         key = ViewCollection.get_key(view)
         return ViewCollection.views[key]
     else:
         return ViewCollection.add(view)
 def on_modified_async(self, view):
     if self.settings_loaded():
         if self.non_blocking and self.live_mode:
             ViewCollection.add(view)
Esempio n. 33
0
 def on_load(self, view):
     if self.settings_loaded():
         if not self.non_blocking and not self.live_mode:
             ViewCollection.add(view)
 def on_clone_async(self, view):
     if self.settings_loaded():
         if self.non_blocking:
             ViewCollection.add(view)
 def on_clone(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
Esempio n. 36
0
 def on_clone(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
 def on_modified_async(self, view):
     if not self.live_mode:
         return None
     if self.non_blocking:
         ViewCollection.add(view)
Esempio n. 38
0
 def on_post_save(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
 def on_post_save_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Esempio n. 40
0
 def on_activated(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
 def on_activated_async(self, view):
     if self.non_blocking and self.focus_change_mode:
         ViewCollection.add(view)
Esempio n. 42
0
 def on_activated(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)