Пример #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)
Пример #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)
Пример #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)
Пример #4
0
 def on_load(self, view):
     if self.settings_loaded():
         if not self.non_blocking and not self.live_mode:
             ViewCollection.add(view)
Пример #5
0
 def on_clone_async(self, view):
     if _non_blocking:
         ViewCollection.add(view)
Пример #6
0
 def on_modified(self, view):
   if view.settings().get('git_gutter_live_mode', True):
     ViewCollection.add(view)
Пример #7
0
 def on_post_save(self, view):
   ViewCollection.add(view)
Пример #8
0
 def on_modified(self, view):
     if view.settings().get('git_gutter_live_mode', True):
         ViewCollection.add(view)
Пример #9
0
 def on_post_save(self, view):
     ViewCollection.add(view)
Пример #10
0
    def on_activated_async(self, view):
        if not _live_mode:
            return None

        if _non_blocking:
            ViewCollection.add(view)
Пример #11
0
 def on_post_save(self, view):
     if self.settings_loaded():
         if not self.non_blocking:
             ViewCollection.add(view)
Пример #12
0
 def on_load(self, view):
     if not _live_mode:
         ViewCollection.add(view)
Пример #13
0
    def on_modified(self, view):
        if not _live_mode:
            return None

        ViewCollection.add(view)
Пример #14
0
    def on_activated_async(self, view):
        if not _live_mode:
            return None

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

        if not _non_blocking:
            ViewCollection.add(view)
Пример #23
0
 def on_activated(self, view):
     ViewCollection.add(view)
Пример #24
0
 def on_clone(self, view):
     if not _non_blocking:
         ViewCollection.add(view)
Пример #25
0
 def on_clone(self, view):
   ViewCollection.add(view)
Пример #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)
Пример #27
0
 def on_load(self, view):
   ViewCollection.add(view)
Пример #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)
Пример #29
0
 def on_post_save(self, view):
     if not _non_blocking:
         ViewCollection.add(view)
Пример #30
0
 def on_post_save(self, view):
     if not _non_blocking:
         ViewCollection.add(view)
Пример #31
0
    def on_activated(self, view):
        if not _live_mode:
            return None

        ViewCollection.add(view)
Пример #32
0
 def on_clone_async(self, view):
     if _non_blocking:
         ViewCollection.add(view)
Пример #33
0
 def on_post_save(self, view):
     if self.settings_loaded():
         if not self.non_blocking:
             ViewCollection.add(view)
Пример #34
0
 def on_post_save_async(self, view):
     if _non_blocking:
         ViewCollection.add(view)
Пример #35
0
 def on_activated(self, view):
     if self.settings_loaded():
         if not self.non_blocking and self.focus_change_mode:
             ViewCollection.add(view)
Пример #36
0
    def on_modified(self, view):
        if not _live_mode:
            return None

        if not _non_blocking:
            ViewCollection.add(view)