

anki-editor:让你通过Org-mode来创建Anki cards
source link: https://www.lujun9972.win/blog/2018/02/13/anki-editor-%E8%AE%A9%E4%BD%A0%E9%80%9A%E8%BF%87org-mode%E6%9D%A5%E5%88%9B%E5%BB%BAanki-cards/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

anki-editor:让你通过Org-mode来创建Anki cards
我是一个Anki使用者,时常要用创建一些Anki card。然而Anki的编辑功能实在太弱了,有的时候还得手写html代码,真是很不人性化啊。
直到有一天,我看到 anki-editor,它可以让你 Make Anki Cards in Org-mode
.
也就是说,它可以让你通过org来编写复杂的内容(比如表格,公式等),然后导入到Anki中生成Anki card。
它的原理是利用org-mode的html export backend将org转换成html,然后通过Anki的anki-connect插件生成新的Anki Card。
根据说明,该插件需要 curl
和 anki-connect 的支持
安装curl
sudo pacman -S --noconfirm curl
在anki上安装anki-connect
在anki中点击"工具"->"附加组件"->"获取插件..."->输入anki-connect的下载代码:2055492159,就可以了
在Emacs上安装anki-editor插件
anki-editor已经纳入MELPA中,可以通过
use-package
自动安装(use-package anki-editor :ensure t)
如果使用的是spacemacs,那么可以直接在
dotspacemacs-additional-packages
中加上anki-editor
就行了dotspacemacs-additional-packages '(request json-mode all-the-icons-dired edit-indirect anki-editor)
在使用anki-editorn之前, 你需要先打开anki,因为它需要与anki中的anki-connect通讯,获取deck和note的信息。
新建一个org文件
运行 M-x anki-editor-insert-deck
插入一个deck
可以看到anki-editor会列出当前anki上已有的那些deck,你只需要选择一个deck就会插入一个以deck为名的heading
比如我这里选择 我的声词本
, 那么就会插入一个名为 我的生词本
的heading
注意到,新生成的heading后面带了个 :deck:
的tag
对于anki-editor来说,被标记为 deck
的heading就被认为是一个deck
运行 M-x anki-editor-insert-note
插入一个note
同样的,anki-editor会列出当前anki上已有的note类型,这里我选择单词本,然后再输入note heading的名称,这个名称可以随意起
anki-editor会根据note类型中定义的域,自动插结构,每个域都是一个子heading
现在开始往里面填内容
需要说明的是: 一个note heading不一定是deck heading的直接子节点,但必须属于某一个deck heading的后代
运行 M-x anki-editor-submit
提交
就能看到Anki上新生成的card了
最后来一张官网上的动图,大家来感受下
Recommend
-
131
README.md A semi-official port of the open source Anki spaced repetition flashcard system to Android. Memorize anyth...
-
78
README.md Anki This is the development branch of Anki. For stable builds, please see https://apps.a...
-
13
Notes Overview [[Eli Dourado]] thinks through how various promising technologies could evolve over the next decade. (View Highlight)
-
35
README.md English |...
-
11
Presentation: Anki Basic 团队内分享间隔记忆系统,一种科学省时的学习方法。Download Slide 1. Wikipedia: For...
-
11
间隔记忆工具:Anki 我的 Evernote 约有 3000 条笔记,有3个大分类:医学、产品、编程。为了对抗遗忘,需要经常分享这些知识给其他人,也要隔...
-
8
Anki卡片共享CSS的方法 Anki 允许为不同的卡片类型设置不同的CSS样式,但有时我们会希望在多个卡片类型之间共享同一份样式以保证卡片展示的一致性。 由于 collection.media 目录中的文件所有卡片都能访问,因此可以将该目录作为中转中心...
-
8
Issues · ankidroid/Anki-Android · GitHub Clear current search query, filters, and sorts Author Label...
-
10
Linux 下尝试自建 Anki 服务器 2017.10.27 |
-
4
Files Permalink Latest commit message Commit time
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK