Nope, that’s not supported. It would be completely at odds with CodeMirror’s selection model. You could maybe use markText to show the range you’re reaching, and use the selection to point at the current match.
Sorry but I don’t fully understand, how is it at odds ?
Can you at least provide a way to prevent setSelection/s from moving the cursor to the end of the selection they set ? this ‘feature’ is not even documented …
search/replace in selection is a common code editor feature, I would like to actually move the cursor inside the selection, not only mark a range.
I want to put the cursor (that is the blinking or static vertical line) at a particular line/ch location which happens to be inside a selection, while keeping the selection.
so as the user presses F3 the cursor keeps jumping to the next match within the selection while the selection remains.
(I will then remove the selection on any change or movement other than F3 for example)