update docs to match current Context menu
@@ -17,12 +17,9 @@ Context Menu
Packages/<package name>/.
- This file will now replace the one from the installed package.
By the way, you can override every single file in any package this way.
-- To remove the context menu, change the ``children`` key to an empty array ``[]``.
+- To remove the context menu, change the content of this file to an empty array: ``[]``.
-**To add** entries, create a Context.sublime-menu file in the Packages/User directory (aka the "User package").
-Create an entry that mirrors the `provided menu from SublimeLinter <https://github.com/SublimeLinter/SublimeLinter/blob/master/menus/Context.sublime-menu>`_.
-Make sure the ``id`` matches. Now create a child entry you want to add.
-You don't have to repeat the existing entries, Sublime Text will merge your context menu into ours.
+**To add** entries, create a Context.sublime-menu file in the Packages/User/ directory (aka the "User package").
This example adds an entry for the command ``sublime_linter_panel_toggle``:
@@ -30,14 +27,7 @@ This example adds an entry for the command ``sublime_linter_panel_toggle``:
[
{
- "id": "sublimelinter",
- "caption": "Linter",
- "children": [
- {
- "id": "sublimelinter-panel",
- "caption": "Show Panel",
+ "caption": "Show Linter Panel",
"command": "sublime_linter_panel_toggle"
}
]
- }
- ]
