Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Change default keybindings to use source.go context #2
Change fixes the keybindings to only apply to files using Go syntax. Previously keybindings were global and broke the build system for other syntaxes (if used via F7). Correctly applies keybindings to both Projects and singular files, tested with both singular and project open with files of another language (either within, or outside of the project).
As an aside, it might be worth adding a Go.sublime-build file with something like this https://gist.github.com/2399847 (and removing the F7 binding from Default.sublime-keymap) so that SublimeGoBuild isn't overriding the Build keybind at all, and better matches how other languages are handled.