By using selectSubwordBackward
/ selectSubwordForward
commands selection’s head
position has been moved.
It totally makes sense, but I wonder: is there a way to move anchor
instead, so user can extend selection in both directions?
By using selectSubwordBackward
/ selectSubwordForward
commands selection’s head
position has been moved.
It totally makes sense, but I wonder: is there a way to move anchor
instead, so user can extend selection in both directions?
You could write your own commands that do this, but it’s not a common thing for text editors to support, so there are no commands for it in @codemirror/commands.