The LaTeXing package has two key bindings to build .tex files to .pdf files. These are defined in Default (Windows).sublime-keymap
(code below). However, they are active all the time, regardless of what type of file is open.
{
"keys": ["ctrl+super+b"],
"command": "ltx_quick_build_compiler"
},
{
"keys": ["shift+ctrl+b"],
"command": "ltx_quick_build_compiler", "args": {"primary_qb": true}
}
I have tried to make them syntax specific. After reading Syntax Specific Key Binding, my best guess was the code below. But that doesn’t change a thing. Do you have any suggestions?
{
"keys": ["ctrl+super+b"],
"command": "ltx_quick_build_compiler",
"context": { "key": "selector", "operator": "equal", "operand": "text.tex.latex" }
},
{
"keys": ["shift+ctrl+b"],
"command": "ltx_quick_build_compiler", "args": {"primary_qb": true},
"context": { "key": "selector", "operator": "equal", "operand": "text.tex.latex" }
}