Add vim keys to the solve page's editor
A Vim checkbox in the toolbar turns on @replit/codemirror-vim, off by default and remembered in this browser like the split. A status line under the editor shows the mode and the command being typed, and :w saves as Save does. Run, Submit and Save keep their Ctrl keys in every mode, since the page's keymap is at the highest precedence. The vim extension sits in a Compartment, so turning it on or off keeps the text and its history; the states kept for the other languages are brought up to date when they are swapped back in. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Generated
+23
@@ -17,6 +17,7 @@
|
||||
"@codemirror/state": "^6.7.6",
|
||||
"@codemirror/view": "^6.43.13",
|
||||
"@lezer/highlight": "^1.2.5",
|
||||
"@replit/codemirror-vim": "^6.4.0",
|
||||
"@vscode/markdown-it-katex": "^1.1.2",
|
||||
"codemirror": "^6.0.2",
|
||||
"dompurify": "^3.4.17",
|
||||
@@ -749,6 +750,28 @@
|
||||
"node": "^22.20 || ^24.12 || >=25"
|
||||
}
|
||||
},
|
||||
"node_modules/@replit/codemirror-vim": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@replit/codemirror-vim/-/codemirror-vim-6.4.0.tgz",
|
||||
"integrity": "sha512-t9UMDNhkmeAkl0uRbiJVotv97bGD6mf4GyJJoEbrjUqa/Pov0s9eL+4AaI0Xto3OGri17i9qwIpT0JbVlVXt8A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@replit/codemirror-vim-core": "^0.1.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@codemirror/commands": "6.x.x",
|
||||
"@codemirror/language": "6.x.x",
|
||||
"@codemirror/search": "6.x.x",
|
||||
"@codemirror/state": "6.x.x",
|
||||
"@codemirror/view": "6.x.x"
|
||||
}
|
||||
},
|
||||
"node_modules/@replit/codemirror-vim-core": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@replit/codemirror-vim-core/-/codemirror-vim-core-0.1.0.tgz",
|
||||
"integrity": "sha512-1i6EBKpcNfDKvTmTh6N6g9lL6udD5t+uFNh4JCqozRnVlvUGOps7h/QzS2ne4zcvPUjvApKpmcP7Grc3fNbZiQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@rolldown/pluginutils": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz",
|
||||
|
||||
Reference in New Issue
Block a user