From b9a969a50ff6bcd54f5cf38469bea301e7429fef Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 8 Mar 2024 08:17:54 +0200 Subject: gnosis-cloze-guidance: Rewrite as a cons --- gnosis.el | 7 ++++--- 1 file 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) -- cgit v1.2.3