summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-20 06:50:04 +0300
committerThanos Apollo <[email protected]>2024-07-20 06:50:04 +0300
commitbd403d64412301323f7ebe610773382fbdadb9c2 (patch)
tree176aec9138bc08c666ffcef9dee5266664f379c7 /gnosis.el
parenta494aa67f527e9f3f8fbd7064ebe0f5601af45df (diff)
review: Add gnosis-get-new-notes.
* Get new notes for review.
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 52fc45b..0e3ca1d 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1379,6 +1379,10 @@ well."
(cl-loop for note in notes
when (gnosis-review-is-due-p note)
collect note)))
+(defun gnosis-get-new-notes (notes)
+ "Get new notes from NOTES."
+ (cl-assert (listp notes) nil "Notes must be a list.")
+ (cl-intersection notes (gnosis-select 'id 'review-log '(= n 0) t)))
(defun gnosis-review-get-due-tags ()
"Return a list of due note tags."