Exemplo 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)
Exemplo 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)
Exemplo n.º 3
0
 def on_modified(self, view):
     if view.settings().get('git_gutter_live_mode', True):
         # Sublime Text is very strict on the amount of time plugin
         # uses in performance-critical events. Sometimes invoking plugin
         # from this event causes Sublime warning to appear, so we need to
         # schedule its run for future.
         sublime.set_timeout(lambda: ViewCollection.add(view), 1)
Exemplo n.º 4
0
 def on_load(self, view):
     if self.settings_loaded():
         if not self.non_blocking and not self.live_mode:
             ViewCollection.add(view)
Exemplo n.º 5
0
 def on_clone_async(self, view):
     if _non_blocking:
         ViewCollection.add(view)
Exemplo n.º 6
0
 def on_modified(self, view):
   if view.settings().get('git_gutter_live_mode', True):
     ViewCollection.add(view)
Exemplo n.º 7
0
 def on_post_save(self, view):
   ViewCollection.add(view)
Exemplo n.º 8
0
 def on_modified(self, view):
     if view.settings().get('git_gutter_live_mode', True):
         ViewCollection.add(view)
Exemplo n.º 9
0
 def on_post_save(self, view):
     ViewCollection.add(view)
Exemplo n.º 10
0
    def on_activated_async(self, view):
        if not _live_mode:
            return None

        if _non_blocking:
            ViewCollection.add(view)
Exemplo n.º 11
0
 def on_post_save(self, view):
     if self.settings_loaded():
         if not self.non_blocking:
             ViewCollection.add(view)
Exemplo n.º 12
0
 def on_load(self, view):
     if not _live_mode:
         ViewCollection.add(view)
Exemplo n.º 13
0
    def on_modified(self, view):
        if not _live_mode:
            return None

        ViewCollection.add(view)
Exemplo n.º 14
0
    def on_activated_async(self, view):
        if not _live_mode:
            return None

        if _non_blocking:
            ViewCollection.add(view)
Exemplo n.º 15
0
 def on_load_async(self, view):
     if _non_blocking and not _live_mode:
         ViewCollection.add(view)
Exemplo n.º 16
0
 def on_post_save_async(self, view):
     if _non_blocking:
         ViewCollection.add(view)
Exemplo n.º 17
0
 def on_clone(self, view):
     if not _non_blocking:
         ViewCollection.add(view)
Exemplo n.º 18
0
 def on_load(self, view):
     if self.settings_loaded():
         if not self.non_blocking and not self.live_mode:
             ViewCollection.add(view)
Exemplo n.º 19
0
 def on_load_async(self, view):
     if _non_blocking and not _live_mode:
         ViewCollection.add(view)
Exemplo n.º 20
0
 def on_activated(self, view):
     if self.settings_loaded():
         if not self.non_blocking and self.focus_change_mode:
             ViewCollection.add(view)
Exemplo n.º 21
0
 def on_clone(self, view):
     ViewCollection.add(view)
Exemplo n.º 22
0
    def on_modified(self, view):
        if not _live_mode:
            return None

        if not _non_blocking:
            ViewCollection.add(view)
Exemplo n.º 23
0
 def on_activated(self, view):
     ViewCollection.add(view)
Exemplo n.º 24
0
 def on_clone(self, view):
     if not _non_blocking:
         ViewCollection.add(view)
Exemplo n.º 25
0
 def on_clone(self, view):
   ViewCollection.add(view)
Exemplo n.º 26
0
 def run(self):
     self.view = self.window.active_view()
     ViewCollection.set_compare("HEAD")
     ViewCollection.clear_git_time(self.view)
     ViewCollection.add(self.view)
Exemplo n.º 27
0
 def on_load(self, view):
   ViewCollection.add(view)
Exemplo n.º 28
0
 def run(self):
     self.view = self.window.active_view()
     ViewCollection.set_compare("HEAD")
     ViewCollection.clear_git_time(self.view)
     ViewCollection.add(self.view)
Exemplo n.º 29
0
 def on_post_save(self, view):
     if not _non_blocking:
         ViewCollection.add(view)
Exemplo n.º 30
0
 def on_post_save(self, view):
     if not _non_blocking:
         ViewCollection.add(view)
Exemplo n.º 31
0
    def on_activated(self, view):
        if not _live_mode:
            return None

        ViewCollection.add(view)
Exemplo n.º 32
0
 def on_clone_async(self, view):
     if _non_blocking:
         ViewCollection.add(view)
Exemplo n.º 33
0
 def on_post_save(self, view):
     if self.settings_loaded():
         if not self.non_blocking:
             ViewCollection.add(view)
Exemplo n.º 34
0
 def on_post_save_async(self, view):
     if _non_blocking:
         ViewCollection.add(view)
Exemplo n.º 35
0
 def on_activated(self, view):
     if self.settings_loaded():
         if not self.non_blocking and self.focus_change_mode:
             ViewCollection.add(view)
Exemplo n.º 36
0
    def on_modified(self, view):
        if not _live_mode:
            return None

        if not _non_blocking:
            ViewCollection.add(view)