Is there an event I could use to track when the cursor position has been moved by a mouse-click? My goal is to open my own proprietary code-completion menu based on where they click in the textarea.
I can work with either native JS API or CodeMirror API, but I wanted to know what is the recommended approach here.
There is no textarea, so that won’t really work. But you can use the EditorView.domEventHandlers facet to register regular event handlers. Or have your view plugin, which would probably be the place to manage a completion menu, listen for transactions with a select.pointeruser event tag.