forked from Binocular222/Sublime-Text-3-Full-Documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sublime-menu.txt
34 lines (31 loc) · 4 KB
/
sublime-menu.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
*.sublime-menu = Define Menubar and various right-click menus
File name is significant because it determine which element (Menubar/statusbar/...) is affected
| Encoding.sublime-menu | Left click on "Encoding" section in statusbar |
| Line Endings.sublime-menu | Left click on "Line Ending" section in statusbar |
| Indentation.sublime-menu | Left click on "Indentation" section in statusbar |
| Side Bar.sublime-menu | Right click on items in Sidebar |
| Syntax.sublime-menu | |
| Widget Context.sublime-menu | Right click on text field of any widget (i.e: search panel or output panel) |
| Side Bar Mount Point.sublime-menu | Right click on main folders in Sidebar |
| Context.sublime-menu | Right click on main buffer |
| Main.sublime-menu | Main Menu bar |
| Tab Context.sublime-menu | Right click on Tab bar |
| Find in Files.sublime-menu | Left click on "..." button on Where field of Find_in_files |
Structure
caption: Text to display
children: Sub-menu
command: Action to execute
mnemonic: Accelerator key (i.e press "k" will trigger this caption)
id:
checkbox: true/false
Example:
{
"caption": "File",
"mnemonic": "F",
"id": "file",
"children":
[
{ "command": "new_file", "caption": "New File", "mnemonic": "N" },
{ "command": "prompt_open_file", "caption": "Open File…", "mnemonic": "O", "platform": "!OSX" },
]
}