summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnosis.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index d054a28..e17fb7d 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -130,11 +130,11 @@ When nil, the image will be displayed at its original size."
"Hint input from previously added note.")
(defvar gnosis-cloze-guidance
- "Cloze questions are formatted like this:\n
+ '("Cloze questions are formatted like this:\n
{c1:Cyproheptadine} is a(n) {c2:5-HT2} receptor antagonist used to treat {c2:serotonin syndrome}
- For each `cX`-tag there will be created a cloze type note, the above
- example creates 2 cloze type notes."
+ example creates 2 cloze type notes.)" . "")
"Guidance for cloze note type.")
(defvar gnosis-mcq-guidance
@@ -728,7 +728,8 @@ See `gnosis-add-note--cloze' for more reference."
(let ((deck (gnosis--get-deck-name)))
(while (y-or-n-p (format "Add note of type `cloze' to `%s' deck? " deck))
(gnosis-add-note--cloze :deck deck
- :note (read-string-from-buffer gnosis-cloze-guidance "")
+ :note (read-string-from-buffer (or (car gnosis-cloze-guidance) "")
+ (or (cdr gnosis-cloze-guidance) ""))
:hint (gnosis-hint-prompt gnosis-previous-note-hint)
:extra (read-string-from-buffer "Extra" "")
:images (gnosis-select-images)