summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-17 11:14:04 +0200
committerThanos Apollo <[email protected]>2024-02-17 11:14:57 +0200
commit84f3fc35e2b17473571beb37a62174554b40257f (patch)
tree29743424536513ed4afc523db4389580e3597512 /gnosis.el
parent855173d0a3b3dd77e3d48a0f271e71304a0ea9ca (diff)
[fix] Change symbols to strings for ido-completing-read
Change gnosis-note-types & gnosis-edit-note values to strings to work with ido-completing-read gnosis-note-types need to be strings to work with ido-completing-read
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 6f47412..ada6e8e 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -116,7 +116,7 @@ to \"push\" will execute the command 'git push'."
(defconst gnosis-db-version 1
"Gnosis database version.")
-(defvar gnosis-note-types '(MCQ Cloze Basic Double y-or-n)
+(defvar gnosis-note-types '("MCQ" "Cloze" "Basic" "Double" "y-or-n")
"Gnosis available note types.")
;;; Faces
@@ -1080,7 +1080,7 @@ NOTES: List of note ids"
(defun gnosis-edit-note (id)
"Edit note with value of id ID."
- (pcase (funcall gnosis-completing-read-function "Edit: " '(contents ef) nil t)
+ (pcase (funcall gnosis-completing-read-function "Edit: " '("contents" "ef") nil t)
("contents" (gnosis-edit-note-contents id))
("ef" (gnosis-edit-ef id))
(_ (message "No such value."))))