BuildSelection is a Sublime Text plugin to pass current selection to external command. It is using the same properties as sublime built-in build system.