Anki Helper

by Dusk
5
4
3
2
1
Score: 40/100

Description

Category: 3rd Party Integrations

The Anki Helper plugin enhances the obsidian_to_anki workflow where headings serve as questions and following text as answers. It automatically inserts target deck information (to frontmatter or body with template support), adds heading evel backlinks ([[Note#Heading]]) for easy navigation during reviews and cleans unwanted characters from card titles. The plugin tidies list formatting by removing empty items and adding spacing for better Anki display. Cloze conversion transforms symmetric markers (like == or ``) into {{c1::...}} format with support for simultaneous or sequential appearance and can reverse the process.

Reviews

No reviews yet.

Stats

5
stars
134
downloads
0
forks
88
days
92
days
102
days
3
total PRs
2
open PRs
0
closed PRs
1
merged PRs
0
total issues
0
open issues
0
closed issues
9
commits

RequirementsExperimental

  • obsidian_to_anki plugin

Latest Version

3 months ago

Changelog

1,增加可以将牌组名放到yaml区 2,增加繁体中文

README file from

Github

Anki Helper for Obsidian

一个与 obsidian_to_anki 配合使用的增强插件,围绕“用标题做题干、标题下文本做答案”的工作流,提供更顺手的制卡体验:自动插入牌组信息、生成标题级回链、清理标题字符、整理列表空行、快速进行 Cloze(填空)标记转换,并支持按路径控制作用范围。内置中英文设置界面与用于 obsidian_to_anki 的正则生成器。

An enhancement plugin that pairs with obsidian_to_anki for workflows where headings act as questions and following text as answers. It inserts a target deck, adds heading-level backlinks, cleans title characters, tidies list spacing, converts cloze markers, and lets you scope where it runs. Includes bilingual settings (ZH/EN) and a regexp helper for obsidian_to_anki.

功能概览 / Features

  • 目标牌组:支持写入到正文或 YAML;支持模板与 [[filename]] 变量,且可在两处同时存在时按配置自动清理另一处。
  • 标题级回链:在设定的“问答题标题级别”和“填空题标题级别”下,自动插入 [[Note#Heading]] 回链,复习时可直接回跳到卡片位置。
  • 标题清理:从卡片标题中移除指定字符(默认移除 ` < > [ ],可自定义,以空格分隔)。
  • 列表整理:删除空的列表项;在列表与后续段落之间自动插入一行(仅含空格),便于在 Anki 中更美观显示。
  • Cloze 转换:将对称标记(默认 ==,也可用 **$$ 等)转换为 {{cN::…}},支持“同时出现 (c1)”与“按序出现 (c1,c2,…)”;支持将 {{cN::…}} 还原为自定义标记。
  • 作用范围:支持全部、仅包含、排除路径三种模式,支持文件夹(以 / 结尾)与单文件精确匹配。
  • 正则助手:根据你选择的“问答题/填空题标题级别”,一键复制 obsidian_to_anki 的 Custom Regexp 语法。
  • 多语言:设置页支持中文与英文。

命令 / Commands

  • Insert Deck & Backlink:
    • 插入 TARGET DECK(若不存在);
    • 在卡片标题(两种级别)下方插入或更新回链;
    • 清理卡片标题中的指定字符;
    • 整理列表与段落的空行;
    • 仅处理当前笔记,支持按“作用范围”设置过滤文件。
  • Cloze: Convert markers → {{c1::…}}(答案同时出现)。
  • Cloze: Convert markers → {{c1::…}}, {{c2::…}}…(答案按顺序出现)。
  • Cloze: Restore {{cN::…}} → markers(将 {{cN::…}} 还原为自定义对称标记)。

提示:Cloze 转换优先在“填空题标题级别”的块内生效(从该级标题下一行到空行为止)。若选区/文本中找不到此级标题,则对整个选区或全文处理。

设置项 / Settings

  • 语言:切换中文或英文界面。
  • 卡片标题级别:
    • 问答题卡片标题级别(默认 H4)。
    • 填空题卡片标题级别(默认 H5,不应与问答题级别相同)。
    • 提供对应的 Custom Regexp 语法,点击“复制”后粘贴到 obsidian_to_anki 的设置中。
  • TARGET DECK:
    • 开关:是否自动插入 TARGET DECK
    • 写入位置:可选择写入正文(原先格式)或 YAML 区(TARGET DECK: ...)。
    • 模板:例如 [[anki背诵]]::[[filename]],其中 [[filename]] 会被替换为当前文件名作为子牌组。
  • 标题与回链:
    • 开关:是否执行标题清理与回链插入。
    • 要移除的字符:以空格分隔的字符列表,默认 ` < > [ ]
  • 列表整理:开启后删除空列表项,并在列表与段落之间自动留一行(仅含空格)。
  • Cloze 标记:为“对称标记”输入框设置你常用的标记(默认 ==)。
  • 作用范围:
    • 模式:全部文件 / 仅在指定文件夹 / 排除指定路径。
    • 语法:每行一条相对库根的路径。以 / 结尾表示文件夹前缀匹配(内部等价于 ** 通配);否则为精确文件路径。
    • 示例:
      • 仅包含:Notes/Anki/Inbox/Todo.md
      • 排除:Archive/Templates/Card.md

快速开始 / Quick Start

  1. 在 Obsidian 启用插件后,打开“Anki Helper”设置:
    • 选择界面语言;
    • 选择问答题/填空题的标题级别,并将提供的 Custom Regexp 复制到 obsidian_to_anki;
    • 根据需要配置 TARGET DECK 模板、标题清理字符、列表整理与作用范围。
  2. 在要处理的笔记中,运行命令面板里的 “Insert Deck & Backlink”。
  3. 需要挖空时,选中文本(或不选以处理全文),运行所需的 Cloze 命令。

安装 / Install

  • 本地开发/手动安装:将本项目放入你的库目录下的 .obsidian/plugins/Anki_Helper,在 Obsidian 设置中启用即可。
  • 若需构建:在项目目录执行 npm installnpm run build 生成 main.js 后再启用。

要求:Obsidian ≥ 1.5.0,仅桌面端可用。

作用范围示例 / Scope Demo

运行 node scripts/scope-demo.js 可验证某路径是否会被处理或跳过;脚本会输出每个路径是 "processed" 还是 "skipped"。(注意:该脚本仅用于开发/调试,发布到 Obsidian 插件市场时不会随插件一起分发。)

Run node scripts/scope-demo.js to check which sample paths fall inside or outside of the chosen scope and would therefore be processed or skipped.

兼容性与致谢 / Notes

  • 主要与 obsidian_to_anki 配合使用;设置页内置了该插件所需的 Custom Regexp 生成与复制按钮。
  • 标题级回链为 [[笔记名#标题]] 形式;标题清理仅作用于标题本身,不改动正文。
  • 列表整理会删除空的列表项,并在列表与后续段落之间插入一行仅含空格的占位行以优化导出显示。

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Spaced Repetition
5 years ago by Stephen Mwangi
Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian
Export to Anki
5 years ago by Pseudonium
Script to add flashcards from text/markdown files to Anki
Flashcards
5 years ago by Alex Colucci
🎴 An Anki plugin for Obsidian.md
Review
6 years ago by ryanjamurphy
Add the current note to a future daily note to remember to review it.
HiNote
a year ago by Kai
Add comments to highlighted notes, use AI for thinking, and flashcards for memory.
Influx
4 years ago by Jens M Gleditsch
An alternative backlinks plugin, which displays relevant and formatted excerpts from notes with linked mentions, based on the position of mentions in the notes' hierarchical structure (bullet level indentation).
Daily Note Outline
4 years ago by iiz
Add a custom view which shows outline of multiple daily notes with headings, links, tags and list items
Backlink Cache
3 years ago by mnaoumov
Obsidian plugin that stores backlink cache to speed up app.metadataCache.getBacklinksForFile().
Project Browser
2 years ago by Dale de Silva
AutoMOC
4 years ago by Diego Alcantara
Cloze
3 years ago by Vikki
A plugin for Obsidian which enables converting highlights, underlines, bolded texts, or any selected texts into clozes.
Aosr
4 years ago by linanwx
Aosr is Another Obsidian plugin for Spaced Repetition.
Repeat
4 years ago by Andre Perunicic
Review notes using periodic or spaced repetition.
Link Tree
3 years ago by Joshua Tazman Reinier
A sidebar foldable list of Obsidian link hierarchies.
Frontmatter Markdown Links
a year ago by mnaoumov
Obsidian Plugin that adds support for markdown links in frontmatter
Incremental Writing
5 years ago by Jamesb | Experimental Learning
An incremental writing plugin for Obsidian where you add notes and blocks to prioritized queues and review them incrementally over time, spaced repetition style.
Auto Keyword Linker
4 months ago by Daniel Rhodes
Stop manually typing [[brackets]] around recurring terms. Configure keywords with variations once, and automatically link them as you write or across your entire vault.
Anki Sync
5 years ago by debanjandhar12
Obsidian plugin to make flashcards and sync them to Anki
Recall
5 years ago by Martin Jirlow
A spaced repetition system for Obsidian!
Rich Foot
2 years ago by Justin Parker
🦶 Obsidian plugin that adds backlink/outlink tags and created/modified dates to the footer of your notes
Yanki
2 years ago by Eric Mika
An Obsidian plugin that syncs flashcards from a folder in your vault to Anki. Pure Markdown syntax. No fuss.
Flashcards LLM
3 years ago by Marco Pampaloni
Use Large Language Models (such as ChatGPT) to automatically generate flashcards from obsidian notes
Note Synchronizer
4 years ago by Songchen Tan
Synchronizes Obsidian notes to Anki in a breeze 💨️
AnkiBridge
4 years ago by JeppeKlitgaard
Yet Another Obsidian Anki Bridge.
Augmented Canvas
2 years ago by Léopold Szabatura
Supercharge your Obsidian canvas experience with AI features.
Vocabulary Cards
3 years ago by Eugene Myazin
An easy way to display vocabulary words as flashcards and as a list
Flashcard Learning
3 years ago by Gaétan Muck
Obsidian plugin. Uses flashcard system to learn things across own notes.
Auto Anki
3 years ago by ad2969
Using AI to automate card creation for Spaced Repetion in Anki
Flashcard Generator
3 years ago by ChloeDia
Obsidian Plug-in to automatically create a set of questions/answers on your notes !
Mochi Cards Exporter
5 years ago by kalbetre
Mochi Cards Exporter Plugin for Obsidian
Awesome Flashcard
4 years ago by AwesomeDog
Handy Anki integration for Obsidian.
Default query in backlinks
2 years ago by Benature
Memorization
3 years ago by Joseph Cochran
Decks
3 months ago by Xherdi Lika
An Obsidian Flashcards plugin
AnkiSync+
3 years ago by RochaG0
braincache
4 years ago by XSPGMike
braincache obsidian plugin
text2anki-openai
3 years ago by Mani Batra
Nav Link Header
2 years ago by ahts4962
Display navigation links at the top of the notes in Obsidian
Better Recall
2 years ago by FlorianWoelki
A better spaced repetition and recall plugin for Obsidian inspired by Anki.
QB Reader Parser
3 years ago by Jacob Barta
QBReader parsing for quiz bowl answerlines
Learnie
2 years ago by tankh99
Learnie is an Obsidian plugin that helps to enhance your learning with active recall and spaced repetition.
Mochi Cards Pro
3 years ago by Hayden Carpenter
Create flashcards on Mochi.cards using the API provided by Mochi's Pro subscription in Obsidian.
Hierarchical Backlinks
2 years ago by Jason Motylinski
Plugin which displays backlinks as a tree structure based on file paths
The Queue
2 years ago by Kolja Sam Pluemer
An Obsidian.md plugin randomly exposing you to your cards. Supports habits, to-dos, spaced repetition flashcards, iterative reading and more.
Backlink Full Path
a year ago by mnaoumov
Obsidian plugin that shows the backlink's full path in the backlinks panel.
Anki Integration
a year ago by Noah Boos AKA Rift
Create flashcards from your notes with a seamless interface, structuring them with metadata and syncing effortlessly via AnkiConnect.
Spaced Repetition AI
a year ago by Belinda Mo, Athena Leong
AI + Spaced Repetition Plugin for Obsidian
Spaced everything
2 years ago by Zach Mueller
Obsidian plugin to apply spaced repetition to incrementally develop your notes.
Blue Star
2 years ago by Wang Guoshi
A plugin for Obsidian that generates Anki flashcards in various ways.
Coalesce
10 months ago by Floyd
Coalesce is an Obsidian plugin that merges all your linked notes into a single, organized view for a cohesive research and writing experience.
Simple Quiz
a year ago by Ivan Kalmar
Creating simple quizzes.
Zhongwen Reader
a year ago by natipt
This is a Chinese hover dictionary and vocabulary-building plugin for ObsidianMD.
Simple Anki Sync
10 months ago by Lukas Mayr
AI-AnkiSync
a year ago by goev
OpenWords
a year ago by insile
用于英语学习中背单词与单词管理的 Obsidian 插件
Memodack
a year ago by Pavlo Kobyliatskyi
Your second language memory tool
Dictionary Lexicon
3 months ago by Alvin
Look up words and improve vocabulary by using flash card style cards.
Come Through
a year ago by mntno
An Obsidian plugin for creating and reviewing flashcards.
UnLime
10 months ago by shandyba
Obsidian Unmentioned Links toggle
Kindle Vocab
9 months ago by Truong Gia Bao
Generate the markdown version of your Vocabulary Builder in Kindle, and put it in your Obsidian Vault.