debanjandhar12/logseq-anki-sync

FR: if the page of the namespace has a deck/tag property, use it by default

thiswillbeyourgithub opened this issue · 0 comments

Describe the solution you'd like
When a card block has no deck:: or tags:: property, your app searches among the parents recursively until the root of the page. If none are found the default deck is used and no tags are added. I think it would be better if :

  1. if no deck:: property was found in the page, check if one is given in the page the defines the namespace of the page (if the page is in a namespace).
  2. search for tags:: properties also in the page of the namespace and add it to the card.

Example:

  • A block role of the mitochondria ? :-> the mitochondria is the powerhouse of the cell in the page unversity___freshman___biology___cell_functions
  • the page university_freshman___biology could contain properties deck:: biology and tags:: biology and they would be taken into account for blocks in cell functions.
    This can seem useless but there are cases where you create many pages in a namespace and having to specify those tags and deck over and over seems silly.

Describe how it will help your workflow
It would make it easier to add default tags and deck per namespace.

Describe alternatives you've considered
Adding those properties my self each and every time.