From 2146a0286abf2b6434bfc25cac5707617a27f677 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 3 Aug 2024 18:59:38 +0300 Subject: Add dashboard-tags-mode with custom map. --- gnosis-dashboard.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el index 5b9469e..bb86dd0 100644 --- a/gnosis-dashboard.el +++ b/gnosis-dashboard.el @@ -293,6 +293,16 @@ Optionally, use when using multiple months." (let ((tag (or tag (tabulated-list-get-id)))) (gnosis-dashboard-output-notes (gnosis-get-tag-notes tag)))) +(defvar-keymap gnosis-dashboard-tags-mode-map + "RET" #'gnosis-dashboard-tag-view-notes + "e" #'gnosis-dashboard-rename-tag + "r" #'gnosis-dashboard-rename-tag + "g" #'gnosis-dashboard-return) + +(define-minor-mode gnosis-dashboard-tags-mode + "Mode for dashboard output of tags." + :keymap gnosis-dashboard-tags-mode-map) + (defun gnosis-dashboard-output-deck (id) "Output contents from deck with ID, formatted for gnosis dashboard." (cl-loop for item in (append (gnosis-select -- cgit v1.2.3