Add a recently updated section

This commit is contained in:
Correl Roush 2024-02-22 16:03:08 -05:00
parent 8fdcf60c7b
commit 53ae418c30
1 changed files with 18 additions and 0 deletions

View File

@ -95,3 +95,21 @@ A collection of entry points to various interests and ideas.
- [[id:a54fc4a6-4496-4f99-9c9d-c85481b65452][The Phoenix Inquisitor]]
- [[id:5dddbae0-ddc1-4fa8-b824-113731ca9d64][Being transgender]]
- [[id:ca88b99d-cc12-4595-ba14-c567db34d3b6][OpenAPI Core]]
* Recently updated notes
#+name: recently-updated
#+begin_src emacs-lisp :results list :exports results :eval export
(seq-map
(lambda (row)
(let ((id (nth 0 row))
(title (nth 1 row)))
(org-link-make-string (concat "id:" id) title)))
(org-roam-db-query
[:select [nodes:id, nodes:title]
:from nodes
:join files :on (= nodes:file files:file)
:where (= nodes:level 0)
:group-by [nodes:id, nodes.title]
:order-by files:mtime :desc
:limit 15]))
#+end_src