summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-01 12:50:10 +0200
committerThanos Apollo <[email protected]>2024-01-01 12:50:10 +0200
commite7e0ba9fcc65e047ee8a2d4a8dd1a3a6d0c55980 (patch)
tree3673465aba3a2549de8c892ae3e5e41dd44cd2f5 /gnosis.el
parent5ae6516d6087b09b08800e89b63b0fd3ebf05315 (diff)
Add gnosis-suspend-note
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 2ff1cbf..bf74424 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -271,6 +271,10 @@ Set SPLIT to t to split all input given."
(gnosis--delete 'decks `(= name ,deck))
(message "Deleted deck %s" deck))
+(defun gnosis-suspend-note (id)
+ "Suspend note with ID."
+ (gnosis-update 'review-log `(= suspend 1) `(= id ,id)))
+
(defun gnosis-suspend-deck (&optional deck)
"Suspend all note(s) with DECK id.