This add-on creates a menu in the Tools menu, allowing you to rebuild or empty all the configured decks at the same time. Each profile will have a separate configuration file (located in the profile folder itself with the name Rebuild Decks_config.json
).
Configuration
Configuring the Add-on
If you are comfortable enough to edit the JSON file yourself, it will be much faster to configure it. Once you are done configuring it, you will have to restart Anki in order for the changes to have effect.
You can access the configuration menu from the Tools menu as well as from the Config button in the Add-ons window.
If any of the selected decks is not a filtered deck, no error will occur, but it is recommended to not add any decks which are not filtered in order to reduce time required to do the action.
If you enable presets, then you can have as many presets as you wish, all of them will have a dedicated button to rebuild or empty under both submenus (rebuild and empty) in the Tools menu.
If you do not enable presets, all configured decks will be rebuilt.
If you decide to toggle the preset functionality, you will have to restart Anki in order to have the correct configuration menu.
Once you save your configs, you will have to restart Anki for the changes to have effect.
Issues
Known Limitations
I have not added an undo feature, as the rebuilding or emptying queue can get arbitrarily large, and it is more challenging to find out how many undo actions are required. You should create a backup or sync before rebuilding or emptying if you think that you might need to undo the action.
I have not added rebuild automatically functionality, as suggested by dae here.
This uses only Qt6, no support for Qt5 (i.e. versions of Anki older than 2.1.55).
Known Conflicts
None so far
Reporting Issues
When reporting issues with this add-on, if you find a button that says Copy Debug Info
, click on it and then send it in a code block like so. Along with the Debug Info, please do send the actions you did that led to this error.
(error message goes here)
If you are able to consistently replicate an error, please do tell the minimum required steps to replicate that error.
If there is any add-on that conflicts with this add-on, please do let me know to see if the conflict can be resolved or not. Along with the issue, include the add-on name and AnkiWeb id for that add-on.
Minor Issues
If you manually add decks, once you cross a threshold of 5 decks, scrolling becomes enabled so that the window doesn’t become arbitrarily large.
If the list of decks is already greater than 5 (if already configured and you are opening the configuration menu), scrolling isn’t enabled for some reason and the window becomes larger than intended. If you add more decks once the settings window is opened, scrolling becomes enabled from that point onwards. If you remove decks, the size of the window doesn’t decrease. If anybody has any idea how to fix this, you’re welcome to chip in.
Changelog
Changelog
This will also be available on GitHub, but that will be some time in the future.
This is my first add-on that I release to the public, many thanks to @Tim.Chen for inspiring me to create an add-on.
If you liked this add-on, consider rating this on the AnkiWeb page and leaving a comment.