-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathMain.sublime-menu
353 lines (353 loc) · 14.2 KB
/
Main.sublime-menu
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
[
{
"caption": "文件",
"mnemonic": "F",
"id": "file",
"children":
[
{ "command": "prompt_new_repository", "caption": "新建仓库" },
{ "command": "display_clone_page", "caption": "克隆仓库…" },
{ "command": "prompt_open_repository", "caption": "打开仓库…" },
{ "command": "quick_switch_repository", "caption": "切换仓库…" },
{
"caption": "打开历史记录",
"mnemonic": "R",
"children":
[
{ "command": "quick_open_repository", "caption": "选择…" },
{ "caption": "-" },
{ "command": "open_recent", "args": {"index": 0 } },
{ "command": "open_recent", "args": {"index": 1 } },
{ "command": "open_recent", "args": {"index": 2 } },
{ "command": "open_recent", "args": {"index": 3 } },
{ "command": "open_recent", "args": {"index": 4 } },
{ "command": "open_recent", "args": {"index": 5 } },
{ "command": "open_recent", "args": {"index": 6 } },
{ "command": "open_recent", "args": {"index": 7 } },
{ "command": "open_recent", "args": {"index": 8 } },
{ "command": "open_recent", "args": {"index": 9 } },
{ "command": "open_recent", "args": {"index": 10 } },
{ "command": "open_recent", "args": {"index": 11 } },
{ "command": "open_recent", "args": {"index": 12 } },
{ "command": "open_recent", "args": {"index": 13 } },
{ "command": "open_recent", "args": {"index": 14 } },
{ "command": "open_recent", "args": {"index": 15 } },
{ "caption": "-" },
{ "command": "clear_recent", "caption": "清除历史记录" },
]
},
{ "caption": "-" },
{ "command": "new_window", "caption": "新建窗口" },
{ "command": "close_window", "caption": "关闭窗口" },
{ "caption": "-", "id": "exit" },
{ "command": "exit", "caption": "退出", "mnemonic": "x", "platform": "Windows" },
{ "command": "exit", "caption": "退出", "mnemonic": "Q", "platform": "Linux" },
]
},
{
"caption": "编辑",
"mnemonic": "E",
"id": "edit",
"children":
[
{ "command": "undo", "caption": "撤销", "mnemonic": "U" },
{ "command": "redo_or_repeat", "caption": "重做", "mnemonic": "R" },
{ "caption": "-" },
{ "command": "cut", "caption": "剪切", "mnemonic": "t" },
{ "command": "copy", "caption": "复制", "mnemonic": "C" },
{ "command": "paste", "caption": "粘贴", "mnemonic": "P" },
{ "caption": "-" },
{ "command": "select_all" , "caption": "选择全部" },
{ "caption": "-" },
{ "command": "wrap_lines", "caption": "Wrap Paragraph" },
{ "caption": "-", "id": "end" },
]
},
{
"caption": "仓库",
"mnemonic": "R",
"id": "repository",
"children":
[
{ "command": "git_undo", "mnemonic": "U" },
{ "command": "git_redo", "mnemonic": "R" },
{ "caption": "-" },
{ "command": "stash", "caption": "Stash" },
{ "command": "show_command_palette", "args": { "command": "stash" }, "caption": "Stash with…" },
{ "command": "pop_stash", "caption": "取回 Stash" },
{ "caption": "-" },
{ "command": "show_command_palette", "args": { "command": "pull" }, "caption": "拉取…" },
{
"caption": "推送…",
"command": "show_command_palette",
"args": { "command": "push", "args": {"prompt": true} },
},
{ "caption": "-" },
{
"caption": "切换分支",
"command": "show_command_palette",
"args": { "command": "checkout_branch" },
},
{
"caption": "切换远程分支…",
"command": "show_command_palette",
"args":
{
"command": "checkout_branch",
"args": { "local_refs": false, "remote_refs": true }
},
},
{
"caption": "创建分支…",
"command": "show_command_palette",
"args":
{
"command": "create_branch"
}
},
{
"caption": "从远程分支创建分支...",
"command": "show_command_palette",
"args":
{
"command": "create_branch_from_remote_branch"
}
},
{
"caption": "重命名分支…",
"command": "show_command_palette",
"args":
{
"command": "rename_branch"
}
},
{
"caption": "删除分支…",
"command": "show_command_palette",
"args":
{
"command": "delete_branch",
"args": {"prompt": false},
}
},
{ "caption": "-" },
{
"caption": "合并分支…",
"command": "show_command_palette",
"args":
{
"command": "merge_branch"
}
},
{
"caption": "Rebase分支…",
"command": "show_command_palette",
"args":
{
"command": "rebase_branch"
}
},
{ "caption": "-" },
{ "command": "open_dir", "args": {"dir": "$working_dir"}, "caption": "打开所在目录…" },
{ "command": "open_dir_in_sublime_text", "args": {"dir": "$working_dir"}, "caption": "在 Sublime Text 中打开所在目录…" },
{ "caption": "-", "id": "end" }
]
},
{
"caption": "导航",
"mnemonic": "N",
"id": "navigate",
"children":
[
{ "command": "navigate_back", "caption": "后退" },
{ "command": "navigate_forward", "caption": "前进" },
{ "command": "navigate_to_commit_message", "caption": "跳转到提交信息" },
{ "command": "navigate_to_head", "caption": "跳转到 HEAD" },
{ "command": "navigate_to_parent", "caption": "跳转到 Parent" },
{
"caption": "跳转到提交…",
"command": "show_command_palette",
"args": {"command": "navigate_to_commit"},
},
{
"caption": "跳转到分支…",
"command": "show_command_palette",
"args": {"command": "navigate_to_branch"},
},
{
"caption": "跳转到标签…",
"command": "show_command_palette",
"args": {"command": "navigate_to_tag"},
},
{ "caption": "-" },
{ "command": "toggle_select_file", "caption": "显示内容" },
{ "caption": "-" },
{ "command": "toggle_search", "caption": "查找" },
{ "command": "show_command_palette", "args": {"command": "blame"}, "caption": "Blame…" },
{ "command": "show_command_palette", "args": {"command": "file_history"}, "caption": "文件历史…" },
{ "caption": "-", "id": "end" },
]
},
{
"caption": "工具",
"mnemonic": "T",
"id": "tools",
"children":
[
{ "command": "show_command_palette", "caption": "命令面板…" },
{ "command": "刷新" },
{ "caption": "-" },
{
"caption": "编辑 .gitattributes…",
"command": "open_in_editor",
"args": {
"path": "$working_dir/.gitattributes", "line": "$line", "col": "$col",
"default": "# Specify filepatterns you want to assign special attributes.\n\n"
},
},
{
"caption": "编辑 .gitignore…",
"command": "open_in_editor",
"args": {
"path": "$working_dir/.gitignore", "line": "$line", "col": "$col",
"default": "# Specify filepatterns you want git to ignore.\n\n"
},
},
{
"caption": "密码缓存",
"platform": "!Windows",
"children":
[
{
"command": "git_config",
"caption": "不缓存",
"args":
{
"key": "credential.helper",
"value": "cache --timeout=0",
"is_default_value": true,
},
"checkbox": true
},
{
"command": "git_config",
"caption": "缓存10分钟",
"args":
{
"key": "credential.helper",
"value": "cache --timeout=600",
},
"checkbox": true
},
{
"command": "git_config",
"caption": "缓存1小时",
"args":
{
"key": "credential.helper",
"value": "cache --timeout=3600",
},
"checkbox": true
},
{
"command": "git_config",
"caption": "缓存1天",
"args":
{
"key": "credential.helper",
"value": "cache --timeout=86400",
},
"checkbox": true
},
{
"command": "git_config",
"caption": "缓存1星期",
"args":
{
"key": "credential.helper",
"value": "cache --timeout=604800",
},
"checkbox": true
},
]
},
{ "caption": "-" },
{ "command": "init_gitflow", "caption": "初始化 Git Flow" },
{ "command": "edit_gitflow_config", "caption": "配置 Git Flow" },
{
"caption": "Start Git Flow Feature Branch",
"command": "show_command_palette",
"args": { "command": "gitflow_start_feature" },
},
{
"caption": "Start Git Flow Bugfix Branch",
"command": "show_command_palette",
"args": { "command": "gitflow_start_bugfix" },
},
{
"caption": "Start Git Flow Release Branch",
"command": "show_command_palette",
"args": { "command": "gitflow_start_release" },
},
{
"caption": "Start Git Flow Hotfix Branch",
"command": "show_command_palette",
"args": { "command": "gitflow_start_hotfix" },
},
{
"caption": "Start Git Flow Support Branch",
"command": "show_command_palette",
"args": { "command": "gitflow_start_support" },
},
{ "caption": "-", "id": "full_screen" },
{ "command": "toggle_full_screen", "caption": "进入/退出全屏" },
]
},
{
"caption": "偏好",
"mnemonic": "n",
"id": "preferences",
"children":
[
{ "command": "open_preferences", "caption": "偏好…" },
{ "caption": "-" },
{
"caption": "编辑设置…",
"command": "open_in_editor",
"args":
{
"path": "${packages}/User/Preferences.sublime-settings",
"default": "// Settings in here override those in \"Default/Preferences.sublime-settings\",\n// and are overridden in turn by syntax-specific settings.\n{\n\n}\n"
},
},
{
"caption": "编辑提交信息设置…",
"command": "open_in_editor",
"args":
{
"path": "${packages}/User/Commit Message.sublime-settings",
"default": "// Settings in here override those in \"Default/Commit Message.sublime-settings\"\n{\n\n}\n"
},
},
{ "caption": "-" },
{ "command": "open_dir", "args": {"dir": "$packages"}, "caption": "浏览插件包", "mnemonic": "B" },
]
},
{
"caption": "帮助",
"mnemonic": "H",
"id": "help",
"children":
[
{ "command": "open_url", "args": {"url": "http://twitter.com/sublimehq"}, "caption": "Twitter" },
{ "caption": "-" },
{ "command": "show_license_window", "caption": "输入许可证" },
{ "command": "remove_license"},
{ "caption": "-" },
{ "command": "update_check", "caption": "检查更新…", "platform": "!Linux" },
{ "command": "generate_debug_info", "caption": "调试信息" },
{ "command": "show_changelog", "caption": "更新日志…" },
{ "command": "show_about_window", "caption": "关于 Sublime Merge", "mnemonic": "A" },
]
}
]