getCursor
fun getCursor(state: EditorState, from: DocPos = DocPos.ZERO, to: DocPos = state.doc.endPos): Iterator<SearchMatch>
Get a cursor for this query over a given state.
Parameters
state
The editor state to search.
from
Start position (defaults to 0).
to
End position (defaults to document length).