From 3a156f80a897408a72e3e291e9262c3b2adaf844 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 3 Aug 2024 19:11:48 +0300 Subject: New function: dashboard-unmark-all. * Unmark all selected notes. --- gnosis-dashboard.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el index 848f37f..3b1a17e 100644 --- a/gnosis-dashboard.el +++ b/gnosis-dashboard.el @@ -459,6 +459,14 @@ DASHBOARD-TYPE: either 'Notes' or 'Decks' to display the respective dashboard." (message "No entry at point")) (message "Not in a tabulated-list-mode")))) +(defun gnosis-dashboard-unmark-all () + "Unmark all items in the tabulated-list." + (interactive) + (let ((inhibit-read-only t)) + (setq gnosis-dashboard--selected-ids nil) + (remove-overlays nil nil 'gnosis-mark t) + (message "All items unmarked"))) + (transient-define-prefix gnosis-dashboard-menu () "Transient buffer for gnosis dashboard interactions." [["Actions" -- cgit v1.2.3