groove-dev 0.15.1 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/FILE-EDITOR-PLAN.md +253 -0
- package/node_modules/@codemirror/autocomplete/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/autocomplete/CHANGELOG.md +639 -0
- package/node_modules/@codemirror/autocomplete/LICENSE +21 -0
- package/node_modules/@codemirror/autocomplete/README.md +43 -0
- package/node_modules/@codemirror/autocomplete/dist/index.cjs +2151 -0
- package/node_modules/@codemirror/autocomplete/dist/index.d.cts +648 -0
- package/node_modules/@codemirror/autocomplete/dist/index.d.ts +648 -0
- package/node_modules/@codemirror/autocomplete/dist/index.js +2120 -0
- package/node_modules/@codemirror/autocomplete/package.json +41 -0
- package/node_modules/@codemirror/commands/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/commands/CHANGELOG.md +386 -0
- package/node_modules/@codemirror/commands/LICENSE +21 -0
- package/node_modules/@codemirror/commands/README.md +35 -0
- package/node_modules/@codemirror/commands/dist/index.cjs +1909 -0
- package/node_modules/@codemirror/commands/dist/index.d.cts +650 -0
- package/node_modules/@codemirror/commands/dist/index.d.ts +650 -0
- package/node_modules/@codemirror/commands/dist/index.js +1795 -0
- package/node_modules/@codemirror/commands/package.json +42 -0
- package/node_modules/@codemirror/lang-css/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-css/CHANGELOG.md +106 -0
- package/node_modules/@codemirror/lang-css/LICENSE +21 -0
- package/node_modules/@codemirror/lang-css/README.md +50 -0
- package/node_modules/@codemirror/lang-css/dist/index.cjs +269 -0
- package/node_modules/@codemirror/lang-css/dist/index.d.cts +28 -0
- package/node_modules/@codemirror/lang-css/dist/index.d.ts +28 -0
- package/node_modules/@codemirror/lang-css/dist/index.js +264 -0
- package/node_modules/@codemirror/lang-css/package.json +42 -0
- package/node_modules/@codemirror/lang-html/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-html/CHANGELOG.md +210 -0
- package/node_modules/@codemirror/lang-html/LICENSE +21 -0
- package/node_modules/@codemirror/lang-html/README.md +147 -0
- package/node_modules/@codemirror/lang-html/dist/index.cjs +667 -0
- package/node_modules/@codemirror/lang-html/dist/index.d.cts +115 -0
- package/node_modules/@codemirror/lang-html/dist/index.d.ts +115 -0
- package/node_modules/@codemirror/lang-html/dist/index.js +661 -0
- package/node_modules/@codemirror/lang-html/package.json +46 -0
- package/node_modules/@codemirror/lang-javascript/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-javascript/CHANGELOG.md +206 -0
- package/node_modules/@codemirror/lang-javascript/LICENSE +21 -0
- package/node_modules/@codemirror/lang-javascript/README.md +125 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.cjs +526 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.d.cts +93 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.d.ts +93 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.js +513 -0
- package/node_modules/@codemirror/lang-javascript/package.json +45 -0
- package/node_modules/@codemirror/lang-json/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-json/CHANGELOG.md +59 -0
- package/node_modules/@codemirror/lang-json/LICENSE +21 -0
- package/node_modules/@codemirror/lang-json/README.md +56 -0
- package/node_modules/@codemirror/lang-json/dist/index.cjs +68 -0
- package/node_modules/@codemirror/lang-json/dist/index.d.cts +22 -0
- package/node_modules/@codemirror/lang-json/dist/index.d.ts +22 -0
- package/node_modules/@codemirror/lang-json/dist/index.js +64 -0
- package/node_modules/@codemirror/lang-json/package.json +39 -0
- package/node_modules/@codemirror/lang-markdown/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-markdown/CHANGELOG.md +246 -0
- package/node_modules/@codemirror/lang-markdown/LICENSE +21 -0
- package/node_modules/@codemirror/lang-markdown/README.md +162 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.cjs +501 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.d.cts +124 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.d.ts +124 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.js +492 -0
- package/node_modules/@codemirror/lang-markdown/package.json +44 -0
- package/node_modules/@codemirror/lang-python/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-python/CHANGELOG.md +174 -0
- package/node_modules/@codemirror/lang-python/LICENSE +21 -0
- package/node_modules/@codemirror/lang-python/README.md +61 -0
- package/node_modules/@codemirror/lang-python/dist/index.cjs +313 -0
- package/node_modules/@codemirror/lang-python/dist/index.d.cts +26 -0
- package/node_modules/@codemirror/lang-python/dist/index.d.ts +26 -0
- package/node_modules/@codemirror/lang-python/dist/index.js +308 -0
- package/node_modules/@codemirror/lang-python/package.json +42 -0
- package/node_modules/@codemirror/language/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/language/CHANGELOG.md +412 -0
- package/node_modules/@codemirror/language/LICENSE +21 -0
- package/node_modules/@codemirror/language/README.md +66 -0
- package/node_modules/@codemirror/language/dist/index.cjs +2742 -0
- package/node_modules/@codemirror/language/dist/index.d.cts +1220 -0
- package/node_modules/@codemirror/language/dist/index.d.ts +1220 -0
- package/node_modules/@codemirror/language/dist/index.js +2687 -0
- package/node_modules/@codemirror/language/package.json +44 -0
- package/node_modules/@codemirror/lint/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lint/CHANGELOG.md +318 -0
- package/node_modules/@codemirror/lint/LICENSE +21 -0
- package/node_modules/@codemirror/lint/README.md +18 -0
- package/node_modules/@codemirror/lint/dist/index.cjs +958 -0
- package/node_modules/@codemirror/lint/dist/index.d.cts +195 -0
- package/node_modules/@codemirror/lint/dist/index.d.ts +195 -0
- package/node_modules/@codemirror/lint/dist/index.js +945 -0
- package/node_modules/@codemirror/lint/package.json +40 -0
- package/node_modules/@codemirror/search/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/search/CHANGELOG.md +324 -0
- package/node_modules/@codemirror/search/LICENSE +21 -0
- package/node_modules/@codemirror/search/README.md +18 -0
- package/node_modules/@codemirror/search/dist/index.cjs +1237 -0
- package/node_modules/@codemirror/search/dist/index.d.cts +385 -0
- package/node_modules/@codemirror/search/dist/index.d.ts +385 -0
- package/node_modules/@codemirror/search/dist/index.js +1217 -0
- package/node_modules/@codemirror/search/package.json +40 -0
- package/node_modules/@codemirror/state/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/state/CHANGELOG.md +308 -0
- package/node_modules/@codemirror/state/LICENSE +21 -0
- package/node_modules/@codemirror/state/README.md +18 -0
- package/node_modules/@codemirror/state/dist/index.cjs +3922 -0
- package/node_modules/@codemirror/state/dist/index.d.cts +1713 -0
- package/node_modules/@codemirror/state/dist/index.d.ts +1713 -0
- package/node_modules/@codemirror/state/dist/index.js +3892 -0
- package/node_modules/@codemirror/state/package.json +38 -0
- package/node_modules/@codemirror/theme-one-dark/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/theme-one-dark/CHANGELOG.md +97 -0
- package/node_modules/@codemirror/theme-one-dark/LICENSE +21 -0
- package/node_modules/@codemirror/theme-one-dark/README.md +46 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.cjs +139 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.d.cts +39 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.d.ts +39 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.js +134 -0
- package/node_modules/@codemirror/theme-one-dark/package.json +41 -0
- package/node_modules/@codemirror/view/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/view/CHANGELOG.md +2284 -0
- package/node_modules/@codemirror/view/LICENSE +21 -0
- package/node_modules/@codemirror/view/README.md +37 -0
- package/node_modules/@codemirror/view/dist/index.cjs +11796 -0
- package/node_modules/@codemirror/view/dist/index.d.cts +2389 -0
- package/node_modules/@codemirror/view/dist/index.d.ts +2389 -0
- package/node_modules/@codemirror/view/dist/index.js +11745 -0
- package/node_modules/@codemirror/view/package.json +41 -0
- package/node_modules/@groove-dev/daemon/src/api.js +268 -2
- package/node_modules/@groove-dev/daemon/src/filewatcher.js +59 -0
- package/node_modules/@groove-dev/daemon/src/index.js +28 -1
- package/node_modules/@groove-dev/daemon/src/mimetypes.js +43 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-BQSznoq0.js +103 -0
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/package.json +15 -2
- package/node_modules/@groove-dev/gui/src/App.jsx +3 -0
- package/node_modules/@groove-dev/gui/src/components/CodeEditor.jsx +143 -0
- package/node_modules/@groove-dev/gui/src/components/EditorTabs.jsx +83 -0
- package/node_modules/@groove-dev/gui/src/components/FileTree.jsx +492 -0
- package/node_modules/@groove-dev/gui/src/components/MediaViewer.jsx +104 -0
- package/node_modules/@groove-dev/gui/src/stores/groove.js +287 -1
- package/node_modules/@groove-dev/gui/src/views/FileEditor.jsx +149 -0
- package/node_modules/@lezer/common/LICENSE +21 -0
- package/node_modules/@lezer/common/README.md +14 -0
- package/node_modules/@lezer/common/dist/index.cjs +2209 -0
- package/node_modules/@lezer/common/dist/index.d.cts +1174 -0
- package/node_modules/@lezer/common/dist/index.d.ts +1174 -0
- package/node_modules/@lezer/common/dist/index.js +2196 -0
- package/node_modules/@lezer/common/package.json +32 -0
- package/node_modules/@lezer/css/CHANGELOG.md +307 -0
- package/node_modules/@lezer/css/LICENSE +21 -0
- package/node_modules/@lezer/css/README.md +6 -0
- package/node_modules/@lezer/css/dist/index.cjs +151 -0
- package/node_modules/@lezer/css/dist/index.d.cts +3 -0
- package/node_modules/@lezer/css/dist/index.d.ts +3 -0
- package/node_modules/@lezer/css/dist/index.js +147 -0
- package/node_modules/@lezer/css/package.json +36 -0
- package/node_modules/@lezer/css/rollup.config.js +16 -0
- package/node_modules/@lezer/css/src/css.grammar +290 -0
- package/node_modules/@lezer/css/src/highlight.js +36 -0
- package/node_modules/@lezer/css/src/parser.js +31 -0
- package/node_modules/@lezer/css/src/parser.terms.js +63 -0
- package/node_modules/@lezer/css/src/tokens.js +75 -0
- package/node_modules/@lezer/css/test/declarations.txt +241 -0
- package/node_modules/@lezer/css/test/selector.txt +178 -0
- package/node_modules/@lezer/css/test/statements.txt +227 -0
- package/node_modules/@lezer/css/test/test-css.js +16 -0
- package/node_modules/@lezer/highlight/LICENSE +21 -0
- package/node_modules/@lezer/highlight/README.md +14 -0
- package/node_modules/@lezer/highlight/dist/index.cjs +936 -0
- package/node_modules/@lezer/highlight/dist/index.d.cts +623 -0
- package/node_modules/@lezer/highlight/dist/index.d.ts +623 -0
- package/node_modules/@lezer/highlight/dist/index.js +927 -0
- package/node_modules/@lezer/highlight/package.json +31 -0
- package/node_modules/@lezer/html/CHANGELOG.md +303 -0
- package/node_modules/@lezer/html/LICENSE +21 -0
- package/node_modules/@lezer/html/README.md +37 -0
- package/node_modules/@lezer/html/dist/index.cjs +354 -0
- package/node_modules/@lezer/html/dist/index.d.cts +14 -0
- package/node_modules/@lezer/html/dist/index.d.ts +14 -0
- package/node_modules/@lezer/html/dist/index.js +349 -0
- package/node_modules/@lezer/html/package.json +37 -0
- package/node_modules/@lezer/html/rollup.config.js +16 -0
- package/node_modules/@lezer/html/src/.tern-port +1 -0
- package/node_modules/@lezer/html/src/content.js +87 -0
- package/node_modules/@lezer/html/src/highlight.js +15 -0
- package/node_modules/@lezer/html/src/html.grammar +181 -0
- package/node_modules/@lezer/html/src/index.js +2 -0
- package/node_modules/@lezer/html/src/parser.js +27 -0
- package/node_modules/@lezer/html/src/parser.terms.js +53 -0
- package/node_modules/@lezer/html/src/tokens.js +199 -0
- package/node_modules/@lezer/html/test/mixed.txt +69 -0
- package/node_modules/@lezer/html/test/tags.txt +370 -0
- package/node_modules/@lezer/html/test/test-html.js +29 -0
- package/node_modules/@lezer/html/test/test-incremental.js +97 -0
- package/node_modules/@lezer/html/test/vue.txt +56 -0
- package/node_modules/@lezer/javascript/CHANGELOG.md +485 -0
- package/node_modules/@lezer/javascript/LICENSE +21 -0
- package/node_modules/@lezer/javascript/README.md +14 -0
- package/node_modules/@lezer/javascript/dist/index.cjs +196 -0
- package/node_modules/@lezer/javascript/dist/index.d.cts +3 -0
- package/node_modules/@lezer/javascript/dist/index.d.ts +3 -0
- package/node_modules/@lezer/javascript/dist/index.js +192 -0
- package/node_modules/@lezer/javascript/package.json +36 -0
- package/node_modules/@lezer/javascript/rollup.config.js +16 -0
- package/node_modules/@lezer/javascript/src/highlight.js +62 -0
- package/node_modules/@lezer/javascript/src/javascript.grammar +735 -0
- package/node_modules/@lezer/javascript/src/parser.js +33 -0
- package/node_modules/@lezer/javascript/src/parser.terms.js +177 -0
- package/node_modules/@lezer/javascript/src/tokens.js +87 -0
- package/node_modules/@lezer/javascript/test/decorator.txt +64 -0
- package/node_modules/@lezer/javascript/test/expression.txt +686 -0
- package/node_modules/@lezer/javascript/test/jsx.txt +79 -0
- package/node_modules/@lezer/javascript/test/semicolon.txt +77 -0
- package/node_modules/@lezer/javascript/test/statement.txt +404 -0
- package/node_modules/@lezer/javascript/test/test-javascript.js +17 -0
- package/node_modules/@lezer/javascript/test/typescript.txt +401 -0
- package/node_modules/@lezer/json/CHANGELOG.md +79 -0
- package/node_modules/@lezer/json/LICENSE +21 -0
- package/node_modules/@lezer/json/README.md +7 -0
- package/node_modules/@lezer/json/dist/index.cjs +41 -0
- package/node_modules/@lezer/json/dist/index.d.cts +3 -0
- package/node_modules/@lezer/json/dist/index.d.ts +3 -0
- package/node_modules/@lezer/json/dist/index.js +37 -0
- package/node_modules/@lezer/json/package.json +36 -0
- package/node_modules/@lezer/json/rollup.config.js +15 -0
- package/node_modules/@lezer/json/src/highlight.js +12 -0
- package/node_modules/@lezer/json/src/json.grammar +38 -0
- package/node_modules/@lezer/json/src/parser.js +23 -0
- package/node_modules/@lezer/json/src/parser.terms.js +12 -0
- package/node_modules/@lezer/json/test/arrays.txt +34 -0
- package/node_modules/@lezer/json/test/literals.txt +23 -0
- package/node_modules/@lezer/json/test/numbers.txt +87 -0
- package/node_modules/@lezer/json/test/objects.txt +34 -0
- package/node_modules/@lezer/json/test/strings.txt +50 -0
- package/node_modules/@lezer/json/test/test-json.js +17 -0
- package/node_modules/@lezer/lr/LICENSE +21 -0
- package/node_modules/@lezer/lr/README.md +25 -0
- package/node_modules/@lezer/lr/dist/constants.d.ts +45 -0
- package/node_modules/@lezer/lr/dist/constants.js +5 -0
- package/node_modules/@lezer/lr/dist/index.cjs +1891 -0
- package/node_modules/@lezer/lr/dist/index.d.cts +303 -0
- package/node_modules/@lezer/lr/dist/index.d.ts +303 -0
- package/node_modules/@lezer/lr/dist/index.js +1884 -0
- package/node_modules/@lezer/lr/package.json +32 -0
- package/node_modules/@lezer/markdown/CHANGELOG.md +279 -0
- package/node_modules/@lezer/markdown/LICENSE +21 -0
- package/node_modules/@lezer/markdown/README.md +725 -0
- package/node_modules/@lezer/markdown/bin/build-readme.cjs +39 -0
- package/node_modules/@lezer/markdown/build.js +16 -0
- package/node_modules/@lezer/markdown/dist/index.cjs +2352 -0
- package/node_modules/@lezer/markdown/dist/index.d.cts +600 -0
- package/node_modules/@lezer/markdown/dist/index.d.ts +600 -0
- package/node_modules/@lezer/markdown/dist/index.js +2335 -0
- package/node_modules/@lezer/markdown/package.json +37 -0
- package/node_modules/@lezer/markdown/src/README.md +83 -0
- package/node_modules/@lezer/markdown/src/extension.ts +301 -0
- package/node_modules/@lezer/markdown/src/index.ts +5 -0
- package/node_modules/@lezer/markdown/src/markdown.ts +1961 -0
- package/node_modules/@lezer/markdown/src/nest.ts +46 -0
- package/node_modules/@lezer/markdown/test/compare-tree.ts +14 -0
- package/node_modules/@lezer/markdown/test/spec.ts +79 -0
- package/node_modules/@lezer/markdown/test/test-extension.ts +269 -0
- package/node_modules/@lezer/markdown/test/test-incremental.ts +265 -0
- package/node_modules/@lezer/markdown/test/test-markdown.ts +3574 -0
- package/node_modules/@lezer/markdown/test/test-nesting.ts +86 -0
- package/node_modules/@lezer/markdown/test/tsconfig.json +12 -0
- package/node_modules/@lezer/markdown/tsconfig.json +14 -0
- package/node_modules/@lezer/python/CHANGELOG.md +243 -0
- package/node_modules/@lezer/python/LICENSE +21 -0
- package/node_modules/@lezer/python/README.md +6 -0
- package/node_modules/@lezer/python/dist/index.cjs +330 -0
- package/node_modules/@lezer/python/dist/index.d.cts +3 -0
- package/node_modules/@lezer/python/dist/index.d.ts +3 -0
- package/node_modules/@lezer/python/dist/index.js +326 -0
- package/node_modules/@lezer/python/package.json +36 -0
- package/node_modules/@lezer/python/rollup.config.js +16 -0
- package/node_modules/@lezer/python/src/highlight.js +35 -0
- package/node_modules/@lezer/python/src/python.grammar +381 -0
- package/node_modules/@lezer/python/src/tokens.js +224 -0
- package/node_modules/@lezer/python/test/expression.txt +231 -0
- package/node_modules/@lezer/python/test/statement.txt +442 -0
- package/node_modules/@lezer/python/test/test-incremental.js +33 -0
- package/node_modules/@lezer/python/test/test-python.js +17 -0
- package/node_modules/@marijn/find-cluster-break/LICENSE +21 -0
- package/node_modules/@marijn/find-cluster-break/README.md +28 -0
- package/node_modules/@marijn/find-cluster-break/dist/index.cjs +85 -0
- package/node_modules/@marijn/find-cluster-break/dist/index.d.cts +15 -0
- package/node_modules/@marijn/find-cluster-break/package.json +35 -0
- package/node_modules/@marijn/find-cluster-break/rollup.config.js +7 -0
- package/node_modules/@marijn/find-cluster-break/src/index.d.ts +15 -0
- package/node_modules/@marijn/find-cluster-break/src/index.js +87 -0
- package/node_modules/@marijn/find-cluster-break/test/test-cluster.js +30 -0
- package/node_modules/crelt/LICENSE +19 -0
- package/node_modules/crelt/README.md +23 -0
- package/node_modules/crelt/dist/index.cjs +31 -0
- package/node_modules/crelt/dist/index.d.cts +4 -0
- package/node_modules/crelt/index.d.ts +4 -0
- package/node_modules/crelt/index.js +28 -0
- package/node_modules/crelt/package.json +35 -0
- package/node_modules/crelt/rollup.config.js +13 -0
- package/node_modules/style-mod/LICENSE +19 -0
- package/node_modules/style-mod/README.md +98 -0
- package/node_modules/style-mod/dist/style-mod.cjs +165 -0
- package/node_modules/style-mod/dist/style-mod.d.cts +16 -0
- package/node_modules/style-mod/package.json +39 -0
- package/node_modules/style-mod/src/README.md +34 -0
- package/node_modules/style-mod/src/style-mod.d.ts +16 -0
- package/node_modules/style-mod/src/style-mod.js +172 -0
- package/node_modules/style-mod/test/test-style-mod.js +104 -0
- package/node_modules/w3c-keyname/.tern-port +1 -0
- package/node_modules/w3c-keyname/LICENSE +19 -0
- package/node_modules/w3c-keyname/README.md +18 -0
- package/node_modules/w3c-keyname/index.cjs +127 -0
- package/node_modules/w3c-keyname/index.d.cts +5 -0
- package/node_modules/w3c-keyname/index.d.ts +5 -0
- package/node_modules/w3c-keyname/index.js +119 -0
- package/node_modules/w3c-keyname/package.json +37 -0
- package/package.json +1 -1
- package/packages/daemon/src/api.js +268 -2
- package/packages/daemon/src/filewatcher.js +59 -0
- package/packages/daemon/src/index.js +28 -1
- package/packages/daemon/src/mimetypes.js +43 -0
- package/packages/gui/dist/assets/index-BQSznoq0.js +103 -0
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/package.json +15 -2
- package/packages/gui/src/App.jsx +3 -0
- package/packages/gui/src/components/CodeEditor.jsx +143 -0
- package/packages/gui/src/components/EditorTabs.jsx +83 -0
- package/packages/gui/src/components/FileTree.jsx +492 -0
- package/packages/gui/src/components/MediaViewer.jsx +104 -0
- package/packages/gui/src/stores/groove.js +287 -1
- package/packages/gui/src/views/FileEditor.jsx +149 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-8Kqi_LVo.js +0 -74
- package/packages/gui/dist/assets/index-8Kqi_LVo.js +0 -74
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@codemirror/autocomplete",
|
|
3
|
+
"version": "6.20.1",
|
|
4
|
+
"description": "Autocompletion for the CodeMirror code editor",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "cm-runtests",
|
|
7
|
+
"prepare": "cm-buildhelper src/index.ts"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"editor",
|
|
11
|
+
"code"
|
|
12
|
+
],
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "Marijn Haverbeke",
|
|
15
|
+
"email": "marijn@haverbeke.berlin",
|
|
16
|
+
"url": "http://marijnhaverbeke.nl"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"main": "dist/index.cjs",
|
|
20
|
+
"exports": {
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"require": "./dist/index.cjs"
|
|
23
|
+
},
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"module": "dist/index.js",
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@codemirror/language": "^6.0.0",
|
|
30
|
+
"@codemirror/state": "^6.0.0",
|
|
31
|
+
"@codemirror/view": "^6.17.0",
|
|
32
|
+
"@lezer/common": "^1.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@codemirror/buildhelper": "^1.0.0"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/codemirror/autocomplete.git"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: Trigger CI
|
|
2
|
+
on: push
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
build:
|
|
6
|
+
name: Dispatch to main repo
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- name: Emit repository_dispatch
|
|
10
|
+
uses: mvasigh/dispatch-action@main
|
|
11
|
+
with:
|
|
12
|
+
# You should create a personal access token and store it in your repository
|
|
13
|
+
token: ${{ secrets.DISPATCH_AUTH }}
|
|
14
|
+
repo: dev
|
|
15
|
+
owner: codemirror
|
|
16
|
+
event_type: push
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
## 6.10.3 (2026-03-12)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Make sure selection-extending commands preserve the associativity of the selection head.
|
|
6
|
+
|
|
7
|
+
## 6.10.2 (2026-02-06)
|
|
8
|
+
|
|
9
|
+
### Bug fixes
|
|
10
|
+
|
|
11
|
+
Move the selection to a less surprising place when undoing, moving the selection, redoing, then undoing again.
|
|
12
|
+
|
|
13
|
+
## 6.10.1 (2025-12-17)
|
|
14
|
+
|
|
15
|
+
### Bug fixes
|
|
16
|
+
|
|
17
|
+
Fix a bug where `copyLineDown` would leave the cursor on the wrong line when it was at the start of the line.
|
|
18
|
+
|
|
19
|
+
## 6.10.0 (2025-10-23)
|
|
20
|
+
|
|
21
|
+
### New features
|
|
22
|
+
|
|
23
|
+
The new `deleteGroupForwardWin` command provides by-group forward deletion using the Windows convention.
|
|
24
|
+
|
|
25
|
+
## 6.9.0 (2025-10-02)
|
|
26
|
+
|
|
27
|
+
### Bug fixes
|
|
28
|
+
|
|
29
|
+
Prevent the default behavior of backspace and delete keys, to prevent the browser from doing anything creative when there's nothing to delete.
|
|
30
|
+
|
|
31
|
+
### New features
|
|
32
|
+
|
|
33
|
+
Implement new `addCursorAbove` and `addCursorBelow` commands. Bind them to Mod-Alt-ArrowUp/Down in the default keymap.
|
|
34
|
+
|
|
35
|
+
## 6.8.1 (2025-03-31)
|
|
36
|
+
|
|
37
|
+
### Bug fixes
|
|
38
|
+
|
|
39
|
+
Fix an issue where creating a comment for a line that starts an inner language would use the comment style from the outer language.
|
|
40
|
+
|
|
41
|
+
## 6.8.0 (2025-01-08)
|
|
42
|
+
|
|
43
|
+
### New features
|
|
44
|
+
|
|
45
|
+
The new `cursorGroupForwardWin` and `selectGroupForwardWin` commands implement Windows-style forward motion by group.
|
|
46
|
+
|
|
47
|
+
## 6.7.1 (2024-10-21)
|
|
48
|
+
|
|
49
|
+
### Bug fixes
|
|
50
|
+
|
|
51
|
+
Change `toggleBlockCommentByLine` to not affect lines with the selection end right at their start.
|
|
52
|
+
|
|
53
|
+
## 6.7.0 (2024-10-07)
|
|
54
|
+
|
|
55
|
+
### Bug fixes
|
|
56
|
+
|
|
57
|
+
Bind Shift-Enter to the same command as Enter in the default keymap, so that it doesn't do nothing when on an EditContext-supporting browser.
|
|
58
|
+
|
|
59
|
+
### New features
|
|
60
|
+
|
|
61
|
+
Add commands for by-string-index cursor motion that ignores text direction.
|
|
62
|
+
|
|
63
|
+
## 6.6.2 (2024-09-17)
|
|
64
|
+
|
|
65
|
+
### Bug fixes
|
|
66
|
+
|
|
67
|
+
Fix an issue causing `selectParentSyntax` to not select syntax that is a direct child of the top node.
|
|
68
|
+
|
|
69
|
+
Make `selectParentSyntax` return false when it doesn't change the selection.
|
|
70
|
+
|
|
71
|
+
## 6.6.1 (2024-08-31)
|
|
72
|
+
|
|
73
|
+
### Bug fixes
|
|
74
|
+
|
|
75
|
+
Fix a bug in the undo history that would cause it to incorrectly track inverted effects when adding multiple edits to a single history event.
|
|
76
|
+
|
|
77
|
+
## 6.6.0 (2024-06-04)
|
|
78
|
+
|
|
79
|
+
### New features
|
|
80
|
+
|
|
81
|
+
The new `toggleTabFocusMode` and `temporarilySetTabFocusMode` commands provide control over the view's tab-focus mode.
|
|
82
|
+
|
|
83
|
+
The default keymap now binds Ctrl-m (Shift-Alt-m on macOS) to `toggleTabFocusMode`.
|
|
84
|
+
|
|
85
|
+
## 6.5.0 (2024-04-19)
|
|
86
|
+
|
|
87
|
+
### New features
|
|
88
|
+
|
|
89
|
+
The `insertNewlineKeepIndent` command inserts a newline along with the same indentation as the line before.
|
|
90
|
+
|
|
91
|
+
## 6.4.0 (2024-04-17)
|
|
92
|
+
|
|
93
|
+
### Bug fixes
|
|
94
|
+
|
|
95
|
+
Fix an issue where `deleteLine` sometimes leaves the cursor on the wrong line.
|
|
96
|
+
|
|
97
|
+
### New features
|
|
98
|
+
|
|
99
|
+
The new `deleteCharBackwardStrict` command just deletes a character, without further smart behavior around indentation.
|
|
100
|
+
|
|
101
|
+
## 6.3.3 (2023-12-28)
|
|
102
|
+
|
|
103
|
+
### Bug fixes
|
|
104
|
+
|
|
105
|
+
Fix an issue causing cursor motion commands to not dispatch a transaction when the change only affects cursor associativity.
|
|
106
|
+
|
|
107
|
+
## 6.3.2 (2023-11-28)
|
|
108
|
+
|
|
109
|
+
### Bug fixes
|
|
110
|
+
|
|
111
|
+
Fix a regression that caused `deleteCharBackward` to sometimes delete a large chunk of text.
|
|
112
|
+
|
|
113
|
+
## 6.3.1 (2023-11-27)
|
|
114
|
+
|
|
115
|
+
### Bug fixes
|
|
116
|
+
|
|
117
|
+
When undoing, store the selection after the undone change with the redo event, so that redoing restores it.
|
|
118
|
+
|
|
119
|
+
`deleteCharBackward` will no longer delete variant selector characters as separate characters.
|
|
120
|
+
|
|
121
|
+
## 6.3.0 (2023-09-29)
|
|
122
|
+
|
|
123
|
+
### Bug fixes
|
|
124
|
+
|
|
125
|
+
Make it possible for `selectParentSyntax` to jump out of or into a syntax tree overlay.
|
|
126
|
+
|
|
127
|
+
Make Cmd-Backspace and Cmd-Delete on macOS delete to the next line wrap point, not the start/end of the line.
|
|
128
|
+
|
|
129
|
+
### New features
|
|
130
|
+
|
|
131
|
+
The new `deleteLineBoundaryForward` and `deleteLineBoundaryBackward` commands delete to the start/end of the line or the next line wrapping point.
|
|
132
|
+
|
|
133
|
+
## 6.2.5 (2023-08-26)
|
|
134
|
+
|
|
135
|
+
### Bug fixes
|
|
136
|
+
|
|
137
|
+
Make `insertNewlineAndIndent` properly count indentation for tabs when copying over the previous line's indentation.
|
|
138
|
+
|
|
139
|
+
The various sub-word motion commands will now use `Intl.Segmenter`, when available, to stop at CJK language word boundaries.
|
|
140
|
+
|
|
141
|
+
Fix a bug in `insertNewlineAndIndent` that would delete text between brackets if it had no corresponding AST node.
|
|
142
|
+
|
|
143
|
+
## 6.2.4 (2023-05-03)
|
|
144
|
+
|
|
145
|
+
### Bug fixes
|
|
146
|
+
|
|
147
|
+
The by-subword motion commands now properly treat dashes, underscores, and similar as subword separators.
|
|
148
|
+
|
|
149
|
+
## 6.2.3 (2023-04-19)
|
|
150
|
+
|
|
151
|
+
### Bug fixes
|
|
152
|
+
|
|
153
|
+
Block commenting the selection no longer includes indentation on the first line.
|
|
154
|
+
|
|
155
|
+
## 6.2.2 (2023-03-10)
|
|
156
|
+
|
|
157
|
+
### Bug fixes
|
|
158
|
+
|
|
159
|
+
Fix a bug where line commenting got confused when commenting a range that crossed language boundaries.
|
|
160
|
+
|
|
161
|
+
## 6.2.1 (2023-02-15)
|
|
162
|
+
|
|
163
|
+
### Bug fixes
|
|
164
|
+
|
|
165
|
+
Keep cursor position stable in `cursorPageUp`/`cursorPageDown` when there are panels or other scroll margins active.
|
|
166
|
+
|
|
167
|
+
Make sure `toggleComment` doesn't get thrown off by local language nesting, by fetching the language data for the start of the selection line.
|
|
168
|
+
|
|
169
|
+
## 6.2.0 (2023-01-18)
|
|
170
|
+
|
|
171
|
+
### New features
|
|
172
|
+
|
|
173
|
+
The new `joinToEvent` history configuration option allows you to provide custom logic that determines whether a new transaction is added to an existing history event.
|
|
174
|
+
|
|
175
|
+
## 6.1.3 (2022-12-26)
|
|
176
|
+
|
|
177
|
+
### Bug fixes
|
|
178
|
+
|
|
179
|
+
Preserve selection bidi level when extending the selection, to prevent shift-selection from getting stuck in some kinds of bidirectional text.
|
|
180
|
+
|
|
181
|
+
## 6.1.2 (2022-10-13)
|
|
182
|
+
|
|
183
|
+
### Bug fixes
|
|
184
|
+
|
|
185
|
+
Fix a bug that caused deletion commands on non-empty ranges to incorrectly return false and do nothing, causing the editor to fall back to native behavior.
|
|
186
|
+
|
|
187
|
+
## 6.1.1 (2022-09-28)
|
|
188
|
+
|
|
189
|
+
### Bug fixes
|
|
190
|
+
|
|
191
|
+
Make sure the selection endpoints are moved out of atomic ranges when applying a deletion command to a non-empty selection.
|
|
192
|
+
|
|
193
|
+
## 6.1.0 (2022-08-18)
|
|
194
|
+
|
|
195
|
+
### Bug fixes
|
|
196
|
+
|
|
197
|
+
Prevent native behavior on Ctrl/Cmd-ArrowLeft/ArrowRight bindings, so that browsers with odd bidi behavior won't do the wrong thing at start/end of line.
|
|
198
|
+
|
|
199
|
+
Cmd-ArrowLeft/Right on macOS now moves the cursor in the direction of the arrow even in right-to-left content.
|
|
200
|
+
|
|
201
|
+
### New features
|
|
202
|
+
|
|
203
|
+
The new `cursorLineBoundaryLeft`/`Right` and `selectLineBoundaryLeft`/`Right` commands allow directional motion to line boundaries.
|
|
204
|
+
|
|
205
|
+
## 6.0.1 (2022-06-30)
|
|
206
|
+
|
|
207
|
+
### Bug fixes
|
|
208
|
+
|
|
209
|
+
Announce to the screen reader when the selection is deleted.
|
|
210
|
+
|
|
211
|
+
Also bind Ctrl-Shift-z to redo on Linux.
|
|
212
|
+
|
|
213
|
+
## 6.0.0 (2022-06-08)
|
|
214
|
+
|
|
215
|
+
### Bug fixes
|
|
216
|
+
|
|
217
|
+
Fix a bug where by-page selection commands sometimes moved one line too far.
|
|
218
|
+
|
|
219
|
+
## 0.20.0 (2022-04-20)
|
|
220
|
+
|
|
221
|
+
### Breaking changes
|
|
222
|
+
|
|
223
|
+
There is no longer a separate `commentKeymap`. Those bindings are now part of `defaultKeymap`.
|
|
224
|
+
|
|
225
|
+
### Bug fixes
|
|
226
|
+
|
|
227
|
+
Make `cursorPageUp` and `cursorPageDown` move by window height when the editor is higher than the window.
|
|
228
|
+
|
|
229
|
+
Make sure the default behavior of Home/End is prevented, since it could produce unexpected results on macOS.
|
|
230
|
+
|
|
231
|
+
### New features
|
|
232
|
+
|
|
233
|
+
The exports from @codemirror/comment are now available in this package.
|
|
234
|
+
|
|
235
|
+
The exports from the @codemirror/history package are now available from this package.
|
|
236
|
+
|
|
237
|
+
## 0.19.8 (2022-01-26)
|
|
238
|
+
|
|
239
|
+
### Bug fixes
|
|
240
|
+
|
|
241
|
+
`deleteCharBackward` now removes extending characters one at a time, rather than deleting the entire glyph at once.
|
|
242
|
+
|
|
243
|
+
Alt-v is no longer bound in `emacsStyleKeymap` and macOS's `standardKeymap`, because macOS doesn't bind it by default and it conflicts with some keyboard layouts.
|
|
244
|
+
|
|
245
|
+
## 0.19.7 (2022-01-11)
|
|
246
|
+
|
|
247
|
+
### Bug fixes
|
|
248
|
+
|
|
249
|
+
Don't bind Alt-\< and Alt-> on macOS by default, since those interfere with some keyboard layouts. Make cursorPageUp/Down scroll the view to keep the cursor in place
|
|
250
|
+
|
|
251
|
+
`cursorPageUp` and `cursorPageDown` now scroll the view by the amount that the cursor moved.
|
|
252
|
+
|
|
253
|
+
## 0.19.6 (2021-12-10)
|
|
254
|
+
|
|
255
|
+
### Bug fixes
|
|
256
|
+
|
|
257
|
+
The standard keymap no longer overrides Shift-Delete, in order to allow the native behavior of that key to happen on platforms that support it.
|
|
258
|
+
|
|
259
|
+
## 0.19.5 (2021-09-21)
|
|
260
|
+
|
|
261
|
+
### New features
|
|
262
|
+
|
|
263
|
+
Adds an `insertBlankLine` command which creates an empty line below the selection, and binds it to Mod-Enter in the default keymap.
|
|
264
|
+
|
|
265
|
+
## 0.19.4 (2021-09-13)
|
|
266
|
+
|
|
267
|
+
### Bug fixes
|
|
268
|
+
|
|
269
|
+
Make commands that affect the editor's content check `state.readOnly` and return false when that is true.
|
|
270
|
+
|
|
271
|
+
## 0.19.3 (2021-09-09)
|
|
272
|
+
|
|
273
|
+
### Bug fixes
|
|
274
|
+
|
|
275
|
+
Make by-line cursor motion commands move the cursor to the start/end of the document when they hit the first/last line.
|
|
276
|
+
|
|
277
|
+
Fix a bug where `deleteCharForward`/`Backward` behaved incorrectly when deleting directly before or after an atomic range.
|
|
278
|
+
|
|
279
|
+
## 0.19.2 (2021-08-24)
|
|
280
|
+
|
|
281
|
+
### New features
|
|
282
|
+
|
|
283
|
+
New commands `cursorSubwordForward`, `cursorSubwordBackward`, `selectSubwordForward`, and `selectSubwordBackward` which implement motion by camel case subword.
|
|
284
|
+
|
|
285
|
+
## 0.19.1 (2021-08-11)
|
|
286
|
+
|
|
287
|
+
### Bug fixes
|
|
288
|
+
|
|
289
|
+
Fix incorrect versions for @lezer dependencies.
|
|
290
|
+
|
|
291
|
+
## 0.19.0 (2021-08-11)
|
|
292
|
+
|
|
293
|
+
### Breaking changes
|
|
294
|
+
|
|
295
|
+
Change default binding for backspace to `deleteCharBackward`, drop `deleteCodePointBackward`/`Forward` from the library.
|
|
296
|
+
|
|
297
|
+
`defaultTabBinding` was removed.
|
|
298
|
+
|
|
299
|
+
### Bug fixes
|
|
300
|
+
|
|
301
|
+
Drop Alt-d, Alt-f, and Alt-b bindings from `emacsStyleKeymap` (and thus from the default macOS bindings).
|
|
302
|
+
|
|
303
|
+
`deleteCharBackward` and `deleteCharForward` now take atomic ranges into account.
|
|
304
|
+
|
|
305
|
+
### New features
|
|
306
|
+
|
|
307
|
+
Attach more granular user event strings to transactions.
|
|
308
|
+
|
|
309
|
+
The module exports a new binding `indentWithTab` that binds tab and shift-tab to `indentMore` and `indentLess`.
|
|
310
|
+
|
|
311
|
+
## 0.18.3 (2021-06-11)
|
|
312
|
+
|
|
313
|
+
### Bug fixes
|
|
314
|
+
|
|
315
|
+
`moveLineDown` will no longer incorrectly grow the selection.
|
|
316
|
+
|
|
317
|
+
Line-based commands will no longer include lines where a range selection ends right at the start of the line.
|
|
318
|
+
|
|
319
|
+
## 0.18.2 (2021-05-06)
|
|
320
|
+
|
|
321
|
+
### Bug fixes
|
|
322
|
+
|
|
323
|
+
Use Ctrl-l, not Alt-l, to bind `selectLine` on macOS, to avoid conflicting with special-character-insertion bindings.
|
|
324
|
+
|
|
325
|
+
Make the macOS Command-ArrowLeft/Right commands behave more like their native versions.
|
|
326
|
+
|
|
327
|
+
## 0.18.1 (2021-04-08)
|
|
328
|
+
|
|
329
|
+
### Bug fixes
|
|
330
|
+
|
|
331
|
+
Also bind Shift-Backspace and Shift-Delete in the default keymap (to do the same thing as the Shift-less binding).
|
|
332
|
+
|
|
333
|
+
### New features
|
|
334
|
+
|
|
335
|
+
Adds a `deleteToLineStart` command.
|
|
336
|
+
|
|
337
|
+
Adds bindings for Cmd-Delete and Cmd-Backspace on macOS.
|
|
338
|
+
|
|
339
|
+
## 0.18.0 (2021-03-03)
|
|
340
|
+
|
|
341
|
+
### Breaking changes
|
|
342
|
+
|
|
343
|
+
Update dependencies to 0.18.
|
|
344
|
+
|
|
345
|
+
## 0.17.5 (2021-02-25)
|
|
346
|
+
|
|
347
|
+
### Bug fixes
|
|
348
|
+
|
|
349
|
+
Use Alt-l for the default `selectLine` binding, because Mod-l already has an important meaning in the browser.
|
|
350
|
+
|
|
351
|
+
Make `deleteGroupBackward`/`deleteGroupForward` delete groups of whitespace when bigger than a single space.
|
|
352
|
+
|
|
353
|
+
Don't change lines that have the end of a range selection directly at their start in `indentLess`, `indentMore`, and `indentSelection`.
|
|
354
|
+
|
|
355
|
+
## 0.17.4 (2021-02-18)
|
|
356
|
+
|
|
357
|
+
### Bug fixes
|
|
358
|
+
|
|
359
|
+
Fix a bug where `deleteToLineEnd` would delete the rest of the document when at the end of a line.
|
|
360
|
+
|
|
361
|
+
## 0.17.3 (2021-02-16)
|
|
362
|
+
|
|
363
|
+
### Bug fixes
|
|
364
|
+
|
|
365
|
+
Fix an issue where `insertNewlineAndIndent` behaved strangely with the cursor between brackets that sat on different lines.
|
|
366
|
+
|
|
367
|
+
## 0.17.2 (2021-01-22)
|
|
368
|
+
|
|
369
|
+
### New features
|
|
370
|
+
|
|
371
|
+
The new `insertTab` command inserts a tab when nothing is selected, and defers to `indentMore` otherwise.
|
|
372
|
+
|
|
373
|
+
The package now exports a `defaultTabBinding` object that provides a recommended binding for tab (if you must bind tab).
|
|
374
|
+
|
|
375
|
+
## 0.17.1 (2021-01-06)
|
|
376
|
+
|
|
377
|
+
### New features
|
|
378
|
+
|
|
379
|
+
The package now also exports a CommonJS module.
|
|
380
|
+
|
|
381
|
+
## 0.17.0 (2020-12-29)
|
|
382
|
+
|
|
383
|
+
### Breaking changes
|
|
384
|
+
|
|
385
|
+
First numbered release.
|
|
386
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2018-2021 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @codemirror/commands [](https://www.npmjs.org/package/@codemirror/commands)
|
|
2
|
+
|
|
3
|
+
[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#commands) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/c/next/) | [**CHANGELOG**](https://github.com/codemirror/commands/blob/main/CHANGELOG.md) ]
|
|
4
|
+
|
|
5
|
+
This package implements a collection of editing commands for the
|
|
6
|
+
[CodeMirror](https://codemirror.net/) code editor.
|
|
7
|
+
|
|
8
|
+
The [project page](https://codemirror.net/) has more information, a
|
|
9
|
+
number of [examples](https://codemirror.net/examples/) and the
|
|
10
|
+
[documentation](https://codemirror.net/docs/).
|
|
11
|
+
|
|
12
|
+
This code is released under an
|
|
13
|
+
[MIT license](https://github.com/codemirror/commands/tree/main/LICENSE).
|
|
14
|
+
|
|
15
|
+
We aim to be an inclusive, welcoming community. To make that explicit,
|
|
16
|
+
we have a [code of
|
|
17
|
+
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
|
|
18
|
+
to communication around the project.
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```javascript
|
|
23
|
+
import {EditorView, keymap} from "@codemirror/view"
|
|
24
|
+
import {standardKeymap, selectLine} from "@codemirror/commands"
|
|
25
|
+
|
|
26
|
+
const view = new EditorView({
|
|
27
|
+
parent: document.body,
|
|
28
|
+
extensions: [
|
|
29
|
+
keymap.of([
|
|
30
|
+
...standardKeymap,
|
|
31
|
+
{key: "Alt-l", mac: "Ctrl-l", run: selectLine}
|
|
32
|
+
])
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
```
|