Sébastien Gendre <s...@k-7.ch> writes: > I have a directory with a few Org-mode files in it. And inside another > Org-mode file, I try to generate a table that list all the Org-mode > files of this directory. > > Each Org-mode file of this directory have a "#+TITLE", a "#+DATE" and a > "#+KEYWORDS" buffer setting, and I would to use them as column in the > created table. And to sort this table by the "#+DATE" field.
> I have looked into Org-ql dynamic bloc [2] to do that. Org-ql is an > amazing package, I love it. But, from what I understand, it only work > for searching Org-mode headings, not for searching Org-mode files like I > try to do. You are right. Org-ql only searches headings. > Any one have an idea or a suggestion ? You need to write Elisp to loop over files in the directory, open them, and then query Org mode for TITLE, DATE, and KEYWORDS. You can do it using `org-collect-keywords'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>