Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added multiple deck feature Fix Issue #14 #27

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

elliotverstraelen
Copy link

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.

@elliotverstraelen elliotverstraelen changed the title Added multiple deck feature Added multiple deck feature Fix Issue #14 Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant