diff options
author | Thanos Apollo <[email protected]> | 2024-08-03 18:46:53 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-08-03 18:46:53 +0300 |
commit | e5cd26d3020b3b8ca1957137f2fd4d3de1565703 (patch) | |
tree | 9f1be136774dba2c3165271e16eb70fbb7629057 /gnosis-dashboard.el | |
parent | cd8f3d5a382e1c7b72f51255408a1a4d32dcf907 (diff) |
New function: Add dashboard-edit-note.
* Edit note at point inside dashbaord tabulated list.
Diffstat (limited to 'gnosis-dashboard.el')
-rw-r--r-- | gnosis-dashboard.el | 6 |
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.") |