From 33a38bc2798effe95bcbfbec358421f13f58d1ea Mon Sep 17 00:00:00 2001 From: Maurice Zhang Date: Tue, 30 Jun 2015 21:09:00 -0400 Subject: [PATCH] Add menu entry to enable custom keybindings --- Default (OSX).sublime-keymap | 2 +- Main.sublime-menu | 72 ++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 Main.sublime-menu diff --git a/Default (OSX).sublime-keymap b/Default (OSX).sublime-keymap index 8f85cb1..96549bc 100644 --- a/Default (OSX).sublime-keymap +++ b/Default (OSX).sublime-keymap @@ -1,4 +1,4 @@ [ - { "keys": ["super+;"], "command": "append_semi_colon" }, + { "keys": ["super+;"], "command": "append_semi_colon" }, { "keys": ["super+shift+;"], "command": "run_macro_file", "args": {"file": "Packages/AppendSemiColon/AppendSemiColon.sublime-macro"} } ] diff --git a/Main.sublime-menu b/Main.sublime-menu new file mode 100644 index 0000000..a413c74 --- /dev/null +++ b/Main.sublime-menu @@ -0,0 +1,72 @@ +[ + { + "caption": "Preferences", + "mnemonic": "n", + "id": "preferences", + "children": + [ + { + "caption": "Package Settings", + "mnemonic": "P", + "id": "package-settings", + "children": + [ + { + "caption": "AppendSemiColon", + "children": + [ + { + "command": "open_file", + "args": { + "file": "${packages}/AppendSemiColon/Default (OSX).sublime-keymap", + "platform": "OSX" + }, + "caption": "Key Bindings – Default" + }, + { + "command": "open_file", + "args": { + "file": "${packages}/AppendSemiColon/Default.sublime-keymap", + "platform": "Linux" + }, + "caption": "Key Bindings – Default" + }, + { + "command": "open_file", + "args": { + "file": "${packages}/AppendSemiColon/Default.sublime-keymap", + "platform": "Windows" + }, + "caption": "Key Bindings – Default" + }, + { + "command": "open_file", + "args": { + "file": "${packages}/User/Default (OSX).sublime-keymap", + "platform": "OSX" + }, + "caption": "Key Bindings – User" + }, + { + "command": "open_file", + "args": { + "file": "${packages}/User/Default (Linux).sublime-keymap", + "platform": "Linux" + }, + "caption": "Key Bindings – User" + }, + { + "command": "open_file", + "args": { + "file": "${packages}/User/Default (Windows).sublime-keymap", + "platform": "Windows" + }, + "caption": "Key Bindings – User" + } + ] + } + ] + } + ] + } +]