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

Selecting text + pressing a button or a key shortcut to add basic cards #208

Open paraoxy opened 3 years ago

paraoxy commented 3 years ago

Hi. Thanks for the amazing features in this addon, but can you add a feature where you can highligh text in a pdf and then press a button or a key shortcut where you can add this text to the front of a card or the back, just the selected text with no algorithm for looking for a sentence and where that sentence ends, only the selected text, and maybe add a small setting if we desire to send it to front or back of card (default = back).

I know that a similar feature exists as cloze cards, but the problems in using it for my "basic cards" purpose is that:

1- The way generating clozes works is by looking for a sentence, and most of my PDF files text(lecturer slides) isn't organized in sentences like those in textbooks, mostly they're disorganized text (bullet points) with no fullstops and so , hence the text generated will be messed up either because of containing extra text from the slide, or probably no text at all. ( i don't think so this is a bug, it's probably because your addon is finally compatible with organized texts where it's capable of recognizing sentences) 2- it will take time for to remove the cloze format for every card, for the user to use it in basic card type.

hope so it's a feature that's easy & fast to add. Can you please consider adding it in the next update? it will save a lot of time for me and for other users.

Thanks

fonol commented 3 years ago

Hi, in principle I would find such a feature useful too, and I wanted to add it already a long time ago, but what kept me from adding it was that the add-on cannot know which field it should send the text to by default. People use totally different note types, with names in different languages.

paraoxy commented 3 years ago

The 2nd solution seems good IMO