linanwx / aosr

Aosr is Another Obsidian plugin for Spaced Repetition.
Other
68 stars 7 forks source link

support to open links #15

Closed imeed166 closed 1 year ago

imeed166 commented 1 year ago

Hi, in my response in the flashcard, I put links to local files, is it possible to allow the custom view of the plugin to open such links ? thank you.

linanwx commented 1 year ago

This is a great proposal. I have already implemented this feature locally. I will release it later.

linanwx commented 1 year ago

I have just released version 1.0.18, which now correctly displays clickable links to open files in the review interface. I have tested two formats, and they both work properly:

![[filename]] [[filename]]

If you have any further questions or concerns, please feel free to let me know, and I'll be happy to assist you.

imeed166 commented 1 year ago

Okay so I tried it, it opens the links, but when I use this format [[filename#page=number]] it doesn't go to the right page

linanwx commented 1 year ago

I'm sorry to hear that. Handling embedded links and elements in custom views within Obsidian software has always been a challenging task. Let me see if there are any other methods available to resolve this issue.

linanwx commented 1 year ago

After discussing with GPT-4 about how the kanban plugin enables the correct opening and page navigation of embedded PDF files, I've found a solution and implemented this feature. I've verified that the format [[filename#page=number]] can now navigate to the correct page, and I've released version 1.0.19 with this update. You can test to see if it works properly. If there are any issues, please feel free to reach out to me.

imeed166 commented 1 year ago

It works as intended, thank you.