1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-17 07:52:42 +01:00
uBlock/src/js/codemirror
Raymond Hill 23332400f5
Improve annotations for search operations in CodeMirror editor
Before this commit, CodeMirror's add-on for search occurrences
was limited to find at most 1000 first occurrences, because of
performance considerations.

This commit removes this low limit by having the search
occurrences done in a dedicated worker. The limit is now
time-based, and highly unlikely to ever be hit under normal
condition.

With this change, all search occurrences are gathered,
and as a result:

- All occurrences are reported in the scrollbar instead of
just the 1,000 first

- The total count of all occurrences is now reported, instead
of capping at "1000+".

- The current occurrence rank at the cursor or selection
position is now reported -- this was not possible to report
this before.

The number of occurrences is line-based, it's not useful to
report finer-grained occurences in uBO.
2020-08-02 12:18:01 -04:00
..
search-thread.js Improve annotations for search operations in CodeMirror editor 2020-08-02 12:18:01 -04:00
search.js Improve annotations for search operations in CodeMirror editor 2020-08-02 12:18:01 -04:00
ubo-dynamic-filtering.js Fix regression in URL rules validation 2019-07-10 17:24:01 -04:00
ubo-static-filtering.js Consider an empty pattern with anchors to be dubious 2020-07-17 10:08:08 -04:00