Force `EditorSelection.assoc`

Is it possible to, kinda like EditorView.atomicRanges, force the assoc on positions in the document?
I’ve tried an EditorView.updateListener that will dispatch a new selection with the correct assoc, if it is found, but this is ends up only settings assoc to 0.

Demo of assoc behaviour

Is there a way to actually force this? And if so, something like changeFilter to always change the selection?


Why do I want assoc on a specific side?
Instead of

4D3BBA0B-A3B5-4827-B196-9E8266F1BAD2

I want to show the big cursor when you are on the edge of my marker

E7EB8CE9-F2D6-42D6-B38F-AB88BC38E1E9

I think you’re looking for transactionFilter for this. And you’re passing the wrong type of object (a SelectionRange rather than an EditorSelection) to the selection transaction spec field, which probably explains why the code is failing.