Sublime Forum

How do Key Bindings work on Windows?

#1

Hey all,

I have windows @ work. I have two .py files I am trying to use:

indentxml.py
prettify_json.py

These files are in my /Packages/User folder (right next to Default (Windows).sublime-keymap file).

In my Default (Windows).sublime-keymap I have the following bindings:


	//xml formatting
	{ "keys": "ctrl+shift+k"], "command": "indentxml" },
	//json
	{ "keys": "ctrl+shift+j"], "command": "prettify_json" },
	//reindent
	{ "keys": "ctrl+shift+r"], "command": "reindent" , "args": {"single_line": false}}
]

When viewing either a JSON file or XML file if I try these key combinations… nothing happens.
Any ideas?
Thanks!

0 Likes

#2

The commands need to match the command in the file, not necessarily the name of the file.
docs.sublimetext.info/en/latest/ … mand-names

0 Likes