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)
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)
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)
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 _non_blocking: ViewCollection.add(view)
def on_modified(self, view): if view.settings().get('git_gutter_live_mode', True): ViewCollection.add(view)
def on_post_save(self, view): ViewCollection.add(view)
def on_modified(self, view): if view.settings().get('git_gutter_live_mode', True): ViewCollection.add(view)
def on_post_save(self, view): ViewCollection.add(view)
def on_activated_async(self, view): if not _live_mode: return None if _non_blocking: ViewCollection.add(view)
def on_post_save(self, view): if self.settings_loaded(): if not self.non_blocking: ViewCollection.add(view)
def on_load(self, view): if not _live_mode: ViewCollection.add(view)
def on_modified(self, view): if not _live_mode: return None ViewCollection.add(view)
def on_activated_async(self, view): if not _live_mode: return None if _non_blocking: ViewCollection.add(view)
def on_load_async(self, view): if _non_blocking and not _live_mode: ViewCollection.add(view)
def on_post_save_async(self, view): if _non_blocking: ViewCollection.add(view)
def on_clone(self, view): if not _non_blocking: ViewCollection.add(view)
def on_load(self, view): if self.settings_loaded(): if not self.non_blocking and not self.live_mode: ViewCollection.add(view)
def on_load_async(self, view): if _non_blocking and not _live_mode: ViewCollection.add(view)
def on_activated(self, view): if self.settings_loaded(): if not self.non_blocking and self.focus_change_mode: ViewCollection.add(view)
def on_clone(self, view): ViewCollection.add(view)
def on_modified(self, view): if not _live_mode: return None if not _non_blocking: ViewCollection.add(view)
def on_activated(self, view): ViewCollection.add(view)
def on_clone(self, view): if not _non_blocking: ViewCollection.add(view)
def on_clone(self, view): ViewCollection.add(view)
def run(self): self.view = self.window.active_view() ViewCollection.set_compare("HEAD") ViewCollection.clear_git_time(self.view) ViewCollection.add(self.view)
def on_load(self, view): ViewCollection.add(view)
def run(self): self.view = self.window.active_view() ViewCollection.set_compare("HEAD") ViewCollection.clear_git_time(self.view) ViewCollection.add(self.view)
def on_post_save(self, view): if not _non_blocking: ViewCollection.add(view)
def on_post_save(self, view): if not _non_blocking: ViewCollection.add(view)
def on_activated(self, view): if not _live_mode: return None ViewCollection.add(view)
def on_clone_async(self, view): if _non_blocking: ViewCollection.add(view)
def on_post_save(self, view): if self.settings_loaded(): if not self.non_blocking: ViewCollection.add(view)
def on_post_save_async(self, view): if _non_blocking: ViewCollection.add(view)
def on_activated(self, view): if self.settings_loaded(): if not self.non_blocking and self.focus_change_mode: ViewCollection.add(view)
def on_modified(self, view): if not _live_mode: return None if not _non_blocking: ViewCollection.add(view)