Sublime Forum

Improve information in status bar when Find function is started

#1
  1. Select a word in some text file
  2. Press CTRL+F to start the find function.

The find toolbar is displayed with the selected word.
In the status bar, the number of matches for that word is shown (e.g. 4 matches)
I propose to improve that status bar information by adding the position of the current selection in the list of matches (e.g. 2 of 4 matches).
This extended information is already available in ST but it is only shown when I press the Find button to find next match. However, very often I only need to know the position of the word in the list without having to jump to the next match.

Regards
Alex

0 Likes

#2

The “2 of” is shown when your current selection is in the find results. Selecting a word and pressing ctrl+f shows “2 of 4 matches” for me.

0 Likes

#3

Ideed, now I don’t see the problem either. I’ll see under which circumstances the problem repeats and report here. Thanks.

0 Likes

#4

It happened again. I cannot say, under which circumstances, but in some cases the issue described above just happens. After I press “Find next” the issue is gone and cannot be reproduced.

0 Likes

#5

I guess it should be easy to find the issue by just analysing the source code. Reproducing the issue is not so easy.

0 Likes

#6

I already went over the relevant source code and couldn’t come up with a way it would fail unless you just don’t have the search result selected.

0 Likes