fix: better input validation
fix: better logic for wrapping selected text and writing mirror transforms