summaryrefslogtreecommitdiff
path: root/gnosis-dashboard.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-03 19:12:33 +0300
committerThanos Apollo <[email protected]>2024-08-03 19:12:33 +0300
commiteb62e5a0c5a360e4181feddaaf3def177089e8d7 (patch)
tree7f3f47b1644800281936e55c65220e1907f74729 /gnosis-dashboard.el
parentf97cb3bc80d08e0c39bd768091974e5cb3a28e2d (diff)
New function: Add dashboard-marked-suspend.
* Suspend all selected notes.
Diffstat (limited to 'gnosis-dashboard.el')
-rw-r--r--gnosis-dashboard.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el
index 9b6b04b..7d72abb 100644
--- a/gnosis-dashboard.el
+++ b/gnosis-dashboard.el
@@ -475,6 +475,13 @@ DASHBOARD-TYPE: either 'Notes' or 'Decks' to display the respective dashboard."
do (gnosis-delete-note (string-to-number note) t))
(gnosis-dashboard-return)))
+(defun gnosis-dashboard-marked-suspend ()
+ "Suspend marked note entries."
+ (interactive)
+ (when (y-or-n-p "Toggle SUSPEND on selected notes?")
+ (cl-loop for note in gnosis-dashboard--selected-ids
+ do (gnosis-suspend-note (string-to-number note) t))
+ (gnosis-dashboard-return)))
(transient-define-prefix gnosis-dashboard-menu ()
"Transient buffer for gnosis dashboard interactions."
[["Actions"