def performUndoOperation(self): """ Undo the remove character action """ operation = InsertTextOperation(self.cursor, self.textStore, self.removedCharacter) operation.perform()
def insertSoftTab(self): """ Insert a space based tab """ spacesToAdd = self.settings.tabSize-self.cursor.col%self.settings.tabSize insertTextOperation = InsertTextOperation(self.cursor, self.textStore, " "*spacesToAdd) insertTextOperation.perform()
def performDoOperation(self): """ Perform the action """ operation = InsertTextOperation(self.cursor, self.textStore, self.textToInsert) operation.perform()
def insertHardTab(self): """ Insert a Hard Tab """ insertTextOperation = InsertTextOperation(self.cursor, self.textStore, '\t') insertTextOperation.perform()