summaryrefslogtreecommitdiff
path: root/gnosis-dashboard.el
diff options
context:
space:
mode:
Diffstat (limited to 'gnosis-dashboard.el')
-rw-r--r--gnosis-dashboard.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el
index 528c570..a2ec5ce 100644
--- a/gnosis-dashboard.el
+++ b/gnosis-dashboard.el
@@ -200,6 +200,12 @@ Optionally, use when using multiple months."
else
collect (replace-regexp-in-string "\n" " " (format "%s" item))))
+(defun gnosis-dashboard-edit-note (&optional id)
+ "Edit note with ID."
+ (interactive)
+ (let ((id (or id (string-to-number (tabulated-list-get-id)))))
+ (gnosis-edit-note id)))
+
(defun gnosis-dashboard-output-notes (note-ids)
"Return NOTE-IDS contents on gnosis dashboard."
(cl-assert (listp note-ids) t "`note-ids' must be a list of note ids.")