Skip to content

Commit 0263531

Browse files
committed
Extend Main menu file
1 parent 38a4475 commit 0263531

File tree

3 files changed

+48
-31
lines changed

3 files changed

+48
-31
lines changed

Support/Main.sublime-menu

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,49 @@
11
[
2-
{
3-
"id": "tools",
4-
"children":
5-
[
6-
{
7-
"id": "packages",
8-
"caption": "Packages",
9-
"mnemonic": "P",
10-
"children":
11-
[
12-
{
13-
"id": "package_dev",
14-
"caption": "Package Development",
15-
"mnemonic": "P",
16-
"children":
17-
[
18-
{ "caption": "New Syntax Definition",
19-
"command": "new_syntax_def" },
20-
{ "caption": "-" },
21-
{ "caption": "New Raw Snippet…",
22-
"command": "new_raw_snippet" },
23-
{ "caption": "New Raw Snippet from Snippet…",
24-
"command": "new_raw_snippet_from_snippet" },
25-
{ "caption": "Generate Snippet from Raw Snippet",
26-
"command": "generate_snippet_from_raw_snippet" }
27-
]
28-
}
29-
]
30-
}
2+
{ "id": "tools",
3+
"children": [
4+
{ "id": "packages",
5+
"caption": "Packages",
6+
"mnemonic": "P",
7+
"children": [
8+
{ "id": "package_dev",
9+
"caption": "Package Development",
10+
"mnemonic": "P",
11+
"children": [
12+
{ "caption": "New Syntax Definition",
13+
"command": "new_syntax_def" },
14+
{ "caption": "Convert to YAML and Rearrange Syntax Definition",
15+
"command": "convert_file",
16+
"args": { "target_format": "yaml",
17+
"ext": "YAML-tmLanguage",
18+
"open_new_file": true,
19+
"rearrange_yaml_syntax_def": true }
20+
},
21+
{ "caption": "Rearrange YAML Syntax Definition",
22+
"command": "rearrange_yaml_syntax_def" },
23+
{ "caption": "-" },
24+
25+
{ "caption": "New Raw Snippet…",
26+
"command": "new_raw_snippet" },
27+
{ "caption": "New Raw Snippet from Snippet…",
28+
"command": "new_raw_snippet_from_snippet" },
29+
{ "caption": "Generate Snippet from Raw Snippet",
30+
"command": "generate_snippet_from_raw_snippet" },
31+
{ "caption": "-" },
32+
33+
{ "caption": "New Settings File",
34+
"command": "new_settings" },
35+
{ "caption": "New Completions File",
36+
"command": "new_completions" },
37+
{ "caption": "New Commands File",
38+
"command": "new_commands_file" },
39+
{ "caption": "New Build System",
40+
"command": "new_build_system2" },
41+
{ "caption": "New Plugin",
42+
"command": "new_plugin" }
43+
]
44+
}
3145
]
32-
}
46+
}
47+
]
48+
}
3349
]

messages/2.0.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ v2.0.0 (2016-01-24)
2222
* Added a notice for when Plists can not be parsed on ST2 and specific Linux
2323
distros
2424
* A few completions changes
25+
+ More entries in Main menu file
2526

2627
And from previous update 1.0.8, which didn't show an update message:
2728

syntax_def_dev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class RearrangeYamlSyntaxDefCommand(sublime_plugin.TextCommand):
212212
begin beginCaptures end endCaptures match captures include
213213
patterns repository""".split()
214214

215-
def is_visible(self):
215+
def is_enabled(self):
216216
return base_scope(self.view) in ('source.yaml', 'source.yaml-tmlanguage')
217217

218218
def run(self, edit,

0 commit comments

Comments
 (0)