summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-03-03 02:23:48 +0200
committerThanos Apollo <[email protected]>2024-03-03 02:23:48 +0200
commita1ea2282c0f9880fb0285e316e9a17f967e364aa (patch)
treef42fad3c22db6775ebbeb17851b38b05de63803a
parent4ef9ce6064a3c73144956c2acc25164db155c298 (diff)
Add gnosis-dashboard-edit-deck
-rw-r--r--gnosis.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index b454a5a..2238dd4 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1536,6 +1536,12 @@ name and all notes formatted as nested lists"
(gnosis-edit-note (string-to-number id))
(message "Editing note with id: %s" id)))
+(defun gnosis-dashboard-edit-deck ()
+ "Get deck id from tabulated list and edit it."
+ (interactive)
+ (let ((id (tabulated-list-get-id)))
+ (gnosis-edit-deck (string-to-number id))))
+
(defvar-keymap gnosis-dashboard-mode-map
:doc "gnosis-dashboard keymap"
"q" #'quit-window)