ijgnd / anki__BetterSearch

7 stars 1 forks source link

filter dialog: add "re:" option so that I can filter using regular expressions #18

Closed ijgnd closed 9 months ago

ijgnd commented 4 years ago

see https://docs.ankiweb.net/#/searching

Anki 2.1.24 added re: support for searching in notes in general and specific fields. Unlike the normal searches in a specific field, regular expressions in fields don't require an exact match. Eg: front:re:[a-c]1 matches uppercase or lowercase a1, B1 or c1 that occurs anywhere in the "Front" field

Anki 2.1.50 added regex support for tags: e.g. tag:re:^parent$

ijgnd commented 9 months ago

If I search with regex for a tag do I really want a filter dialog that allows to search for exaxtly one tag? Probably not ...

Problem: "tag:" already opens my filter dialog so it's hard to type "tag:re:" with my add-on.

Workarounds: