def on_close(self, view): view_dict = OpenViews.get(view) if view_dict: OpenViews.remove(view) operation = view_dict['extra'] content = view.substr(sublime.Region(0, view.size())) if content: operation.command.defer(lambda: operation.full_add(content)) else: operation.reexecute()
def show_in_editable_tab(self, text, extra = None): view = self.show_in_tab(text) view.set_scratch(True) OpenViews.set(view, extra)
def show_in_editable_tab(self, text, extra=None): view = self.show_in_tab(text) view.set_scratch(True) OpenViews.set(view, extra)