Obsidian_to_Anki icon indicating copy to clipboard operation
Obsidian_to_Anki copied to clipboard

Anki and Obsidian hierarchical tags to be uniformly converted

Open okerivy opened this issue 4 years ago • 3 comments

Obsidian and Anki both support hierarchical tags, but their syntax is different. Hope to be able to format conversion.

There is a problem at present: In obsidan, the level label #2021/05 is still #2021/05 in anki So anki doesn't recognize this tag

For example,

Tags: #2021/05  #2021/04

In anki, the tag becomes: #2021/05,Instead, it should be 2021::05


If I write it in obsidian like this

Tags: 2021::05  2021::04

It can be transformed into hierarchical tags recognized by anki. But for obsidian, 2021::05 is just plain text, not hierarchical tags.


So I hope to be able to unify the conversion format. For example, In obsdian:

Tags: #2021/05  #2021/04

Convert to anki and become the tag format supported by anki 2021::05 2021::04

Thank you for your great work

okerivy avatar May 29 '21 17:05 okerivy

I use the "FILE TAGS" as an alternative. Somehow it works with hierarchical tags

kueykuang avatar Jul 03 '21 11:07 kueykuang

I use the "FILE TAGS" as an alternative. Somehow it works with hierarchical tags

Doesn't work that way, I guess

dummifiedme avatar Jul 07 '21 03:07 dummifiedme

Here is a temporary workaround before the dev fix this.

After installing the plugin, download and move this patch to .obsidian/plugins/obsidian-to-anki-plugin in your vault. Then open terminal in that location and execute

patch main.js delimiter_patch.patch

Reopen obsidian to see the effect.

proItheus avatar Feb 22 '23 07:02 proItheus