sachingooo / anki-filtered-deck-by-tag

An Anki add-on that creates a filtered deck from the browser sidebar. Used for studying by tag instead of by deck.
GNU General Public License v3.0
2 stars 2 forks source link

allow multiple tag string delimeters with user config #3

Open yash-fn opened 7 months ago

yash-fn commented 7 months ago

Greetings fellow Chicagoan. Loved your add-on. Small suggestion to make strings readable with multiple delimiters of even varying lengths. it takes regex string and essentially truncates and splits.

sachingooo commented 3 months ago

Nice idea, and thanks for the contribution! Let's make a few changes:

  1. There should be no change to current behavior on update (only the underscore should be the default splitter)
  2. Make the config setting a string of delimiters the user wants instead of a regex. So in the example you provided, instead of _|\.|-|,|\| it would be _.-,| and then we can construct the regex programmatically when we use it. I don't expect everyday users to be able to construct a regex as part of their configuration!
  3. Update the README to reflect user instructions for configuration