'Create new filename with *encoding* and *text*'

def new(self, filename, encoding, text, default_content=False):

    finfo = self.create_new_editor(filename, encoding, text, set_current=False, new=True)
    finfo.editor.set_cursor_position('eof')
    finfo.editor.insert_text(os.linesep)
    if default_content:
        finfo.default = True
        finfo.editor.document().setModified(False)
    return finfo
