Append selected lines to file open

Fixes #19