From 538a7d3a500a9a4757e44f086d225a289eb5537d Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 23 Jul 2024 18:42:28 +0300 Subject: New function: review-is-note-new-p * Check if note ID is a new note. --- gnosis.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnosis.el b/gnosis.el index 1435a3b..d3673bd 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1614,6 +1614,11 @@ If user-input is equal to CLOZE, return t." (gnosis-display-next-review id success) success)) +(defun gnosis-review-is-note-new-p (id) + "Return t if note with ID is new." + (let ((reviews (car (gnosis-select-id 'n 'review-log id)))) + (not (> reviews 0)))) + (defun gnosis-review-increment-activity-log (new? &optional date) "Increament activity log for DATE by one. -- cgit v1.2.3