jdlorimer / incremental-reading

Anki add-on providing incremental reading features
https://ankiweb.net/shared/info/935264945
ISC License
216 stars 38 forks source link

Suggestions: copying sources and handling titles #44

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi luoliyan! First, thanks for your work. Incremental reading is critical for me.

Here are a few suggestions:

  1. When creating a card out of a portion of text, automatically copying the source field into the extra field (cloze type), or back field (basic type, whatever the field the text is entered into)
  2. Having to make up a title for every extract of text is annoying, at least for me. Titles could be pre-written on the (ideally customizable) model: title of source note.n where n equals 1 if first extract etc. Other possible syntax: title of source note ex ex ex... But several extracts will have the same title. Other possible syntax: title of source note (then the user might or might not add something at the end of this title to describe the extract). This title suggestion should appear already selected so as to be changed easily by the user.
  3. In the organizer, showing the first characters of the note as well as the title.
  4. If 3. is implemented, titles can be made optional. The organizer would show either the title plus the first characters, or the first characters of the text if there is no title.
ghost commented 6 years ago

As for my second suggestion, either I hadn't seen it or it's because I've upgraded to Anki 2.1.0beta27 and version 4.7.14 since then, but there's already a checkbox allowing to copy titles on extraction. Sorry for that.

ghost commented 6 years ago

However, when I use the "copy titles" function on extraction, I get a message telling me that the first field is empty, even though it isn't: bug ir addon 2

I have to click on the title field to be able to save the extracted card.

I'm using Ubuntu 16.04, and no other add-on.

jdlorimer commented 6 years ago

I've got Ubuntu on one of my laptops at the moment. I'll see if I can track down that bug.

Thanks for the other suggestions. I definitely want to work on some of that.

I'll keep you updated.

ghost commented 6 years ago

Update: I've already implemented (1) in this commit. As for the "The first field is empty" bug, I've also fixed it in this commit (by setting the focus to the first field), but it seems like the true origin of the bug is Anki not having foreseen this way of adding content to first fields!