The system (or add-on) would need to detect the change in the cloze according to its position in the text and still transport the scheduling information from the card to the other cloze number. Of course for most users this won’t matter much, but I see it matters to you and me. In a perfect world, Anki could change the number of clozes as the note itself changes, that would be ideal, let’s say I want to add a paragraph between c4 and c5, it could be c391, which leaves the confusing organization. The suggestion here is a kind of “countermovement” leaving the first part (front) following the principle of minimal information, while the second part (back) shows all the content. The problem I see here (correct me if I’m wrong in my premise) is that Anki is designed to atomize thought into several notes, and notes (not just cards) must also be atomized. When I was experimenting with the first one you posted here, I came across exactly this problem of the number of clozes, as I had forgotten to hide a part of the text at the beginning and had the unpleasant task of needing to edit cloze by cloze until the end with the intention to keep the note organized. My hope is that we could also use a similar strategy to display rendered MathJax (and maybe Latex) as images in the editor and add some controls, to edit the underlying MathJax code. What do you think of the idea in general? A PR implementing our own undo history for the editor, which will probably be required after the Tag Editor anyway. These snapshots would be the set of editor fields (and the tag editor, see below.) and a list of offsets, indicating the caret position at the moment of the snapshot.Ģ. For this to work, we would have to make `Control+Z` trigger our own undo and make the Editor create snapshots regularly. We currently just rely on the built-in undo history of contenteditable in the Editor. The undo history does not work for this. `Range.surroundContents` is quite low level, so we need some additional logic (currently only works, if you're clozing over plain text (no other inline / block tags)) Using Control-Shift-C needs to use `Range.surroundContents` instead of `execCommand`. Copying the anki-cloze should probably copy the cleaned up version. `` will sometimes "swallow up" text positioned behind it. If the `` is the last element in the `Editable`, the caret will be invisible, if it is positioned behind itĢ. Clicking three times within the clozed text will select the entire clozed text.ĭisadvantages might include (might be able to be addressed):ġ. The cloze number is an input element now, allowing only for valid values.Ĥ. I have this add-on Fill the blanks - Multiple type:cloze support - AnkiWeb and if i create a cloze note type and change ` will entirely unwrap the clozed text from the cloze markup.ģ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |