feature(edit) beautify: add clearSelection, moveCursor to begin