debanjandhar12 / logseq-anki-sync

An logseq to anki syncing plugin with superpowers - image occlusion, card direction, incremental cards, and a lot more.
GNU Affero General Public License v3.0
465 stars 34 forks source link

Namespaces only go two levels deep. #286

Open Trenton-Ruf opened 2 months ago

Trenton-Ruf commented 2 months ago

Describe the bug

When syncing to Anki, namespaces with more than 2 levels are truncated.

For example cards in Logseq under: 日本語/Beginner Intermediate/Chapter 6 Are added to Anki under: 日本語/Beginner Intermediate

Expected behavior Expected cards to be added to 日本語/Beginner Intermediate/Chapter 6 in Anki

debanjandhar12 commented 2 months ago

In Logseq terminology, for cards created on the "Chapter 6" page, the namespace is "日本語/Beginner Intermediate" and the page name is "Chapter 6". As a result, the plugin places these cards in the "日本語/Beginner Intermediate" deck. I'm open to discussion regarding this behavior and am willing to modify it if everyone believe it should be changed.

Trenton-Ruf commented 2 months ago

The way it is now if fine for general retention. The reason I wanted the full path was so I could cram for school tests in Anki. The tests are separated by chapters, so I need a way to review only relevant cards on the day of the test.

I've settled on using a page property in logseq: tags:: chapter 6 and filtering by tags on Anki. image

Having an option to add the logseq page name as an anki tag automatically would be nice, but I'm satisfied with this method. Awesome plugin btw.