summaryrefslogtreecommitdiff
path: root/gnosis-dashboard.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-26 18:08:16 +0300
committerThanos Apollo <[email protected]>2024-07-26 18:08:16 +0300
commitffa563e6594889d58b67b29b2827530d71e4e969 (patch)
tree91f33dc241a1598beee73407fdc6f7f12bc1fc6d /gnosis-dashboard.el
parente670c16cfe25393c62f985e302eb35a73a6fb85d (diff)
Add dashboard-menu using transient.
* Transient buffer menu.
Diffstat (limited to 'gnosis-dashboard.el')
-rw-r--r--gnosis-dashboard.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el
index f031787..757c46e 100644
--- a/gnosis-dashboard.el
+++ b/gnosis-dashboard.el
@@ -320,10 +320,13 @@ DASHBOARD-TYPE: either 'Notes' or 'Decks' to display the respective dashboard."
(tabulated-list-print t)))
-(transient-define-prefix gnosis-dashboard-transient ()
+(transient-define-prefix gnosis-dashboard-menu ()
"Transient buffer for gnosis dashboard interactions."
- [["Actions" ("r" "Start Review" gnosis-review)]
- ["Dashboard" ("d" "Dashboard" gnosis--dashboard)]])
+ [["Actions"
+ ("r" "Review" gnosis-review)
+ ("a" "Add note" gnosis-add-note)]
+ ["Dashboard" ("s" "Search" gnosis-dashboard--search)]])
+
;; TODO: Create a dashboard utilizing widgets
;;;###autoload
(defun gnosis-dashboard ()
@@ -375,7 +378,7 @@ DASHBOARD-TYPE: either 'Notes' or 'Decks' to display the respective dashboard."
(widget-setup))
(pop-to-buffer-same-window buffer)
(goto-char (point-min))
- (gnosis-dashboard-transient))))
+ (gnosis-dashboard-menu))))
(provide 'gnosis-dashboard)
;;; gnosis-dashboard.el ends here