Obsidian_to_Anki
Obsidian_to_Anki copied to clipboard
Multiple features added
I've added the following features. My Obsidian plugin API knowledge is still limited so some of these may need to have their own settings entries but I've just implemented them as the default behaviour for the case of the link, everything else is backwards compatible and doesn't break the current way of doing things.
The features are as follows:
-
frontmatter support (takes priority over the comment tags):
- Instead of processing every file in the vault (which created a lot of false cards and littered some template files with card IDs) I added a boolean ankifiable frontmatter entry. only ankifiable files (with ankifiable: True) are scanned for cards.
- deck: deck name
- tags: file tags which are also passed on to obsidian. this may break inherited folder tags
-
IDs double as Obsidian block ids.
- new IDs are in the format (^ID\d+) Regex is modified to handle this new ID format as well as the old ones (minor draw back is that it looks weird with the comment wrapping is on (<--^ID\d+-->) so may need some setting magic or completely replace the comment option
- this new format enables direct linking to the cards from other notes (e.g. I have a note to handle flagged cards which is populated exclusively by embedded card block links which makes it very convenient to go and directly edit the cards in question without having to scroll endlessly to look for them)
-
To take full advantage of the previous feature, modified the default link to use the advanced-uri plugin link format so that cards are directly accessible from Anki.
- One caveat with this is the the vault needs to be scanned twice (first is for the cards to be added and ids generated, then on the second one the ids are added to the links in the card), for me this is a simple case of pressing Alt+A twice, and in any case the default behaviour of linking only to the page still works as previously
Can you release a obsidian plug-in style, easy to install from brat, big guy @cpt-n3m0
See your magic obsidian to anki plugin feeling very wow, relatively speaking, your magic version of the feature is currently very perfect, but obsidian to anki is obsidian to anki, and anki through the advanced url back link this is very good, However, if you can link through the noteid of anki card, it is better. There is a plug-in called power search, which creates a link to facilitate obsidian to go directly to a certain card, but it has two disadvantages: (1) Developers stop or pause development. (2) Search by lines, which will make the results endless. Instead, I think you should search by a word that you mouse over, so that the results are exhausted. Look at your plug-in think you are definitely enough development ability, and I do not programming, I beg the big boss you can change the magic magic change, its code is far less than obsidian to anki, and it is obsidian can accurately reach anki the only plug-in, thank you https://github.com/aviral-batra/obsidian-power-search @cpt-n3m0
Can you rebase your PR and update the Readme.MD with some description ?