diff options
author | Thanos Apollo <[email protected]> | 2024-08-03 18:58:22 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-08-03 18:58:22 +0300 |
commit | 2b58101fdac47d879a0dd7650739169063cbc744 (patch) | |
tree | f8ad4f0b6c111b858686c058f1c9226137cc1f44 /gnosis-dashboard.el | |
parent | 5d6c8d996d1e700c4f2476f96b726a80de7421b8 (diff) |
New function: Add dashboard-tag-view-notes.
* Output all notes for tag in dashboard.
Diffstat (limited to 'gnosis-dashboard.el')
-rw-r--r-- | gnosis-dashboard.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el index cab77a1..5b9469e 100644 --- a/gnosis-dashboard.el +++ b/gnosis-dashboard.el @@ -287,6 +287,12 @@ Optionally, use when using multiple months." (new-tags (cl-substitute new-tag tag tags :test #'string-equal))) (gnosis-update 'notes `(= tags ',new-tags) `(= id ,note)))))) +(defun gnosis-dashboard-tag-view-notes (&optional tag) + "View notes for TAG." + (interactive) + (let ((tag (or tag (tabulated-list-get-id)))) + (gnosis-dashboard-output-notes (gnosis-get-tag-notes tag)))) + (defun gnosis-dashboard-output-deck (id) "Output contents from deck with ID, formatted for gnosis dashboard." (cl-loop for item in (append (gnosis-select |