SearchQuery.getCursor method
SearchQuery › getCursor
Unofficial
Get a cursor for iterating over matches.Signature:
getCursor(state: EditorState | Text, from?: number, to?: number): Iterator<SearchQueryMatch>Parameters:
| Parameter | Type | Description |
|---|---|---|
| state | EditorState | Text | The text or editor state to search in. |
| from? | number | Optional start position. |
| to? | number | Optional end position. |
Returns: Iterator<SearchQueryMatch> — An iterator over match ranges.