diff options
author | Thanos Apollo <[email protected]> | 2024-02-20 13:30:05 +0200 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-02-20 13:30:51 +0200 |
commit | de2068a23f6f60e48311b15e6829080b87aaaf9b (patch) | |
tree | 978dbde7ee40ec1dd9cc958414d92e31c58b11c1 /gnosis.el | |
parent | 6f05efdcc861d8d3a0ef374ceafe91f735da10cf (diff) |
Add gnosis-dashboard-output-notes
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1367,6 +1367,12 @@ review." else collect (prin1-to-string item))) +(defun gnosis-dashboard-output-notes () + "Return note contents for gnosis dashboard." + (let ((max-id (apply 'max (gnosis-select 'id 'notes '1=1 t)))) + (cl-loop for id from 1 to max-id collect + (list (number-to-string id) (vconcat (gnosis-dashboard-output-note id)))))) + (defun gnosis-db-init () "Create gnosis essential directories & database." (unless (length= (emacsql gnosis-db [:select name :from sqlite-master :where (= type table)]) 6) |