Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Should 'mark occurrences' be disable for very large files?

Open lhmouse opened this issue 2 years ago • 1 comments

At work I intermittently need to open some very large (300+ MiB) log files of plain text.

When I open such a file with Notepad3, there is a warning message box, saying this file is too large and syntax highlighting will be disabled. Well, that doesn't matter, because log files are plain text and no highlighting is needed. Good.

Before I can start searching for something in the log, I press Ctrl-F to let Notepad3 open the Find dialog, which also remembers the last 'mark occurrences' setting. However, there is some leftover text in the input box, and as a consequence, Notepad3 attempts to mark occurrences for that leftover text (which I don't want) and loses response for minutes.

And here are two possible solutions:

  1. Make 'mark occurrences' in Find dialog work like the other 'mark occurrences' in View menu. That means to mark only visible occurrences, rather than occurrences in the entire file.
  2. Disable it by default or completely after the large file warning message when open the file.

What do you think?

lhmouse avatar Mar 25 '23 09:03 lhmouse