If nothing selected use contents of file

Hey,

On some of the SQL editors that I've used the default behaviour is that if you don't select the query then it will use the contents of the current view and execute that as a query.

I found myself expecting this plugin to work like that and it didn't so hence this commit :)

Let me know what you think.
Mark