eyeinsky / org-anki

Sync org notes to Anki via AnkiConnect
BSD 3-Clause "New" or "Revised" License
180 stars 28 forks source link

Remove unresolved links and create flash card. #104

Open fkgruber opened 5 months ago

fkgruber commented 5 months ago

Hi I'm using org-anki to make flashcards from my org-roam notes. However, if there is an org-roam link within, it fails to create the card with errors like: Unable to resolve link: "79AED482-6A0C-4F5D-AF6A-044AA5F345DE"

It would be better if it still created the card and just removed any unresolved link. Just leave the text.

I don't want to remove the link in my notes since this is the whole point of org-roam: to connect notes together. But still would like to generate the flashcard.

thanks FKG

ATizK commented 4 months ago

Hi,

As a temporary solution, I found out that opening the corresponding note in another buffer allowed me to create the card, but with an unopenable link (i.e. the link appears as a hyperlink in Anki, but it leads nowhere.).

(So now, I'm also wondering if these links could somehow be used by org-protocol, or open-org-note to open the corresponding buffer in emacs.)

eyeinsky commented 4 months ago

@fkgruber What does the link look like in the raw .org file?