Howdy,
I’m slowly adding bindings based on uses. They are mostly related to LaTeX, but I also program in Ruby (etc.). I gather there is no project-specific keybinding. Is there a file-type-specific way of keybinding?
Howdy,
I’m slowly adding bindings based on uses. They are mostly related to LaTeX, but I also program in Ruby (etc.). I gather there is no project-specific keybinding. Is there a file-type-specific way of keybinding?
You should be able to via selector
More info can be found here: google.com/search?q=sublime … 1&ie=UTF-8
That got me closer than my own googling about. The example I found had context with a single hash, which did not work. Putting it in an array did. Then it took a bit to hunt down the right selector type.
Now I can return to novel writing without borking my programming. 
{
"keys": "-", "-","-"],
"command": "insert_snippet",
"args": {"contents": "\\Dash{}${0:$SELECTION}"},
"context": {"key": "selector", "operator": "equal", "operand": "text.tex.latex"}]
}
Thanks for the cue.