''

def run(self, edit, text, mode=u'insert', do_scroll=True):

    point = self.view.size()
    if (mode == u'insert'):
        self.view.insert(edit, point, text)
    else:
        region = sublime.Region(0, point)
        self.view.replace(edit, region, text)
    if do_scroll:
        view_size = self.view.size()
        if (view_size > 0):
            point = (view_size - 1)
            (line, col) = self.view.rowcol(point)
            point = self.view.text_point((line - 1), 1)
            self.view.show(point)
