glutanimate / highlight-search-results

Highlight Search Results in the Browser add-on for Anki
https://ankiweb.net/shared/info/225180905
Other
13 stars 5 forks source link

Does not work with regular expressions. Can you add this feature? #10

Open DmitriyDotsenko opened 2 years ago

DmitriyDotsenko commented 2 years ago

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Problem case

Is your feature request related to a problem? If so, please describe it here. E.g.: "My workflow is such and such, and this and that would help." This addon does not work if regular expressions are used when searching. For instance, if I want to do case-sensitive search with Latin letters in order to find initialism TST, I can do it using regular expressions: "re:(?-i)TST" re: activates regular expressions (?-i) turns off case-insensitive mode If I search for "TST" this addon highlights all instances of TST and tst, if I search for "re:(?-i)TST" nothing is highlighted.

Solution

Concisely describe the solution you would like Please add support for regular expressions, so that addon understands such query: "re:(?-i)TST"

Concisely describe alternatives you've considered (if any)

More information

Additional context: Add any other context or screenshots about the feature request here.

Aveeno1432 commented 9 months ago

I really want this feature too