From e0054062ef219634c7944c09db8cd138584e380c Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 20 Feb 2024 13:30:55 +0200 Subject: Add gnosis-dashboard-edit-note --- gnosis.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gnosis.el') diff --git a/gnosis.el b/gnosis.el index 006b4c2..b20c5e5 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1373,6 +1373,13 @@ review." (cl-loop for id from 1 to max-id collect (list (number-to-string id) (vconcat (gnosis-dashboard-output-note id)))))) +(defun gnosis-dashboard-edit-note () + "Get note id from tabulated list and edit it." + (interactive) + (let ((id (tabulated-list-get-id))) + (gnosis-edit-note (string-to-number id)) + (message "Editing note with id: %s" id))) + (defun gnosis-db-init () "Create gnosis essential directories & database." (unless (length= (emacsql gnosis-db [:select name :from sqlite-master :where (= type table)]) 6) -- cgit v1.2.3