summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-22 14:18:23 +0200
committerThanos Apollo <[email protected]>2024-02-22 14:18:23 +0200
commit457a51e4ae98a290fed3e9240c94a52a07fa41b1 (patch)
treef13dc300b00d2f155c2c4a4016cc3e0fda0efa10 /gnosis.el
parentb374ab4f4e91f6beb6763be908bdf542e0ee3374 (diff)
[fix] double: Remove double prompt for image
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el11
1 files changed, 4 insertions, 7 deletions
diff --git a/gnosis.el b/gnosis.el
index dd5338e..92a2c76 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -574,13 +574,10 @@ Refer to `gnosis-add-note--double' for more."
(gnosis-add-note--double :deck deck
:question (read-string "Question: ")
:answer (read-string "Answer: ")
- :image (when (y-or-n-p "Add image to display during review?")
- (funcall gnosis-completing-read-function "Select image: "
- (gnosis-directory-files)))
- :hint (gnosis-hint-prompt gnosis-previous-hint)
- :extra (read-string "Extra: ")
- :image (gnosis-select-image)
- :tags (gnosis-tag-prompt)))))
+ :hint (gnosis-hint-prompt gnosis-previous-note-hint)
+ :extra (read-string-from-buffer "Extra" "")
+ :image (gnosis-select-image "Add image to display during review?")
+ :tags (gnosis-prompt-tags--split gnosis-previous-note-tags)))))
(cl-defun gnosis-add-note--y-or-n (&key deck question hint answer extra (image nil) tags (suspend 0) (second-image nil))
"Add y-or-n type note.