diff options
author | Thanos Apollo <[email protected]> | 2024-08-03 19:11:48 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-08-03 19:11:48 +0300 |
commit | 3a156f80a897408a72e3e291e9262c3b2adaf844 (patch) | |
tree | d05060bd5b03c2d6cf3c589fca9ae68cf7ff90de | |
parent | 05b2916cb9824134a9ce89d9b19c4d010aa73307 (diff) |
New function: dashboard-unmark-all.
* Unmark all selected notes.
-rw-r--r-- | gnosis-dashboard.el | 8 |
1 files changed, 8 insertions, 0 deletions
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" |