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
177 stars 24 forks source link

Feature request: Watch folder(s) #328

Open kvn1351 opened 2 years ago

kvn1351 commented 2 years ago

It would be very cool if we could add directories where PDFs and ePubs would automatically get added to the library.

Perhaps even with tags according to the directory tree.

What do you think?

My personal use case would be to have a cloud-synced folder with notes that get annotated on a Tablet during my lectures. And then they'd end up in Anki right away :)

fonol commented 2 years ago

I actually once did something similar, which still exists in the code, but I never advertised it. See line 51-53 in src/index/indexin.py > build_index(). It was only for markdown files though, but besides that, it pretty much worked like you described (even with the folders as tags). I happily accept any PRs, but at the moment, I don't have time to add bigger features, sorry.

kvn1351 commented 2 years ago

Oh, cool :) I'll definitely play a bit with that.

I totally understand by the way. I'm in the same boat. I'll make a PR this summer perhaps :)