Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 5
0
 def on_post_save(self, view):
     if self.settings_loaded():
         if not self.non_blocking:
             ViewCollection.add(view)
Ejemplo n.º 6
0
 def on_post_save_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Ejemplo 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)
Ejemplo n.º 10
0
 def on_load_async(self, view):
     if self.non_blocking and not self.live_mode:
         ViewCollection.add(view)
Ejemplo n.º 11
0
 def on_modified(self, view):
     if self.live_mode:
         ViewCollection.add(view)
Ejemplo n.º 12
0
 def delayed_update(self, view):
     ViewCollection.add(view)
     self.delayed_update_scheduled = False
Ejemplo n.º 13
0
 def on_modified(self, view):
     if self.live_mode:
         ViewCollection.add(view)
Ejemplo n.º 14
0
 def on_clone_async(self, view):
     if self.settings_loaded():
         if self.non_blocking:
             ViewCollection.add(view)
Ejemplo n.º 15
0
 def on_modified_async(self, view):
     if self.settings_loaded():
         if self.non_blocking and self.live_mode:
             ViewCollection.add(view)
Ejemplo n.º 16
0
 def on_post_save(self, view):
     if self.settings_loaded():
         if not self.non_blocking:
             ViewCollection.add(view)
Ejemplo 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)
Ejemplo n.º 18
0
 def on_activated_async(self, view):
     if self.non_blocking and self.focus_change_mode:
         ViewCollection.add(view)
Ejemplo n.º 19
0
 def on_clone_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Ejemplo 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)
Ejemplo n.º 21
0
 def on_activated_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Ejemplo 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)
Ejemplo n.º 23
0
 def on_clone_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Ejemplo n.º 24
0
 def on_clone(self, view):
     ViewCollection.add(view)
Ejemplo n.º 25
0
 def on_activated_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Ejemplo n.º 26
0
 def on_post_save(self, view):
     ViewCollection.add(view)
Ejemplo 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)
Ejemplo n.º 28
0
 def on_activated(self, view):
     ViewCollection.add(view)
Ejemplo 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)
Ejemplo n.º 30
0
 def on_modified(self, view):
     if view.settings().get('git_gutter_live_mode', True):
         ViewCollection.add(view)
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 35
0
 def on_clone(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
Ejemplo n.º 36
0
 def on_clone(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
Ejemplo n.º 37
0
 def on_modified_async(self, view):
     if not self.live_mode:
         return None
     if self.non_blocking:
         ViewCollection.add(view)
Ejemplo n.º 38
0
 def on_post_save(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
Ejemplo n.º 39
0
 def on_post_save_async(self, view):
     if self.non_blocking:
         ViewCollection.add(view)
Ejemplo n.º 40
0
 def on_activated(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)
Ejemplo n.º 41
0
 def on_activated_async(self, view):
     if self.non_blocking and self.focus_change_mode:
         ViewCollection.add(view)
Ejemplo n.º 42
0
 def on_activated(self, view):
     if not self.non_blocking:
         ViewCollection.add(view)