Can some method be easily created (e.g. findMatches), which returns ranges (or any reasonable data, so it is possible to understand how many matches I have) that selectMatches would select?
Or any hint how I could get all matches count?
What I tried: keep current selection in variable → selectMatches → get state selection ranges length → restore initial selection.
But this solution seems to be ugly for that specific purpose…