Renaming files in a textdoc