-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.sublime-menu
135 lines (134 loc) · 3.9 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
[
{
"id": "edit",
"children":
[
{
"id": "line",
"children":
[
{ "command": "remove_blank_lines", "caption": "删除多余空行" },
{ "command": "remove_extra_blank_lines", "caption": "删除所有空行" },
]
},
]
},
{
"id": "view",
"children":
[
{ "caption": "可视化空白符号",
"children":
[
{"caption": "当前选择", "command": "set_setting", "args": {"setting": "draw_white_space", "value": "selection",} },
{"caption": "显示行首空白", "command": "set_setting", "args": {"setting": "draw_white_space", "value": ["selection", "leading", "isolated"] } },
{"caption": "显示行末空白", "command": "set_setting", "args": {"setting": "draw_white_space", "value": ["selection","trailing", "isolated"] } },
{"caption": "显示被可视符号包围空白", "command": "set_setting", "args": {"setting": "draw_white_space", "value": ["selection", "enclosed"] } },
{"caption": "显示所有", "command": "set_setting", "args": {"setting": "draw_white_space", "value": "all", } },
]
},
]
},
{
"id": "tools",
"children":
[
// {
// "caption": "浏览用户设置目录…",
// "command": "open_dir",
// "args": {"dir": "$packages/User"},
// },
{
//"caption": "Terminus: Open Default Shell in View",
"caption": "Terminus: 打开内置终端页",
"mnemonic": "T",
//"command": "set_layout",
//"args":
//{
// "cols": [0.0, 1.0],
// "rows": [0.0, 0.5, 1.0],
// "cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
//},
"command": "terminus_open",
"args": {"config_name": "Default"},
},
{
"caption": "Terminus: 打开内置终端面板",
"mnemonic": "P",
"command": "terminus_open",
"args": {"config_name": "Default", "panel_name": "Terminus"},
},
// {
// "caption": "Markdown: 使用 Pine 打开...",
// "command": "open_markdown_file",
// "platforms": ["OSX"]
// },
{
"caption": "Markdown: 使用 Typora 打开…",
"command": "open_file_with_external_tool",
"args": {"app": "Typora"},
"platforms": ["OSX"]
},
{
"caption": "使用默认方式打开…",
"command": "open_file_with_external_tool",
},
{
"caption": "插入当前时间",
"command": "add_current_time"
}
]
},
{
"id": "preferences",
"children":
[
{ "command": "open_dir", "args": {"dir": "$packages/User"}, "caption": "浏览用户设置目录…"},
{ "command": "open_installed_packages", "caption": "浏览 Install Packages 目录…"},
{
"caption": "编辑用户菜单",
"children":
[
{
"caption": "Main.sublime-menu",
"command": "edit_settings", "args":
{
"base_file": "${packages}/Default/Main.sublime-menu",
"default": "// Settings in here override those in \"Default/Main.sublime-menu\",\n// and are overridden in turn by syntax-specific settings.\n[\n\t$0\n]\n"
},
},
{
"caption": "Tab Context.sublime-menu",
"command": "edit_settings", "args":
{
"base_file": "${packages}/Default/Tab Context.sublime-menu",
"default": "// Settings in here override those in \"Default/Tab Context.sublime-menu\",\n// and are overridden in turn by syntax-specific settings.\n[\n\t$0\n]\n"
},
},
{
"caption": "Context.sublime-menu",
"command": "edit_settings", "args":
{
"base_file": "${packages}/Default/Context.sublime-menu",
"default": "// Settings in here override those in \"Default/Context.sublime-menu\",\n// and are overridden in turn by syntax-specific settings.\n[\n\t$0\n]\n"
},
},
{
"caption": "Mymain.py",
"command": "open_file",
"args": {
"file": "${packages}/User/Mymain.py",
},
},
{
"caption": "随笔",
"command": "open_file",
"args": {
"file": "${packages}/User/Notes.md",
},
},
]
}
],
},
]