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

Feature suggestion: Update Fields and deck when changing pdf #76

Open rober-m opened 4 years ago

rober-m commented 4 years ago

This is a feature like #54 but more complicated. I use frozen fields add-on with a "Source" field on all my cards, but I find myself doing the same thing every time I change the PDF I'm working on:

  1. Click the book-like icon to change the pdf.
  2. According to the PDF, I change the Deck to add notes.
  3. I paste the name of the PDF in the "source" field and add the corresponding tags.
  4. Start reading.

Fortunately, I only use two kind of notes, so I rarely change them. Although, that could also be part of another person ritual.

Suggested Solution: When clicking the book-like button and the PDF changes, also does the deck (predefined by the user for that PDF), the Tags of the PDF are added to the "Tags" field of Anki, and the Name of the PDF is added to a previously specified field (i.e. "Souce" field) or the "Tags" field ( #54 ).

image

What do you think? I'm a new user but already loving the add-on. Hope I can contribute sometime in the future.

fonol commented 4 years ago

Hi, in general, I am in favor of shortening workflows, so I like the idea! A cave-at I see though: It is difficult to say if the text should be appended to the Source or Tag fields or completely replace them. Imagine you are opening different pdfs shortly after each other, because you are undecided what to read. If the source/tags were appended each time, you would have a mess when finally staying on an opened pdf. If they would be replaced, what if you already had manually entered some text in the Tags or Source field before. How would the add-on know if that's from you or if it was automatically inserted before and can be replaced? Complicated.

rober-m commented 4 years ago

I think it should replace the text. If you specify all the tags you want for your notes on the PDF tags, you are all set. And if you added a tag manually because of an special occasion or specific subject, it's very unlikely that you need it for the next PDF.

fonol commented 4 years ago

You are probably right. I will put the feature on my todo list! Edit: Auto filling tags and defining fields to fill with the pdf title is added. It is in the develop branch though, which I won't release until 2.1.24 hits, so you may have to wait until then.

rober-m commented 4 years ago

Amazing! Thank you very much!