-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
217 lines (217 loc) · 5.87 KB
/
package.json
File metadata and controls
217 lines (217 loc) · 5.87 KB
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
{
"name": "nonsense-to-flow",
"displayName": "潜催案例错别字修正工具",
"publisher": "msgk",
"description": "From deadpan nonsense, to a state of flow. A simple tool to polish your transcribed thoughts, correcting typos and refining clarity.",
"version": "0.0.4",
"repository": {
"type": "git",
"url": "https://github.com/msgk239/keywords"
},
"engines": {
"vscode": "^1.60.0"
},
"categories": [
"Linters"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "nonsense-to-flow.checkDocument",
"title": "检查中文错别字"
},
{
"command": "nonsense-to-flow.showTypoList",
"title": "显示错别字列表"
},
{
"command": "nonsense-to-flow.fixAllTypos",
"title": "修正所有错别字"
},
{
"command": "nonsense-to-flow.checkDocx",
"title": "导入Word文档检查错别字"
},
{
"command": "nonsense-to-flow.exportToDocx",
"title": "导出为Word文档"
},
{
"command": "nonsense-to-flow.importTypoDictionary",
"title": "导入错别字文件"
},
{
"command": "nonsense-to-flow.exportTypoDictionary",
"title": "导出错别字文件"
},
{
"command": "nonsense-to-flow.openDictionary",
"title": "打开默认错别字映射表"
},
{
"command": "nonsense-to-flow.openCustomDictionary",
"title": "打开自定义错别字映射表"
},
{
"command": "nonsense-to-flow.toggleDefaultRules",
"title": "切换是否使用错别字默认规则"
},
{
"command": "nonsense-to-flow.applySelected",
"title": "应用选中的修正"
},
{
"command": "nonsense-to-flow.selectAll",
"title": "全选"
},
{
"command": "nonsense-to-flow.deselectAll",
"title": "取消全选"
}
],
"menus": {
"editor/context": [
{
"command": "nonsense-to-flow.checkDocument",
"group": "nonsense-to-flow"
},
{
"command": "nonsense-to-flow.fixAllTypos",
"group": "nonsense-to-flow"
},
{
"command": "nonsense-to-flow.checkDocx",
"group": "nonsense-to-flow"
},
{
"command": "nonsense-to-flow.exportToDocx",
"group": "nonsense-to-flow",
"when": "resourceExtname == .txt"
}
],
"view/title": [
{
"command": "nonsense-to-flow.applySelected",
"when": "view == chineseTypos",
"group": "navigation"
},
{
"command": "nonsense-to-flow.selectAll",
"when": "view == chineseTypos",
"group": "navigation"
},
{
"command": "nonsense-to-flow.deselectAll",
"when": "view == chineseTypos",
"group": "navigation"
}
]
},
"configuration": {
"title": "中文错别字检查",
"properties": {
"nonsense-to-flow.enabled": {
"type": "boolean",
"default": true,
"description": "是否启用错别字检查"
},
"nonsense-to-flow.useDefaultRules": {
"type": "boolean",
"default": true,
"description": "是否使用默认错别字规则(若关闭则只使用自定义规则)"
},
"nonsense-to-flow.customRules": {
"type": "array",
"default": [],
"description": "自定义错别字规则",
"items": {
"type": "object",
"properties": {
"original": {
"type": "string",
"description": "错别字"
},
"suggestion": {
"type": "string",
"description": "建议修改为"
},
"enabled": {
"type": "boolean",
"description": "是否启用该规则",
"default": true
}
},
"required": [
"original",
"suggestion"
]
}
},
"nonsense-to-flow.highlight.enabled": {
"type": "boolean",
"default": true,
"description": "是否高亮显示错别字"
},
"nonsense-to-flow.highlight.color": {
"type": "string",
"default": "#FF0000",
"description": "错别字高亮颜色"
},
"nonsense-to-flow.supportedFileTypes": {
"type": "array",
"default": ["markdown", "plaintext"],
"description": "支持的文件类型(只在这些类型的文件中检查错别字)",
"items": {
"type": "string",
"enum": ["markdown", "plaintext"]
}
}
}
},
"views": {
"nonsense-to-flow-view": [
{
"id": "chineseTypos",
"name": "中文错别字列表",
"icon": "resources/icon.svg"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "nonsense-to-flow-view",
"title": "中文错别字检查",
"icon": "resources/icon.svg"
}
]
}
},
"dependencies": {
"docx": "^8.5.0",
"mammoth": "^1.9.0",
"docxtemplater": "^3.37.11",
"pizzip": "^3.1.4",
"jszip": "^3.10.1"
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"test": "node ./out/test/runTest.js",
"package": "vsce package"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/node": "^16.11.7",
"@types/vscode": "^1.60.0",
"glob": "^7.1.7",
"typescript": "^4.5.2",
"vscode-test": "^1.5.2"
}
}