diff options
author | Leon Rische <leon.rische@me.com> | 2020-04-12 00:07:47 +0200 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-04-12 00:07:47 +0200 |
commit | f8a90ccb92cf91cde645a609827750d70bc12df8 (patch) | |
tree | 3adac28c2c0dce4954c52091f489f0b4aa2b5b42 /doc | |
parent | e519de46601d71c771f570cec430760c2039fe11 (diff) |
Document text-input card type
Diffstat (limited to 'doc')
-rw-r--r-- | doc/card_types.org | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/doc/card_types.org b/doc/card_types.org index e39fb6e..aae60e8 100644 --- a/doc/card_types.org +++ b/doc/card_types.org @@ -7,20 +7,29 @@ then the user is asked to rate the review performance. Positions: =front= * Text-Input Cards -On review, the user is asked to type in a string which is then -compared to the one stored in the ~:ANSWER:~ property of the card. +If the card has a "Back" heading, the first line of its contents is +considered as the expected answer. -*Currently text-input cards are treated the same as normal cards.* +If the card is compact (has no back heading), the first line of its +main content is used instead. -Positions: =front= -** TODO Implement review / flip function -:PROPERTIES: -:ID: 7dc74250-067b-4dfd-9665-8a2e51ac95bd -:END: -1. Prompt for user input -2. Compare to stored answer, show diff +This allows adding an e.g. explanation to the card. + +Answers can be emphasized (e.g. ~foo~). In that case, only the text +between the emphasis markers is compared to the user input. + +On reviewing the card, the users are prompted to enter their answer, +which is then compared to the expected answer. -Problem: how to show diff in hydra? +The expected answer is overlayed with "<got> (expected: <expected>)", +coloring correct parts in green and incorrect parts in red. + +If the provided answer is shorter than the expected one, a sequence of +=-= (colored in red) is prepended / appended to it. + +This filler character can be customized via ~org-fc-diff-missing-char~. + +Positions: =front= * Double Cards Similar to normal cards, but reviewed both in the "Front -> Back" direction and in the "Back -> Front" direction. |