I created a new build system to run GolfScript programs. The definition is as follows:
{ "cmd": ["ruby", "D:\\w\\sublime\\golfscript.rb", "$file"] }
This works, but I need to manually switch the Build System from "Automatic" to "golfscript" whenever I need to use this, and then switch it to be able to run Ruby, Python, etc.
I want my build system to be automatically applied when I have a *.gs file *.gs .
I read several docs and got the idea that I can use a selector to achieve this, so I added a selector to the existing configuration:
{ "cmd": ["ruby", "D:\\w\\sublime\\golfscript.rb", "$file"], "selector": "source.gs" }
After reading even more documents / examples, I could not figure out how to talk about what the selector actually has.
How to configure the source.gs selector to point to *.gs files?
source share