emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Built a list of Org-mode files with Org-ql


From: Ihor Radchenko
Subject: Re: Built a list of Org-mode files with Org-ql
Date: Wed, 17 Jul 2024 15:09:52 +0000

Sébastien Gendre <seb@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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]