Home Download Buy Blog Forum Support

How do Key Bindings work on Windows?

How do Key Bindings work on Windows?

Postby nmartin867 on Tue Jul 30, 2013 9:06 pm

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:

Code: Select all
[
   //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!
nmartin867
 
Posts: 1
Joined: Tue Jul 30, 2013 9:01 pm

Re: How do Key Bindings work on Windows?

Postby C0D312 on Wed Jul 31, 2013 12:16 am

The commands need to match the command in the file, not necessarily the name of the file.
http://docs.sublimetext.info/en/latest/ ... mand-names
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am


Return to General Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 20 guests