diff options
author | Thanos Apollo <[email protected]> | 2024-03-08 08:17:54 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-03-08 08:33:08 +0200 |
commit | b9a969a50ff6bcd54f5cf38469bea301e7429fef (patch) | |
tree | fc2f0da20a51cf58d3a327fd31fd13472cd139f8 | |
parent | e5f5f6db38cc51c798bd9cb9a70da6df34bcfa4d (diff) |
gnosis-cloze-guidance: Rewrite as a cons
-rw-r--r-- | gnosis.el | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |