From e5cd26d3020b3b8ca1957137f2fd4d3de1565703 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 3 Aug 2024 18:46:53 +0300 Subject: New function: Add dashboard-edit-note. * Edit note at point inside dashbaord tabulated list. --- gnosis-dashboard.el | 6 ++++++ 1 file changed, 6 insertions(+) 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.") -- cgit v1.2.3