diff options
author | Thanos Apollo <[email protected]> | 2023-12-28 07:34:21 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-12-28 07:34:21 +0200 |
commit | 733d50b109b3e34ca96e13bec0a09e6490d92721 (patch) | |
tree | 5f4404814083da43dfa87514ec6304163700c5aa /gnosis.el | |
parent | 62d075049740e0fa1cfadc2f88e875a444c1f34c (diff) |
Rewrite gnosis-review
- Prompt user to select review sesstion type to start
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |