/AddonManager21

Anki20 Addon: Backported Addon Manager From Anki2.1

Primary LanguagePython

AddonManager21

AnkiAddon: Backported Addon Manager From Anki 2.1

About:

All files are backported from anki-2.1.5-src with a few mods here and there.

With this addon, users can edit the config.json files in Anki 2.0 and update dictionary keys just like 2.1's addon manager. Edited text are saved to a file called meta.json and is not overwritten on updates. Developers can get the config data using mw.addonManager.getConfig and mw.addonManager.setConfigUpdatedAction and it'll work for both Anki 2.0 and 2.1. Without this addon, if it's ever removed or if a user didn't have it installed, developers should ensure their code reads the config.json file directly. See the skeleton folder for an example template provided.

Each addon must have it's own folder with a config.json and a config.md files.

Conflict:

Should there be any conflict and this addon is not loaded before another, rename it to something else like 1.py or 2.py

Symbolic Links or Junction Points:

Addon writen using this method may use sym links (or NTFS junction points) and make the plugin available to both versions of Anki.

Screenshots:

Credits:

I've added enhancements to addonman21 from other addon authors, listed below.
Show JSON's parsing error message, by Arthur-Milchior: https://ankiweb.net/shared/info/2061352905
Add-on window search bar, by ijgnd: https://ankiweb.net/shared/info/561945101