If nothing is selected, automatically select the entire buffer

Note that this may not be exactly what you want. It would eliminate the use case where you might just want to insert something at a certain point (such as just running `pwd` to insert the project directory). However, that doesn't really count as 'pipe-ing', so I think that this behavior makes sense.

I submitted 2 separate PRs for your convenience. Thanks.