summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-12-28 07:34:21 +0200
committerThanos Apollo <[email protected]>2023-12-28 07:34:21 +0200
commit733d50b109b3e34ca96e13bec0a09e6490d92721 (patch)
tree5f4404814083da43dfa87514ec6304163700c5aa /gnosis.el
parent62d075049740e0fa1cfadc2f88e875a444c1f34c (diff)
Rewrite gnosis-review
- Prompt user to select review sesstion type to start
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index b04905f..b22144c 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -583,6 +583,17 @@ If user-input is equal to CLOZE, return t."
(when (not (y-or-n-p "Review next note?"))
(cl-return)))
finally (message "Review session finished. %d note(s) reviewed." note-count))))))
+;;;###autoload
+(defun gnosis-review ()
+ "Start gnosis review session."
+ (interactive)
+ (let ((review-type (completing-read "Review: " '("All due notes"
+ "All due notes for tag(s)"
+ "All notes for tag(s)"))))
+ (pcase review-type
+ ("All due notes" (gnosis-review-all-due-notes))
+ ("All due notes with tag(s)" (gnosis-review-due-tags))
+ ("All notes for tag(s)" (gnosis-review-all-with-tags)))))
;;; Database Schemas
;; Enable foreign_keys