Maybe this issue is already known:
Find with regex activated does not show the number of hits in document in the status bar of the main window.
Regards
Alex
Maybe this issue is already known:
Find with regex activated does not show the number of hits in document in the status bar of the main window.
Regards
Alex
It does for me on Build 4134, Windows 11
Can you provide more details on what ST version & OS you are using ? Maybe provide some screenshots if possible ?
Build 4126
Now I know when it happens: In files that are in a Git repository.
Could that be?
Still can’t reproduce on Build 4126, Windows 11 in a file that is tracked by GIT. I still see the number of match counts in status bar when using Regular Expression
mode from Find
panel.
I assume a collision with other messages written to the status bar.
For example, in my case I see “File is modified, 4+, 310+, 206#, 14 characters selected” instead of the usual hits number.
the file is indeed large, but why I dont’ have the issue without regex? Besides, the search works, I can cycle through the hits, it only does not show with hit number it is.
That requires the regex searches through the whole file, which can take much time.
Maybe try to tweak this.
// Same as "find_highlight_matches_max_size" but used when regex is enabled.
"find_regex_highlight_matches_max_size": 1048576, // 1MiB
Thanks. That setting solves the issue.
Frankly, I don’t see any performance impediments after activating it.
Maybe increase the default value?
My file is 5MB large, so I use:
“find_regex_highlight_matches_max_size”: 5242880, // 5MiB
Still no problems with the speed.
The problem likely has less to do with search speed and more to do with degenerate cases of regex like .
and the like , in which case you want it to bail out sooner than later as a safety mechanism to protect you from accidents.