如何将ANKI抽认卡数据库与本地文件同步?

发布于 2025-02-11 00:38:20 字数 475 浏览 2 评论 0原文

我想拥有一个由Cron或Anki背景作业运行的脚本,该脚本会自动读取包含我所有的抽认卡的文件(例如CSV,TSV),并在ANKI中更新ANKI中的FlashCard数据库,以便我不必手动导入我的抽认卡每周1000次。

有什么想法可以实现吗?


我遇到的一些有趣的链接,包括从答案中,可能会引起解决方案的领先:

  • https:// https:// github 。
  • ​a href =“ https://github.com/towercity/anki-cli” rel =“ nofollow noreferrer”> https://github.com/towercity/towercity/anki-cli

I would like to have a script ran by cron or an anki background job that will automatically read in a file (e.g. csv, tsv) containing all my flashcards and update the flashcard database in anki automatically so that i don't have to manually import my flashcards 1000 times a week.

any have any ideas how this can be achieved ?


Some interesting links I've came across, including from answers, that might provide a lead towards solutions:

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我家小可爱 2025-02-18 00:38:21

到目前为止,最强大的方法是将您的收藏放在git下,并使用 ki 表现得像远程存储库,因此很容易同步。唯一的约束是您收藏的格式。每张卡都保存为一个文件,并且没有真正的方法。

The most robust approach there is so far is to have your collection under git, and use Ki to make Anki behave like a remote repository, so it's very easy to synchronise. The only constraint is the format of your collection. Each card is kept as a single file, and there is no real way around this.

迎风吟唱 2025-02-18 00:38:21

我是Ki的维护者,您链接的工具之一!我非常感谢大喊@blackbeans。

很难为您提供完美的建议而没有有关您的工作流程的更多详细信息,但是在我看来,您在表格文件中对您的笔记有真相,并且在您进行编辑时,您将这些文件导入了ANKI或添加了新笔记。

如果是这种情况,Ki可能是您想要的。正如@BlackBeans所提到的那样,此工具使您可以将ANKI注释转换为Markdown文件,更一般而言,将数据从收藏库移动到Git存储库,然后将其移动。

基本上,如果您在表格文件中获得的内容的原因为(1),因为您想版本,(2),因为您想使用外部编辑器或(3),因为您的内容是通过编程性生成的,然后您可能会从使用Ki中获得一些用途。

随意打开问题详细描述您的用例。如果您认为这会有所帮助,我想为您提供一些良好工作流程的支持。目前,我需要更多的用户反馈,因此您也可以帮助我!

I'm the maintainer of ki, one of the tools you linked! I really appreciate the shout-out @BlackBeans.

It's hard to give you perfect advice without more details about your workflow, but it sounds to me like you've got the source-of-truth for your notes in tabular files, and you import these files into Anki when you've made edits or added new notes.

If this is the case, ki may be what you're looking for. As @BlackBeans mentioned, this tool allows you to convert Anki notes into markdown files, and more generally, handles moving your data from your collection to a git repository, and back.

Basically, if the reason why you've got stuff in tabular files is (1) because you want to version it, (2) because you want to use an external editor, or (3) because your content is generated programmatically, then you might gain some use from using ki.

Feel free to open an issue describing your use case in detail. I'd love to give you some support in figuring out a good workflow if you think it would be helpful. I am in need of more user feedback at the moment, so you'd be helping me out, too!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文