You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see the TODOs in the source; so I thought I'd just throw a “hey, somebody out there is excited about this!” into the aether.
In particular, I understand how much work is involved in updating root-tags. One user provided a SQL statement that helps, but I'd love to see it integrated first-class:
This is a really great addon, but it misses some kind of batch edit function. I mean, you can't simply rename a root tag, you have to do it manually for every subtag. I found a way to solve this but I've done little testing (anyways, it works) so:
back up your collection
open the collection.anki2 file in a SQLite editor
execute the following commands on the database (while anki is closed):
UPDATE col SET tags = replace( tags, 'oldTag', 'newTag' ) WHERE tags LIKE '%oldTag%';
UPDATE notes SET tags = replace( tags, 'oldTag', 'newTag' ) WHERE tags LIKE '%oldTag%';
(replace oldTag and newTag with your tags)
!!!WARNINGS!!!
little testing was done (backup!)
every ' and % is important, do not delete
not working with accent characters (because of character coding)
it will replace evrything containing the oldTag (example: replacing "it" with "asd" also alters "italian" to "asdalian") (if you know what you are doing you can edit the regExp part to avoid this)
I'm just a random comment guy, I don't take any responsibility, but hope it helps someone ;)
The text was updated successfully, but these errors were encountered:
I see the TODOs in the source; so I thought I'd just throw a “hey, somebody out there is excited about this!” into the aether.
In particular, I understand how much work is involved in updating root-tags. One user provided a SQL statement that helps, but I'd love to see it integrated first-class:
The text was updated successfully, but these errors were encountered: