summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-28 01:58:29 +0200
committerThanos Apollo <[email protected]>2024-02-28 01:58:29 +0200
commit346d30737443ff5b70d974a65d4ba1224273392a (patch)
tree0e6cbeed5635e528beab7e8961ec9df39ba074f7 /gnosis.el
parent15d32f01f7aa50742efa48c46576b903d7fc35c8 (diff)
Add gnsois-cloze-guidance
Put the value of the example/guide in a variable, this way it will be easier for experienced users to set it to nil if they find it annoying.
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/gnosis.el b/gnosis.el
index 1b0518f..3487001 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -128,6 +128,14 @@ When nil, the image will be displayed at its original size."
(defvar gnosis-previous-note-hint nil
"Hint input from previously added note.")
+(defvar gnosis-cloze-guidance
+ "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."
+ "Guidance for cloze note type.")
+
;;; Faces
(defgroup gnosis-faces nil
@@ -686,10 +694,7 @@ 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 "Cloze questions are formatted like this:\{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." "")
+ :note (read-string-from-buffer gnosis-cloze-guidance "")
:hint (gnosis-hint-prompt gnosis-previous-note-hint)
:extra (read-string-from-buffer "Extra" "")
:image (gnosis-select-image)