@replit/codemirror-emacs
Advanced tools
Comparing version 0.19.0 to 0.20.0
import { Prec, StateEffect, StateField, MapMode, EditorSelection } from '@codemirror/state'; | ||
import { EditorView, Direction, ViewPlugin } from '@codemirror/view'; | ||
import { showPanel } from '@codemirror/panel'; | ||
import { EditorView, Direction, ViewPlugin, showPanel } from '@codemirror/view'; | ||
import * as commands from '@codemirror/commands'; | ||
import { toggleComment } from '@codemirror/comment'; | ||
import * as history from '@codemirror/history'; | ||
import { startCompletion } from '@codemirror/autocomplete'; | ||
@@ -109,3 +106,3 @@ import { openSearchPanel } from '@codemirror/search'; | ||
}; | ||
const hideNativeSelection = /*@__PURE__*/Prec.override(/*@__PURE__*/EditorView.theme(themeSpec)); | ||
const hideNativeSelection = /*@__PURE__*/Prec.highest(/*@__PURE__*/EditorView.theme(themeSpec)); | ||
function getBase(view) { | ||
@@ -390,3 +387,3 @@ let rect = view.scrollDOM.getBoundingClientRect(); | ||
command === commands.splitLine || | ||
command === toggleComment) { | ||
command === commands.toggleComment) { | ||
editor.pushEmacsMark(); | ||
@@ -559,5 +556,5 @@ } | ||
"C-u": "universalArgument", | ||
"M-;": toggleComment, | ||
"C-/|C-x u|S-C--|C-z": history.undo, | ||
"S-C-/|S-C-x u|C--|S-C-z": history.redo, | ||
"M-;": commands.toggleComment, | ||
"C-/|C-x u|S-C--|C-z": commands.undo, | ||
"S-C-/|S-C-x u|C--|S-C-z": commands.redo, | ||
// vertical editing | ||
@@ -829,3 +826,3 @@ "C-x r": "selectRectangularRegion", | ||
return; | ||
history.undo(handler.view); | ||
commands.undo(handler.view); | ||
handler.$emacsMarkRing.pop(); // also undo recording mark | ||
@@ -832,0 +829,0 @@ handler.onPaste(killRing.rotate()); |
{ | ||
"name": "@replit/codemirror-emacs", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "Emacs keybindings for CodeMirror 6", | ||
@@ -26,18 +26,14 @@ "scripts": { | ||
"peerDependencies": { | ||
"@codemirror/state": "^0.19.0", | ||
"@codemirror/text": "^0.19.0", | ||
"@codemirror/view": "^0.19.0", | ||
"@codemirror/panel": "*", | ||
"@codemirror/commands": "*", | ||
"@codemirror/comment": "*", | ||
"@codemirror/history": "*", | ||
"@codemirror/autocomplete": "*", | ||
"@codemirror/search": "*" | ||
"@codemirror/state": "^0.20.0", | ||
"@codemirror/view": "^0.20.1", | ||
"@codemirror/commands": "^0.20.0", | ||
"@codemirror/autocomplete": "^0.20.0", | ||
"@codemirror/search": "^0.20.0" | ||
}, | ||
"devDependencies": { | ||
"@codemirror/buildhelper": "^0.1.11", | ||
"@codemirror/stream-parser": "^0.19.0", | ||
"@codemirror/basic-setup": "^0.19.0", | ||
"@codemirror/lang-javascript": "^0.19.0", | ||
"@codemirror/lang-xml": "^0.19.0", | ||
"@codemirror/buildhelper": "^0.1.15", | ||
"@codemirror/language": "^0.20.0", | ||
"@codemirror/basic-setup": "^0.20.0", | ||
"@codemirror/lang-javascript": "^0.20.0", | ||
"@codemirror/lang-xml": "^0.20.0", | ||
"vite": "^2.3.8" | ||
@@ -44,0 +40,0 @@ }, |
# Emacs keybindings for CM6 | ||
<span><a href="https://replit.com/@util/codemirror-emacs" title="Run on Replit badge"><img src="https://replit.com/badge/github/replit/codemirror-emacs" alt="Run on Replit badge" /></a></span> | ||
<span><a href="https://www.npmjs.com/package/@replit/codemirror-emacs" title="NPM version badge"><img src="https://img.shields.io/npm/v/@replit/codemirror-emacs?color=blue" alt="NPM version badge" /></a></span> | ||
## Installation | ||
@@ -4,0 +7,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79493
5
15
30
1876