Skip to content

Commit 2d9b42d

Browse files
committed
🎉 new (context) menus and keymap
1 parent 38f1219 commit 2d9b42d

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

Context.sublime-menu

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[
2+
{ "caption": "-", "id": "gdl-sep-top"},
3+
{
4+
"id": "gdl",
5+
"caption": "GDL (convert)",
6+
"children":
7+
[
8+
{
9+
"caption": "Convert to script [gsm ⯈ hsf/gdl]",
10+
"command": "hsf_build"
11+
},
12+
{
13+
"caption": "Build GSM from HSF [hsf/gdl ⯈ gsm]",
14+
"command": "libpart_build"
15+
}
16+
]
17+
},
18+
{ "caption": "-", "id": "gdl-sep-bottom"}
19+
]

Default.sublime-keymap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
// Convert to script (gsm ⯈ hsf/gdl)
3+
{ "keys": ["ctrl+shift+h"], "command": "hsf_build" },
4+
// Build GSM from HSF (hsf/gdl ⯈ gsm)
5+
{ "keys": ["ctrl+shift+alt+g"], "command": "libpart_build", "context":[{"key":"selector", "operator":"equal", "operand":"source.gdl"}] },
6+
]

Main.sublime-menu

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,30 @@
11
[
2+
{
3+
"caption": "Tools",
4+
"mnemonic": "T",
5+
"id": "tools",
6+
"children":
7+
[
8+
{
9+
"caption": "GDL",
10+
"mnemonic": "G",
11+
"id": "gdlmenu",
12+
"children":
13+
[
14+
{
15+
"caption": "Convert to script [gsm ⯈ hsf/gdl]",
16+
"command": "hsf_build",
17+
"mnemonic": "H",
18+
},
19+
{
20+
"caption": "Build GSM from HSF [hsf/gdl ⯈ gsm]",
21+
"command": "libpart_build",
22+
"mnemonic": "G",
23+
}
24+
],
25+
}
26+
]
27+
},
228
{
329
"id": "preferences",
430
"children":

0 commit comments

Comments
 (0)