fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
179 stars 24 forks source link

Add and open external files #181

Closed p4nix closed 3 years ago

p4nix commented 3 years ago

This pull request adds a button in the user interface to add external files.

This way, SIAC can be used to schedule tasks which are not on a PDF or markdown. For instance, I can now add a SIAC note which opens my favourite text editor with the SIAC documentation file ;) But it is also handy for adding mp4s of lectures and the like.

In the SIAC add-on itself, it will show the according markdown text, together with a button to open the file again. Perhaps it might be wise to add a dialog which asks the user whether or not the external file is really wished to be seen. Currently, it is automatically opened upon viewing the note.

Also, I think I've fixed a small bug which would enter the Source string even when the note was closed, but I am not quite sure.

May resolve #130