Sublime Forum

Enable search highlighting for large files

#1

New forum user here :wave:

I have a file that I refer to routinely (it consists of timestamps), and I use Sublime Text on Mac to edit it. Normally, when I search for a token in Sublime (Command-F), all instances of the token are also highlighted.

However, the file recently went above 30,000 lines, and this seems to be a threshold for Sublime to automatically disable search highlighting.

Is there a way to re-enable search highlighting in Sublime?

0 Likes

#2

For reference: https://github.com/sublimehq/sublime_text/issues/4591

0 Likes

#3

This has been resolved.

Build 4114 adds the following options in the Sublime Preferences to make this configurable

  • find_scroll_highlights_limit
  • find_highlight_matches_max_size
  • find_regex_highlight_matches_max_size
  • find_in_files_max_result_size settings.
1 Like