Use move-dup in place of move-text + hand-rolled duplicate-line
Use shift-RET to add a newline at the end of the current line