That works fine for me; note however that as posted above, you’re missing the {}
pair that wrap the entire key binding definition and group it together as a single definition. Assuming that’s not just a copy/paste error, that may be the source of your problem.
It’s also important that the bindings be contained in a pair of []
, since it is a list of JSON objects where each object is a key binding.
For example, a complete Default (OSX).sublime-keymap
file that contains only this custom mapping would look like this:
[
{
"keys": ["super+shift+r"], "command": "browser_refresh", "args": {
"auto_save": true,
"delay": 0.0,
"activate": true,
"browsers": ["chrome"]
}
},
]
As mentioned above, Sublime’s JSON parser is slightly more lenient than the standard. In particular this shows a trailing comma after the key binding which is technically illegal in JSON, but Sublime allows it. As a result of that it’s always safe to include a binding in the list with a trailing comma and know that it’s going to work as expected.