From 457a51e4ae98a290fed3e9240c94a52a07fa41b1 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 22 Feb 2024 14:18:23 +0200 Subject: [fix] double: Remove double prompt for image --- gnosis.el | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'gnosis.el') 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. -- cgit v1.2.3