Bỏ qua đến nội dung

Obsidian Sync (Differential) By M Saajeel ⭐

Chờ xử lý #anki #addon #obsidian #sync #differential #saajeel
https://github.com/sajee05/anki_obsidian_sync
28/4/2025

Cách tải addon Obsidian Sync (Differential) By M Saajeel ⭐

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

1162061440

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 1162061440 và copy

8

Mô tả chi tiết

Demonstration

Link to YouTube Demo

The Problem: Flashcards Adrift, Notes Disconnected

You love Anki for drilling facts with spaced repetition. You love Obsidian for building a connected web of knowledge, linking ideas, and seeing the bigger picture. But your Anki flashcards often feel isolated from the rich context stored in your Obsidian notes.

Maybe you make flashcards while reading books or articles. Later, when reviewing a card in Anki, you wish you could instantly jump back to the surrounding paragraph or your broader notes on the topic in Obsidian to refresh your memory. It’s frustrating having these two powerful tools working in silos!

The Solution: An Automatic Bridge!

This Anki addon acts as a bridge, automatically exporting your Anki notes into clean, organized Markdown files within your Obsidian vault. It keeps your knowledge synchronized, allowing you to leverage the strengths of both platforms.

Key Features: Your Anki Notes, Supercharged in Obsidian 🧠 Smart Sync: Only updates what’s actually changed in Anki since the last sync, making it fast and efficient. 🗂️ Mirrors Your Decks: Automatically creates folders in your Obsidian vault that perfectly match your Anki deck and sub-deck structure. ✨ Clean Markdown: Converts your Anki notes (even those with HTML formatting) into Obsidian-friendly Markdown. 📝 Automatic Outlines (for Cloze Notes!): Magically turns the text before each {{c…}} deletion in your Cloze notes into a numbered heading (## 1. …, ## 2. …). This creates a handy outline within the Obsidian note, perfect for seeing the structure of your card! 📄 Handles Basic Notes: Neatly separates your “Front” and “Back” fields with ## Front and ## Back headings. ⚙️ Supports Custom Notes: Creates ## Field Name headings for each field in your other note types. 🖼️ Image Sync: Finds images used in your Anki notes and copies them into a central assets folder in your Obsidian sync directory, fixing the links automatically. 🗺️ Index Files (Maps of Content): Generates helpful index files (_Deck_Name_index.md) inside each deck folder, listing and linking to all the notes within that deck. It also creates a master index (_Anki_Collection_Index.md) at the root! 🖱️ Easy Setup: Configure your target Obsidian folder easily via the Anki “Tools” menu. How it Works (The Non-Technical Version)

Think of it like a diligent librarian comparing two sets of books (your Anki collection and your Obsidian sync folder). When you click “Sync Now”:

Scan Anki: The addon looks at all your notes and decks in Anki. Scan Obsidian: It checks the designated folder in your Obsidian vault, looking at the files and special tracking info stored within them. Compare: It figures out what’s new, what’s changed, and what’s been deleted in Anki since the last sync. Update Obsidian: It then carefully: Creates any missing folders (for new decks). Creates new .md files for new notes. Updates existing .md files if the Anki note changed. Deletes .md files if the Anki note was deleted. Copies over any new images needed. Updates the index files (MOCs) to reflect the current state. Getting Started: Quick Setup Install: Install this addon into Anki like any other (in the addons21 folder). Configure: Open Anki. Go to the Tools menu -> Obsidian Sync -> Configure… Click “Browse” and select the main folder inside your Obsidian vault where you want your Anki notes to be saved (e.g., YourVault/Anki Sync). Click “Save”. First Sync: Go to Tools -> Obsidian Sync -> Sync Now! The first sync might take a little longer as it exports everything. Subsequent syncs will be much faster. Rules & Tips for Smooth Syncing ✅ Use a “Title” Field for Cloze Notes: This is highly recommended! Add a field named exactly Title to your Cloze note type in Anki. The addon will use the content of this field to create a clean, predictable filename for the corresponding Markdown file in Obsidian. (If missing, it tries to use the start of the main text field, which might be less ideal). Basic Note Filenames: For standard “Basic” notes, the filename is generated from the content of the “Front” field. Filename Cleanup: Characters in your deck names or filename source fields that aren’t allowed in filenames (like ?, /, , :, *, ”, <, >, |) will be automatically replaced with an underscore (_). Styling Stripped: Heads up! Formatting like text color or background highlights applied in Anki will be removed during the conversion to Markdown. The focus is on content structure. ⚠️ One-Way Street (Important!): This addon currently syncs FROM Anki TO Obsidian ONLY. If you edit the Markdown files directly in Obsidian, those changes WILL NOT be synced back to Anki. Furthermore, your Obsidian edits might be overwritten the next time you sync from Anki. Think of the Obsidian files as a searchable, linkable mirror or reference for your Anki notes. Dependencies: Just a reminder, it needs PyYAML and markdownify to work fully.(already present in “1162061440/vendor” folder) Use Case Example: Notes from Books / Research

This addon shines when you’re creating flashcards from source material like books, articles, or lectures.

Capture in Anki: As you read, create detailed Anki cards (especially Cloze) for key concepts, definitions, or questions. Use a “Title” field to name the card logically (e.g., “Chapter 5 - Definition of Poverty Line”). Sync to Obsidian: Run the sync. Your Anki notes appear in Obsidian, organized by deck (e.g., YourVault/Anki Sync/Book Notes/Chapter 5 - Definition of Poverty Line_1234567890.md). Contextual Review: Later, when a card pops up in Anki and you feel unsure, glance at the filename (which includes the title and Note ID). Quickly search for this filename or ID in Obsidian to instantly pull up the note and its surrounding context, links, and your additional thoughts. No more context switching or losing the thread!

Let me know if you need an even more elaborate and step-by-step demonstration of how to get this working. If things are still not clear after reading these README instructions, I will create a proper video tutorial for ya’ll.

Made with Passion by Mohd Sajeel Memon.

Enjoy bridging the gap between spaced repetition and networked thought!


Screenshots


Liên kết hỗ trợ


Reviews (8)

👍 2026-01-14

So happy I just found this!! It would really only top it if it would be connected to an Obsidian to Anki Sync so the changes I make in Obsidian also appear in Anki and are not overwritten. Works great!

👍 2025-12-07

Tysm!!

👍 2025-06-05

it is difficult to sync a strong folder from Anki , it is loading and just loading cache i think it’s only suitabe for Basic and Cloze type note right? Comment from author No, I synced 4000 cards with this and faced no issues.

Do this: sync deck by deck. Since the addon uses a differential mechanism, it only syncs the updates. How?

Sync all your decks to Obsidian (let’s suppose 10). Go to your vault location, for e.g., c:/users/obsidian/vault (delete 8-9 of them). Open Obsidian, and let it ind

👍 2025-05-18

I’ve literally been looking for this add-on for years, ever since Obsidian came out. I finally found what I was looking for. I’m so grateful, thank you so much. Comment from author Glad it was useful for ya!

👍 2025-05-09

Good Addon for Exporting the Deck

👍 2025-05-02

is there a recommended way to convert () to $$ in the md file? Comment from author very easy just do ctrl + f / ctrl + shift + f in obsidian.

enter () —> in the drop down (replace field), enter: $$

click apply to all.

👍 2025-04-30

Shouldn’t this be other way around? Make detailed notes in Obsidian then make their Anki cards? or it does that too? Comment from author an Add-on with that feature already exists; the purpose of this addon is different. https://www.reddit.com/r/Anki/s/bTfPXXbqAc Check this Reddit post + comments and my replies for common FAQs, too lazy to type again :P

👍 2025-04-29

Good. I like it.