Haha, I saw your plugin just as I was publishing mine!
By the looks of it yours is capable of much more advanced functionality. If you were to steal the “Click to de-select” functionality from mine I would probably just use yours instead
.
Also, in case you didn’t know (or maybe you don’t want to add them), you can supply default keybindings to your commands like this:
this.addCommand({
id: "add-cursor-to-prev-line",
name: "Add New Cursor to Previous Line",
editorCallback: ...
hotkeys: [
{
modifiers: ["Ctrl", "Alt"],
key: "ArrowUp",
},
],
});