godfatherlg183 downloadsSpaced-repetition flashcards built from your notes, stored in their own folder - your notes stay untouched.
在 Obsidian 里从笔记生成间隔重复卡片,卡片独立存放在 vault 的 fakecard/ 文件夹,不修改你的笔记。
Spaced-repetition flashcards for Obsidian, built from your notes and stored as plain JSON in their own folder. Notes are never modified.
fakecard turns your notes into spaced-repetition flashcards inside Obsidian. Cards live as plain JSON in a fakecard/ folder in your vault; your notes are only ever read, never edited.
Features:
{{c1::...}} syntax) and image-occlusion cardsts-fsrs) with four grades.apkg): basic, cloze and image-occlusion notes plus their mediaInstall:
fakecard, or open its community directory pagemain.js, manifest.json and styles.css from Releases into <vault>/.obsidian/plugins/fakecard/, then enable the pluginQuick start:
* marker in a heading (## Ginkgo biloba *); the heading is the question and the text below it is the answer. Run Generate Q&A cards from the whole note.==highlight== becomes a cloze deletion. Run Generate cloze cards from the whole note.The settings tab follows the Obsidian language and switches between English and Chinese automatically.
Browse & filter (Browse and edit cards): search box, quick filters, table and preview. Terms are separated by spaces and every one of them has to match; - excludes a term; wrap a value in " when it contains a space. The ⌄ button in the box inserts a term for you.
| Term | Meaning |
|---|---|
deck:x / tag:x / type:qa |
deck (contains) / tag (exact) / type qa cloze image map |
is:new is:learning is:review is:relearning is:due |
FSRS state |
is:child is:paused is:graduated is:orphan |
child / suspended / graduated / source note gone |
added:7 rated:7 |
created / reviewed within N days (rated:1 = today) |
prop:due<7 prop:ivl>=21 prop:difficulty>=7 prop:reps>5 prop:lapses>0 |
due days / interval / FSRS difficulty / reviews / lapses |
front:x back:x |
one field only |
-tag:x |
exclusion |
| plain words | full text (front, back, tags, source path) |
Examples:
deck:方剂 tag:麻黄 is:due in the 方剂 deck, tagged 麻黄, due today
tag:针灸 -is:paused tagged 针灸 and not suspended
type:cloze front:桂枝 back:芍药
prop:due<7 prop:ivl>=21 due within a week, interval already 21+ days
added:7 rated:1 added this week, reviewed today
Data and privacy: cards are stored in fakecard/cards/, review logs in fakecard/reviews/, backups in fakecard/backup/. Everything is local and the plugin makes no network requests. The system clipboard is read only when you run one of the import commands that takes cards from it, and the plugin never writes to it.
The rest of this document is in Chinese.
ts-fsrs),四档评分.apkg):Basic / Cloze / 图片蒙板 + 媒体文件设置 → 第三方插件 → 浏览 → 搜索 fakecard,或直接打开社区目录页。
列表里暂时搜不到时重启一次 Obsidian:客户端会缓存插件清单,新上架的条目需要重新拉取后才会出现。
main.js、manifest.json、styles.css<vault>/.obsidian/plugins/fakecard/问答卡:标题里带标记(默认 *,可在设置改)就是一张卡,标题是问题,标题下面是答案。
## 小青龙汤 *
组成:麻黄、桂枝、芍药、细辛、干姜、炙甘草、半夏、五味子
挖空卡:一个列表块一张卡,==高亮== 变成挖空(整块默认一组)。
- 解表剂:==麻黄==、桂枝
- 主治:==外感风寒==
然后:
会先弹出预览,勾选后才写入卡片库。
命令 New card (manual) → 选类型:
| 类型 | 面板 |
|---|---|
| Q&A | 问题 / 答案两个框(随内容自适应高度) |
| Cloze | Anki 格式 {{c1::挖空}}、{{c1::挖空::注释}},New group 造 c2/c3,选中文字 Wrap |
| 图片蒙板 | 画矩形/椭圆,分组,缩放平移,键盘微调 |
插件不内置任何模型。任何工具按下面的格式输出,就能把卡片推进来:
obsidian://fakecard?data=<URL 编码的 JSON>
或命令 Import cards from clipboard (JSON)。
[
{ "type": "qa", "front": "问题", "back": "答案" },
{ "type": "cloze", "clozeText": "{{c1::挖空}} 其余文字" }
]
可选字段:sourcePath(关联笔记)、sourceText(定位片段)。==高亮== 也会自动转成挖空。
左侧 ribbon 图标打开统计界面,页面顶部一行 Statistics / Browse / Review 在三个界面之间切换(已有同名标签会直接跳过去,不会开一堆标签)。命令面板里也可以单独打开任意一个:Open statistics / Browse and edit cards / Start reviewing。
命令 Start reviewing 或统计页顶部的 Review → 主区域打开复习界面。
+ Child、↗ Source、✎ Edit作答 = (基础 + 字数 ÷ 40 × 每段秒数) × 作答系数,记忆一遍 = (基础 + 字数 ÷ 40 × 每段秒数) × 记忆系数,记忆首遍 = (基础 + 首遍额外 + 字数 ÷ 40 × 每段秒数) × 记忆系数,记忆 = 记忆一遍 × (遍数 − 1) + 记忆首遍。首遍已经算一遍,所以后面只再加「遍数 − 1」遍;记忆时间的每一遍都用记忆系数,作答系数只用于问题面的作答时间。作答系数默认 −20%(越难给得越少,防纠结),记忆系数默认 +20%(越难给得越多);字数不含链接、** / == 等标记。没有上限:长答案记三遍就是二十几分钟,照实显示作答 0:28 / 4:47,从卡片出现到揭示,只用「一遍」的作答预算,提醒别在一个词上耗太久,不计分记忆 0:05 / 17:22:从答案出现起重新计时(不接着用作答的时间),量的是记忆答案的用时;只有它超时才按步长记 Hard——每多 0.5 倍(可调)记 0.5 分(可调),1.5 倍记 0.5、2 倍记 1。只有 Again / Hard 才折算超时分:Good / Easy 即使超时也清零,避免分心时靠超时拖出分数命令 Browse and edit cards → 主区域标签:搜索框 + 快捷筛选 + 表格 + 右侧预览。
搜索语法:空格分隔多个条件,全部满足才命中(AND);- 取反;值里有空格时用 " 包起来。搜索框左侧的 ⌄ 按钮可以直接插入条件,不用背。
| 语法 | 含义 |
|---|---|
deck:方剂 / tag:麻黄 / type:qa |
牌组(包含即可)/ 标签(完全相同)/ 类型 qa cloze image map |
is:new is:learning is:review is:relearning |
FSRS 状态 |
is:due |
已到期 |
is:child is:paused is:graduated |
子卡 / 挂起父卡 / 已毕业 |
is:orphan |
来源笔记已删除 |
added:7 |
7 天内创建 |
rated:7 |
7 天内复习过(rated:1 = 今天) |
prop:due<7 prop:ivl>=21 prop:difficulty>=7 |
到期天数 / 间隔 / FSRS 难度(1–10) |
prop:reps>5 prop:lapses>0 |
复习次数 / 遗忘次数 |
front:x back:x |
只在问题 / 答案里找 |
-tag:x |
排除 |
| 普通词 | 全文(问题、答案、标签、来源路径) |
组合示例:
deck:方剂 tag:麻黄 is:due —— 方剂牌组里、带麻黄标签、今天到期tag:针灸 -is:paused —— 有针灸标签且没有被挂起type:cloze front:桂枝 back:芍药 —— 挖空卡,问题含桂枝、答案含芍药prop:due<7 prop:ivl>=21 —— 一周内到期、间隔已≥21 天added:7 rated:1 —— 一周内新建、今天复习过支持批量勾选 → 移动牌组 / 暂停 / 删除。
![[图片]] 行)编辑面板:矩形/椭圆、多遮罩组、缩放(+/-/Ctrl+滚轮)、平移、方向键微调、Ctrl+Z 撤销。保存时每组一张卡。
设置 → 考试计划 里可以同时建多个计划(一科一个),每个计划有自己的名称、剩余天数、牌组和比例:
≈ 每天 N 张,共 D 天,以及「选中的 X 张里有 Y 张排在考试之后」(超过每日上限会变红提示)fakecard/backup/exam-plan-<id>-<时间>.jsonfakecard/cards/<id>.json(纯 JSON,可手改)fakecard/decks.jsonfakecard/reviews/YYYY-MM-DD.jsonfakecard/backup/、fakecard/export/fakecard/images/全部本地,没有任何网络请求。插件不写你的笔记文件;阅读模式里的 📇 是渲染时插入的 DOM,不落盘。
| 命令 | 作用 |
|---|---|
| Generate cards from the whole note | 整篇按规则生成 |
| Generate from the selected lines | 只处理选中行 |
| New card (manual) | 手动面板 |
| Start reviewing | 复习 |
| Browse and edit cards | 浏览/筛选/编辑 |
| Open statistics | 统计 |
| Import cards from Anki (.apkg) | Anki 导入 |
| Import cards from clipboard (JSON) | 外部 JSON 导入 |
| Export all cards (JSON) | 导出 |
| Clean up orphan cards | 清理来源已删的卡 |
| Remove graduated child cards | 清理已毕业子卡 |
| Build an exam plan | 生成考试计划(多个计划时选择) |
| Make occlusion card from the image at the cursor | 光标处图片制卡 |
| 依赖 | 许可 | 用途 |
|---|---|---|
| ts-fsrs | MIT | FSRS 调度 |
| fflate | MIT | .apkg zip 解压 |
| fzstd | MIT | .apkg zstd 解压 |
| sql.js | MIT | 读取 Anki 的 SQLite |
npm install
npm run dev # 监听构建
npm run build # 类型检查 + 生产构建
把 main.js、manifest.json、styles.css 复制到 <vault>/.obsidian/plugins/fakecard/。
MIT