Skip to content

Commit b6445a5

Browse files
[Feature] Some changes to package settings main menu entry.
This commit: 1. In lines the settings and keybindings of the main menu entry with that of the command palette entry by having the `default` arg. 2. Provides a documentation menu entry to open the README directly in the browser.
1 parent 9fc5768 commit b6445a5

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

resources/Main.sublime-menu

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,26 @@
1313
{
1414
"caption": "Settings",
1515
"command": "edit_settings",
16-
"args": { "base_file": "${packages}/CommandsBrowser/resources/CommandsBrowser.sublime-settings" },
16+
"args": {
17+
"base_file": "${packages}/CommandsBrowser/resources/CommandsBrowser.sublime-settings",
18+
"default": "// Settings in here override those in \"CommandsBrowser/resources/CommandsBrowser.sublime-settings\"\n\n{\n\t$0\n}\n",
19+
},
1720
},
1821
{
1922
"caption": "Key Bindings",
2023
"command": "edit_settings",
21-
"args": { "base_file": "${packages}/CommandsBrowser/resources/Default.sublime-keymap" },
24+
"args": {
25+
"base_file": "${packages}/CommandsBrowser/resources/Default.sublime-keymap",
26+
"default": "// Key bindings in here override those in \"CommandsBrowser/resources/Default.sublime-keymap\"\n\n[\n\t$0\n]\n",
27+
},
28+
},
29+
{ "caption": "-", },
30+
{
31+
"caption": "Documentation",
32+
"command": "open_url",
33+
"args": {
34+
"url": "https://github.com/Sublime-Instincts/CommandsBrowser#readme"
35+
}
2236
}
2337
]
2438
}

0 commit comments

Comments
 (0)