Adding selection support

The multiple commits are caused by me uploading code via Github. I will rebase it all before I merge. 
That code is to check if the initial cursor position is smaller than the smallest indentation found in all lines. From line 107 onwards, it's the else which is triggered by the user choosing Whole File in the settings.