notion-anki-sync
notion-anki-sync copied to clipboard
Added multiple deck feature Fix Issue #14
Pull Request Description
Summary
This pull request introduces enhancements to the Notion to Anki sync plugin, specifically addressing the support for multiple target decks based on Notion pages. Previously, all notes were added to a single deck, which could lead to confusion when notes from different subjects were mixed together. With this update, users can now specify different target decks for each Notion page.
New Configuration
The notion_pages
section in the config.json
has been updated to include a new parameter, target_deck
. This parameter allows users to specify the Anki deck where notes from each Notion page will be added. The updated configuration looks like this:
{
"debug": false,
"sync_every_minutes": 30,
"anki_target_deck": "Notion Sync",
"notion_token": "your_notion_token",
"notion_namespace": "your_notion_namespace",
"notion_pages": [
{
"page_id": "8a775ee482ab43732abc9319add819c5",
"recursive": false,
"target_deck": "Math"
},
{
"page_id": "5fbd73fb944e4929af70faede1c9b5c9",
"recursive": true,
"target_deck": "Biology"
}
]
}
Benefits
- Organized Decks: Users can keep notes from different subjects in separate decks.
- Improved Clarity: Avoids confusion by preventing notes from different subjects being mixed together in the same deck.
- Flexible Configuration: Allows for more granular control over where notes are added in Anki.