-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
361 lines (361 loc) · 12.7 KB
/
Copy pathpackage.json
File metadata and controls
361 lines (361 loc) · 12.7 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
{
"name": "quoll",
"icon": "icon.png",
"galleryBanner": {
"color": "#f6f5f0",
"theme": "light"
},
"displayName": "Quoll",
"description": "Obsidian-style Markdown editor, right inside VS Code.",
"license": "MIT",
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"markdown",
"wysiwyg",
"editor",
"codemirror",
"notion",
"obsidian",
"rich-text",
"typora",
"markdown-editor",
"live-preview",
"note-taking",
"gfm",
"MEO"
],
"version": "0.1.68",
"publisher": "mtskf",
"type": "module",
"engines": {
"vscode": "^1.94.0"
},
"repository": {
"type": "git",
"url": "https://github.com/mtskf/quoll"
},
"main": "./dist/extension.cjs",
"packageManager": "pnpm@11.10.0",
"activationEvents": [
"onCustomEditor:quoll.editMarkdown",
"onCommand:quoll.editWith",
"onCommand:quoll.toggleEditor",
"onCommand:quoll.reopenInTextEditor"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "This extension opens markdown files with a rich editor and writes back via WorkspaceEdit; untrusted workspaces could expose this write path to untrusted content."
},
"virtualWorkspaces": {
"supported": false,
"description": "Reading and writing files require a local filesystem (workspace.applyEdit)."
}
},
"contributes": {
"commands": [
{
"command": "quoll.editWith",
"title": "Edit with Quoll",
"icon": {
"light": "media/icons/cat-light.svg",
"dark": "media/icons/cat-dark.svg"
}
},
{
"command": "quoll.toggleEditor",
"title": "Quoll: Toggle Between Rich and Text Editor"
},
{
"command": "quoll.reopenInTextEditor",
"title": "Quoll: Reopen in Text Editor",
"icon": {
"light": "media/icons/file-code-light.svg",
"dark": "media/icons/file-code-dark.svg"
}
},
{
"command": "quoll.format",
"title": "Quoll: Format Selection (bold / italic / code / strike / link)"
},
{
"command": "quoll.formatDocument",
"title": "Quoll: Format Document"
}
],
"menus": {
"editor/title": [
{
"command": "quoll.editWith",
"group": "navigation",
"when": "resourceExtname == '.md' && !activeCustomEditorId && !isInDiffEditor"
},
{
"command": "quoll.reopenInTextEditor",
"group": "navigation",
"when": "activeCustomEditorId == 'quoll.editMarkdown'"
}
],
"commandPalette": [
{
"command": "quoll.format",
"when": "false"
}
]
},
"customEditors": [
{
"viewType": "quoll.editMarkdown",
"displayName": "Markdown (Quoll)",
"selector": [
{
"filenamePattern": "*.md"
}
],
"priority": "option"
}
],
"configuration": {
"title": "Quoll",
"properties": {
"quoll.lint.problems.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Mirror Quoll's advisory Markdown lint findings into the **Problems** panel. When off, in-editor lint underlines still appear; only the workspace-wide Problems entries are suppressed."
},
"quoll.lint.gutter.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Show an opt-in gutter dot on each line that has an advisory Markdown lint finding (severity-coloured: warning vs info). Off by default to keep the clean centred reading column; turning it on adds a thin gutter to the left of the text. The in-editor underlines and the **Problems** mirror are unaffected."
},
"quoll.lint.prose.enabled": {
"type": "boolean",
"default": false,
"markdownDescription": "Add advisory writing-style hints — passive voice, filler words, and over-long sentences — as info-level squiggles in prose paragraphs. Off by default so the lint layer stays purely structural. Advisory only: these never change the document and never block a save; headings, code, tables, and links are exempt."
},
"quoll.editor.spellcheck": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable the editor's native spellchecker (red squiggly underlines) on the Quoll editing surface. On by default. Turning it off sets the `spellcheck` attribute on the editor to `false` so no native spell suggestions appear."
},
"quoll.editor.fontFamily": {
"type": "string",
"enum": [
"default",
"serif",
"sans"
],
"default": "default",
"enumDescriptions": [
"Inherit the VS Code editor font (current behaviour).",
"A serif reading font (Georgia).",
"A sans-serif reading font."
],
"markdownDescription": "Font family for the Quoll editing surface. **Default** inherits your VS Code font; **Serif** / **Sans** apply a curated reading font. Set from the outline sidebar's Settings popover."
},
"quoll.editor.fontSize": {
"type": "string",
"enum": [
"small",
"default",
"large",
"x-large"
],
"default": "default",
"enumDescriptions": [
"Slightly smaller than the default reading size.",
"The default reading size (current behaviour).",
"Larger reading size.",
"Largest reading size."
],
"markdownDescription": "Font size for the Quoll editing surface, relative to your VS Code font size. **Default** keeps the current reading size. Set from the outline sidebar's Settings popover."
},
"quoll.editor.lineHeight": {
"type": "string",
"enum": [
"compact",
"cozy",
"roomy"
],
"default": "cozy",
"enumDescriptions": [
"Tighter line spacing.",
"The default line spacing (current behaviour).",
"Looser line spacing."
],
"markdownDescription": "Line height for the Quoll editing surface. **Cozy** is the current spacing. Set from the outline sidebar's Settings popover."
},
"quoll.editor.contentWidth": {
"type": "string",
"enum": [
"narrow",
"medium",
"wide"
],
"default": "medium",
"enumDescriptions": [
"Narrower reading column.",
"The default reading column width (current behaviour).",
"Wider reading column."
],
"markdownDescription": "Reading-column width for the Quoll editing surface. **Medium** is the current width. Set from the outline sidebar's Settings popover."
}
}
},
"keybindings": [
{
"command": "quoll.toggleEditor",
"key": "ctrl+alt+e",
"mac": "cmd+alt+e",
"when": "editorLangId == markdown && editorTextFocus && !inDiffEditor"
},
{
"command": "quoll.format",
"args": "bold",
"key": "ctrl+b",
"mac": "cmd+b",
"when": "activeCustomEditorId == 'quoll.editMarkdown'"
},
{
"command": "quoll.format",
"args": "italic",
"key": "ctrl+i",
"mac": "cmd+i",
"when": "activeCustomEditorId == 'quoll.editMarkdown'"
},
{
"command": "quoll.format",
"args": "code",
"key": "ctrl+e",
"mac": "cmd+e",
"when": "activeCustomEditorId == 'quoll.editMarkdown'"
},
{
"command": "quoll.format",
"args": "strike",
"key": "ctrl+shift+x",
"mac": "cmd+shift+x",
"when": "activeCustomEditorId == 'quoll.editMarkdown'"
},
{
"command": "quoll.format",
"args": "link",
"key": "ctrl+k",
"mac": "cmd+k",
"when": "activeCustomEditorId == 'quoll.editMarkdown'"
}
],
"walkthroughs": [
{
"id": "quoll.gettingStarted",
"title": "Get Started with Quoll",
"description": "A Notion- and Obsidian-style Markdown editor, right inside VS Code.",
"steps": [
{
"id": "openInQuoll",
"title": "Open a Markdown file in Quoll",
"description": "Quoll turns any `.md` file into a rich, Notion- and Obsidian-style editor — while keeping raw Markdown as the single source of truth underneath.",
"media": {
"markdown": "walkthroughs/getting-started/open-in-quoll.md"
}
},
{
"id": "caretReveal",
"title": "Watch your caret reveal the Markdown",
"description": "Move your caret over bold text, a heading, or a link, and its raw Markdown syntax reveals for editing. Move away, and it conceals back into clean, rendered text.",
"media": {
"markdown": "walkthroughs/getting-started/caret-reveal.md"
}
},
{
"id": "toggleEditor",
"title": "Toggle between rich and text editing",
"description": "Switch to VS Code's built-in text editor to see the raw Markdown, then switch back — your cursor position carries over either way.",
"media": {
"markdown": "walkthroughs/getting-started/toggle-editor.md"
}
},
{
"id": "outline",
"title": "Navigate with the Outline view",
"description": "Every heading in your document shows up in VS Code's built-in Outline view, so you can jump around long documents without scrolling.",
"media": {
"markdown": "walkthroughs/getting-started/outline.md"
},
"completionEvents": [
"onView:outline"
]
},
{
"id": "lintSettings",
"title": "Tune inline lint feedback",
"description": "Quoll lints your Markdown as you type. Adjust the gutter marker, the Problems-panel mirror, and native spellcheck to taste.",
"media": {
"markdown": "walkthroughs/getting-started/lint-settings.md"
},
"completionEvents": [
"onSettingChanged:quoll.lint.gutter.enabled"
]
}
]
}
]
},
"scripts": {
"compile": "tsc -p ./ && tsc -p ./test/extension/tsconfig.unit.json && tsc -p ./test/webview/tsconfig.json && tsc -p ./test/webview-browser/tsconfig.json",
"compile:webview": "tsc -p ./src/webview",
"build": "pnpm compile && pnpm compile:webview && node esbuild.config.mjs --production",
"watch": "node esbuild.config.mjs --watch",
"lint": "biome check",
"format": "biome format --write",
"check": "biome check --write",
"check:todo-markers": "node scripts/check-stale-todo-markers.mjs",
"check:todo-hygiene": "node scripts/check-todo-hygiene.mjs",
"check:doc-sync": "node scripts/check-doc-sync.mjs",
"gen:perf-fixtures": "node scripts/gen-perf-fixtures.mjs",
"preview": "node scripts/preview/serve.mjs",
"smoke:visual": "node scripts/preview/visual-smoke.mjs",
"a11y:probe": "node scripts/preview/a11y-probe.mjs",
"test:unit": "vitest run",
"test:browser": "vitest run --config vitest.browser.config.ts",
"test:e2e": "pnpm build && pnpm test:e2e:run",
"test:e2e:run": "node test/extension/build.mjs && node ./out/test-e2e/launch.js",
"test": "pnpm test:unit && pnpm test:browser && pnpm test:e2e",
"test:watch": "vitest",
"package": "pnpm vsce package --no-dependencies && node scripts/audit-vsix.mjs quoll-$(node -p \"require('./package.json').version\").vsix"
},
"dependencies": {
"@codemirror/commands": "^6.10.3",
"@codemirror/lang-markdown": "^6.5.0",
"@codemirror/language": "^6.12.3",
"@codemirror/legacy-modes": "^6.4.0",
"@codemirror/search": "^6.7.1",
"@codemirror/state": "^6.6.0",
"@codemirror/view": "^6.43.0",
"@lezer/common": "^1.5.2",
"@lezer/highlight": "^1.2.3",
"@lezer/markdown": "^1.6.4"
},
"devDependencies": {
"@biomejs/biome": "^2.4.15",
"@types/mocha": "^10",
"@types/node": "20.16.0",
"@types/vscode": "1.94.0",
"@types/vscode-webview": "^1.57.0",
"@vitest/browser-playwright": "^4.1.10",
"@vitest/coverage-v8": "^4.1.10",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.9.1",
"esbuild": "^0.25.0",
"happy-dom": "^20.10.6",
"mocha": "^11",
"ovsx": "0.10.12",
"playwright": "^1.61.1",
"typescript": "^5.9.3",
"vite": "^7.3.6",
"vitest": "^4.1.10"
}
}