Sublime Forum

Finds not counted in large file

#1

When i do ctrl-f and type in a search string, the number of matches is displayed in the bottom left corner. But when i do it in a large file of 16.1 MiB the bottom left tells me how many characters are selected in my search string, not the number of matches in the document.

I really need to know how many matches.

0 Likes

#2

This limit is controlled by the "find_highlight_matches_max_size" setting.

0 Likes

#3

Thanks. I’m not technical at all and have no idea how to change the setting.

0 Likes

#4

Preferences > Settings, find the setting in the left hand pane, copy its name and value into the pane on the right between the { } and alter the value as needed, then save the file.

0 Likes

#5

Thanks I tried but I get “unexpected trailing characters” error.
This is what I’ve tried in the right hand pane:
{
“find_highlight_matches_max_size”: 0,
}

then
{
“find_highlight_matches_max_size”: 20777216,
}

In my user settings pane I also have:
{
“font_size”: 17,
}

0 Likes

#6
{
    "font_size": 17,
    "find_highlight_matches_max_size": 0,
}
1 Like

#7

thanks heaps. instant success. god i love you guys.

0 Likes