Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 def show_in_editable_tab(self, text, extra = None):
     view = self.show_in_tab(text)
     view.set_scratch(True)
     OpenViews.set(view, extra)
Ejemplo n.º 4
0
 def show_in_editable_tab(self, text, extra=None):
     view = self.show_in_tab(text)
     view.set_scratch(True)
     OpenViews.set(view, extra)