mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-27 23:35:17 -07:00
- Add ctx.anki.on('card-mined') fed by polling, proxy, and card creation once enrichment finishes
- Add ctx.anki.invoke to send one AnkiConnect action to the effective url with no retries
- Ship example anki-sync plugin that syncs to AnkiWeb after mining goes quiet or playback ends
- Unload plugins that finish activating after unloadAll gave up on them
- Document the Anki API and anki-sync plugin in docs-site and architecture docs
768 B
768 B
type: added area: plugins
- Added JavaScript plugins loaded at startup from
<config dir>/plugins/<id>/and enabled underpluginsin the config. Plugins can listen to mpv events, run timers, register actions bound with__plugin-action:<id>/<action>keybindings or run with--plugin-action, run built-in actions, react to mined Anki cards and call AnkiConnect, start mpv, run programs, keep state in a per-plugin data folder, and show results in an overlay panel or their own window. - Added an example
ai-explainplugin that sends the current line and its neighbors tocodex execand shows a translation or grammar explanation. - Added an example
anki-syncplugin that syncs Anki to AnkiWeb after you mine cards, once mining goes quiet or playback ends.