+2
package.json
+2
package.json
···
36
36
"@atcute/tangled": "^1.0.5",
37
37
"@atcute/tid": "^1.0.2",
38
38
"@atcute/uint8array": "^1.0.4",
39
+
"@codemirror/commands": "^6.8.1",
39
40
"@codemirror/lang-json": "^6.0.2",
40
41
"@codemirror/lint": "^6.8.5",
41
42
"@codemirror/state": "^6.5.2",
43
+
"@codemirror/view": "^6.38.2",
42
44
"@fsegurai/codemirror-theme-basic-dark": "^6.2.2",
43
45
"@fsegurai/codemirror-theme-basic-light": "^6.2.2",
44
46
"@mary/exif-rm": "jsr:^0.2.2",
+6
pnpm-lock.yaml
+6
pnpm-lock.yaml
···
56
56
'@atcute/uint8array':
57
57
specifier: ^1.0.4
58
58
version: 1.0.4
59
+
'@codemirror/commands':
60
+
specifier: ^6.8.1
61
+
version: 6.8.1
59
62
'@codemirror/lang-json':
60
63
specifier: ^6.0.2
61
64
version: 6.0.2
···
65
68
'@codemirror/state':
66
69
specifier: ^6.5.2
67
70
version: 6.5.2
71
+
'@codemirror/view':
72
+
specifier: ^6.38.2
73
+
version: 6.38.2
68
74
'@fsegurai/codemirror-theme-basic-dark':
69
75
specifier: ^6.2.2
70
76
version: 6.2.2(@codemirror/language@6.11.3)(@codemirror/state@6.5.2)(@codemirror/view@6.38.2)(@lezer/highlight@1.2.1)
+3
src/components/editor.tsx
+3
src/components/editor.tsx
···
5
5
import { basicLight } from "@fsegurai/codemirror-theme-basic-light";
6
6
import { basicDark } from "@fsegurai/codemirror-theme-basic-dark";
7
7
import { Compartment } from "@codemirror/state";
8
+
import { indentWithTab } from "@codemirror/commands";
9
+
import { keymap } from "@codemirror/view";
8
10
9
11
export let editorView: EditorView;
10
12
···
41
43
basicSetup,
42
44
theme,
43
45
json(),
46
+
keymap.of([indentWithTab]),
44
47
linter(jsonParseLinter()),
45
48
themeColor.of(document.documentElement.classList.contains("dark") ? basicDark : basicLight),
46
49
],