use selected text as content for new file