forked from marktext/marktext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
420 lines (420 loc) · 10.5 KB
/
schema.json
File metadata and controls
420 lines (420 loc) · 10.5 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
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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
{
"autoSave": {
"description": "General--Automatically save the content being edited.",
"type": "boolean",
"default": false
},
"autoSaveDelay": {
"description": "General--The time in ms after a change that the file is saved.",
"type": "number",
"minimum": 1000,
"default": 5000
},
"titleBarStyle": {
"description": "General--The title bar style (Windows and Linux system only).",
"enum": [
"custom",
"native"
],
"default": "custom"
},
"openFilesInNewWindow": {
"description": "General--Open files in a new window.",
"type": "boolean",
"default": false
},
"openFolderInNewWindow": {
"description": "General--Open folder via menu in a new window.",
"type": "boolean",
"default": false
},
"zoom": {
"description": "General--The zoom level. Between 0.5 and 2.0 inclusive.",
"type": "number",
"minimum": 0.5,
"maximum": 2.0,
"default": 1.0
},
"hideScrollbar": {
"description": "General--Whether to hide scrollbars.",
"type": "boolean",
"default": false
},
"wordWrapInToc": {
"description": "General--Whether to enable word wrap in TOC.",
"type": "boolean",
"default": false
},
"fileSortBy": {
"description": "General--Sort files in opened folder by created time, modified time and title.",
"enum": [
"modified",
"created",
"title"
],
"default": "modified"
},
"startUpAction": {
"description": "General--The action after MarkText startup, open the last edited content, open the specified folder or blank page",
"enum": [
"folder",
"lastState",
"blank"
],
"default": "blank"
},
"defaultDirectoryToOpen": {
"description": "General--The default directory that should be opened on startup when startUp=folder.",
"type": "string"
},
"language": {
"description": "General--The language MarkText use.",
"type": "string",
"default": "en"
},
"editorFontFamily": {
"description": "Editor--editor font family",
"type": "string",
"pattern": "^[^\\s]+((-|\\s)*[^\\s])*$",
"default": "Open Sans"
},
"fontSize": {
"description": "Editor--Font size in pixels",
"type": "number",
"maximum": 32,
"minimum": 12,
"default": 16
},
"lineHeight": {
"description": "Editor--Line Height",
"type": "number",
"maximum": 2,
"minimum": 1.2,
"default": 1.6
},
"editorLineWidth": {
"description": "Editor--Defines the maximum editor area width. An empty string or suffixes of ch (characters), px (pixels) or % (percentage) are allowed.",
"type": "string",
"pattern": "^(?:$|[0-9]+(?:ch|px|%)$)",
"default": ""
},
"codeFontSize": {
"description": "Editor--Font size in code Block, the range is 12 ~ 18",
"type": "number",
"maximum": 28,
"minimum": 12,
"default": 14
},
"codeFontFamily": {
"description": "Editor--Font family used in code block",
"type": "string",
"pattern": "^[^\\s]+((-|\\s)*[^\\s])*$",
"default": "DejaVu Sans Mono"
},
"codeBlockLineNumbers": {
"description": "Editor--Whether to show the line numbers",
"type": "boolean",
"default": true
},
"trimUnnecessaryCodeBlockEmptyLines": {
"description": "Editor--Trim the beginning and ending empty lines in code block",
"type": "boolean",
"default": true
},
"autoPairBracket": {
"description": "Editor--Automatically brackets when editing",
"type": "boolean",
"default": true
},
"autoPairMarkdownSyntax": {
"description": "Editor--Autocomplete markdown syntax",
"type": "boolean",
"default": true
},
"autoPairQuote": {
"description": "Editor--Automatic completion of quotes",
"type": "boolean",
"default": true
},
"endOfLine": {
"description": "Editor--The newline character used at the end of each line. The default value is default, which selects your operating system's default newline character.",
"enum": [
"default",
"lf",
"crlf"
],
"default": "default"
},
"defaultEncoding": {
"description": "Editor--The default file encoding.",
"default": "utf8",
"enum": [
"ascii",
"utf8",
"utf16be",
"utf16le",
"utf32be",
"utf32le",
"latin3",
"iso885915",
"cp1252",
"arabic",
"cp1256",
"latin4",
"cp1257",
"iso88592",
"windows1250",
"cp866",
"iso88595",
"koi8r",
"koi8u",
"cp1251",
"iso885913",
"greek",
"cp1253",
"hebrew",
"cp1255",
"latin5",
"cp1254",
"gb2312",
"gb18030",
"gbk",
"big5",
"big5hkscs",
"shiftjis",
"eucjp",
"euckr",
"latin6"
]
},
"autoGuessEncoding": {
"description": "Editor--Try to automatically guess the file encoding when opening files.",
"type": "boolean",
"default": true
},
"trimTrailingNewline": {
"description": "Editor--The trim trailing newline option.",
"default": 2,
"enum": [
0,
1,
2,
3
]
},
"textDirection": {
"description": "Editor--The writing text direction",
"enum": [
"ltr",
"rtl"
],
"default": "ltr"
},
"hideQuickInsertHint": {
"description": "Editor--Hide hint for quickly creating paragraphs",
"type": "boolean",
"default": false
},
"hideLinkPopup": {
"description": "Editor--Hide link popup when the cursor is hover on the link",
"type": "boolean",
"default": false
},
"autoCheck": {
"description": "Editor--Whether to automatically check related task.",
"type": "boolean",
"default": false
},
"preferLooseListItem": {
"description": "Markdown--The preferred list type",
"type": "boolean",
"default": true
},
"bulletListMarker": {
"description": "Markdown--The marker used in bullet list",
"enum": [
"-",
"*",
"+"
],
"default": "-"
},
"orderListDelimiter": {
"description": "Markdown--The dilimiter used in order list",
"enum": [
".",
")"
],
"default": "."
},
"preferHeadingStyle": {
"description": "Markdown--The preferred heading style in MarkText",
"enum": [
"atx",
"setext"
],
"default": "atx"
},
"tabSize": {
"description": "Markdown--Replace the tab with x spaces",
"type": "number",
"default": 4
},
"listIndentation": {
"description": "Markdown--Select the indent of list",
"enum": [
"dfm",
"tab",
1,
2,
3,
4
],
"default": 1
},
"frontmatterType": {
"description": "Markdown--The frontmatter type",
"enum": [
"-",
"+",
";",
"{"
],
"default": "-"
},
"superSubScript": {
"description": "Markdown-Enable pandoc's markdown extension superscript and subscript.",
"type": "boolean",
"default": false
},
"footnote": {
"description": "Markdown-Enable pandoc's markdown extension footnote.",
"type": "boolean",
"default": false
},
"isHtmlEnabled": {
"description": "Markdown-Enable HTML rendering",
"type": "boolean",
"default": true
},
"isGitlabCompatibilityEnabled": {
"description": "Markdown-Enable GitLab compatibility mode.",
"type": "boolean",
"default": false
},
"sequenceTheme": {
"description": "Markdown--Sequence diagram theme",
"enum": [
"hand",
"simple"
],
"default": "hand"
},
"theme": {
"description": "Theme--Select the theme used in MarkText",
"type": "string",
"default": "light"
},
"autoSwitchTheme": {
"description": "Theme--Automatically adjust application theme according system.",
"default": 2,
"enum": [
0,
1,
2
]
},
"spellcheckerEnabled": {
"description": "Spelling--Whether spell checking is enabled.",
"type": "boolean",
"default": false
},
"spellcheckerIsHunspell": {
"description": "Spelling--Whether Hunspell or the OS spell checker is used (macOS only).",
"type": "boolean",
"default": false
},
"spellcheckerNoUnderline": {
"description": "Spelling--Don't underline spelling mistakes.",
"type": "boolean",
"default": false
},
"spellcheckerAutoDetectLanguage": {
"description": "Spelling--Try to automatically identify the used language when typing.",
"type": "boolean",
"default": false
},
"spellcheckerLanguage": {
"description": "Spelling--The spell checker language",
"pattern": "^[a-z]{2,3}(?:[-](?:[0-9]|[a-zA-Z]){2,}){0,2}$",
"default": "en-US"
},
"imageInsertAction": {
"description": "Image--The default behavior after insert image from local folder",
"enum": [
"upload",
"folder",
"path"
],
"default": "path"
},
"imagePreferRelativeDirectory": {
"description": "Image--Whether to prefer the relative image directory.",
"type": "boolean",
"default": false
},
"imageRelativeDirectoryName": {
"description": "Image--The relative image folder name.",
"type": "string",
"default": "assets"
},
"sideBarVisibility": {
"description": "View--Whether the side bar is visible.",
"type": "boolean",
"default": false
},
"tabBarVisibility": {
"description": "View--Whether the tabs are shown.",
"type": "boolean",
"default": false
},
"sourceCodeModeEnabled": {
"description": "View--Whether the source-code mode is enabled by default.",
"type": "boolean",
"default": false
},
"searchExclusions": {
"description": "Searcher--List of glob patterns to exclude from search.",
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"searchMaxFileSize": {
"description": "Searcher--The maximal file size (<maxFileSize><suffix>). Suffixes of K, M or G are allowed if not suffix is given the number is treated as bytes.",
"type": "string",
"pattern": "^(?:$|[0-9]+(?:K|M|G)?$)",
"default": ""
},
"searchIncludeHidden": {
"description": "Searcher--Whether to search in hidden files and directories.",
"type": "boolean",
"default": false
},
"searchNoIgnore": {
"description": "Searcher--Whether to ignore ignore files like .gitignore.",
"type": "boolean",
"default": false
},
"searchFollowSymlinks": {
"description": "Searcher--Whether symlinks should be followed.",
"type": "boolean",
"default": true
},
"watcherUsePolling": {
"description": "Watcher--Whether to use polling. Polling may leads to high CPU utilization but is necessary to watch files over a network.",
"type": "boolean",
"default": false
}
}