Have made some large improvements
All checks were successful
Build / build (push) Successful in 2m48s

- Added support for multiple cursors
- Enabled wrapping
- Added uppercase, lowercase, and lorem ipsum support
- Added support for processing only selected ranges
This commit is contained in:
Leon Mika 2025-09-14 21:58:30 +10:00
parent a047d89dad
commit 3a23118036
7 changed files with 99 additions and 18 deletions

View file

@ -2,26 +2,22 @@ import './style.css';
import './app.css';
import {EditorView, basicSetup} from "codemirror";
import {keymap} from "@codemirror/view";
import { Application } from "@hotwired/stimulus";
import {Application} from "@hotwired/stimulus";
import {textProcessor} from "./services.js";
import {multiCursorKeymap, commandPalette} from "./cmplugins.js";
import { textProcessor } from "./services.js";
import {CommandsController} from "./controllers/commands_controller.js";
const view = new EditorView({
parent: document.querySelector("#app"),
doc: "",
extensions: [
basicSetup,
keymap.of([{
key: "Cmd-p",
run: () => {
let event = new CustomEvent('dq-showcommands');
window.dispatchEvent(event);
return true;
}
}]),
EditorView.lineWrapping,
multiCursorKeymap,
commandPalette,
]
})