Skip to content

Commit 4fc25a5

Browse files
committed
Reorganize context menues
1 parent 9c891bf commit 4fc25a5

2 files changed

Lines changed: 85 additions & 50 deletions

File tree

Side Bar.sublime-menu

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[
22
{
3-
"caption": "New...",
3+
"caption": "New",
44
"command": "fm_create",
55
"mnemonic": "N",
66
"args": {
@@ -32,31 +32,31 @@
3232
}
3333
},
3434
{
35-
"caption": "Rename...",
35+
"caption": "Rename",
3636
"mnemonic": "R",
3737
"command": "fm_rename_path",
3838
"args": {
3939
"paths": []
4040
}
4141
},
4242
{
43-
"caption": "Move...",
43+
"caption": "Move",
4444
"command": "fm_move",
4545
"mnemonic": "M",
4646
"args": {
4747
"paths": []
4848
}
4949
},
5050
{
51-
"caption": "Duplicate...",
51+
"caption": "Duplicate",
5252
"command": "fm_duplicate",
5353
"mnemonic": "D",
5454
"args": {
5555
"paths": []
5656
}
5757
},
5858
{
59-
"caption": "Delete",
59+
"caption": "Delete",
6060
"command": "fm_delete",
6161
"mnemonic": "e",
6262
"args": {
@@ -67,12 +67,42 @@
6767
"caption": "-"
6868
},
6969
{
70-
"mnemonic": "F",
71-
"caption": "Find in Files",
72-
"command": "fm_find_in_files",
73-
"args": {
74-
"paths": []
75-
}
70+
"mnemonic": "C",
71+
"caption": "Copy…",
72+
"children": [
73+
{
74+
"caption": "Name",
75+
"command": "fm_copy",
76+
"args": {
77+
"which": "name",
78+
"paths": []
79+
}
80+
},
81+
{
82+
"caption": "Absolute Path",
83+
"command": "fm_copy",
84+
"args": {
85+
"which": "absolute path",
86+
"paths": []
87+
}
88+
},
89+
{
90+
"caption": "Path From Root",
91+
"command": "fm_copy",
92+
"args": {
93+
"which": "path from root",
94+
"paths": []
95+
}
96+
},
97+
{
98+
"caption": "Relative Path",
99+
"command": "fm_copy",
100+
"args": {
101+
"which": "relative path",
102+
"paths": []
103+
}
104+
}
105+
]
76106
},
77107
{
78108
"caption": "-"
@@ -112,45 +142,15 @@
112142
}
113143
},
114144
{
115-
"caption": "-"
145+
"caption": "-",
146+
"id": "folder_commands",
116147
},
117148
{
118-
"mnemonic": "C",
119-
"caption": "Copy",
120-
"children": [
121-
{
122-
"caption": "Name",
123-
"command": "fm_copy",
124-
"args": {
125-
"which": "name",
126-
"paths": []
127-
}
128-
},
129-
{
130-
"caption": "Absolute Path",
131-
"command": "fm_copy",
132-
"args": {
133-
"which": "absolute path",
134-
"paths": []
135-
}
136-
},
137-
{
138-
"caption": "Path from root",
139-
"command": "fm_copy",
140-
"args": {
141-
"which": "path from root",
142-
"paths": []
143-
}
144-
},
145-
{
146-
"caption": "Relative Path",
147-
"command": "fm_copy",
148-
"args": {
149-
"which": "relative path",
150-
"paths": []
151-
}
152-
}
153-
]
154-
}
155-
149+
"mnemonic": "F",
150+
"caption": "Find in Files",
151+
"command": "fm_find_in_files",
152+
"args": {
153+
"paths": []
154+
}
155+
},
156156
]

Tab Context.sublime-menu

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[
2+
{ "caption": "-", "id": "file" },
3+
{ "caption": "Open In Browser", "command": "fm_open_in_browser" },
4+
{ "caption": "-", "id": "file_manager" },
5+
{ "caption": "Rename...", "command": "fm_rename_path", },
6+
{ "caption": "Move...", "command": "fm_move" },
7+
{ "caption": "Duplicate...", "command": "fm_duplicate" },
8+
{ "caption": "Delete", "command": "fm_delete" },
9+
{
10+
"caption": "Copy…",
11+
"mnemonic": "C",
12+
"children": [
13+
{
14+
"caption": "Name",
15+
"command": "fm_copy",
16+
"args": { "which": "name" }
17+
},
18+
{
19+
"caption": "Absolute Path",
20+
"command": "fm_copy",
21+
"args": { "which": "absolute path" }
22+
},
23+
{
24+
"caption": "Path From Root",
25+
"command": "fm_copy",
26+
"args": { "which": "path from root" }
27+
},
28+
{
29+
"caption": "Relative Path",
30+
"command": "fm_copy",
31+
"args": { "which": "relative path" }
32+
}
33+
]
34+
},
35+
]

0 commit comments

Comments
 (0)