From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id sDUJAsTel2ZwkwAA62LTzQ:P1 (envelope-from ) for ; Wed, 17 Jul 2024 15:09:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sDUJAsTel2ZwkwAA62LTzQ (envelope-from ) for ; Wed, 17 Jul 2024 17:09:56 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=b+N1FPom; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721228995; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wPbWmLO6QmgKLJSD7JNZ7ERaFwzHYMUg48ifp6/91aA=; b=rPA+oULfWKfNCBE8G9KBXMikeP0XDnBcF+Vp02EvvyG11Dj0BkGn7Z3WTp10sD0fhvhtMc BwHxKtUbsaHj32VfWwQTgAMCztVZs8+ng7nXEpkHS97Udc2YGfoYYxfWn641hzzxLfjMJ1 TM46r/av8ApNRIv4P1Msx4O8knElu22k39yo81qWjElfz5GLu9X39UAnfDk0twZSnO/AIE D8yDMv/DmA4XAucNQbwD5QuLgf9WatO0acpoCkXkJcWIZG3sILNG2U0aB5JDXEFxQpKwOd l71ExABk5tS9Gtu9pAYY0RMLYTCl3pgbPgNb6GO5oASxddur+20gfiDU+rmP7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721228995; a=rsa-sha256; cv=none; b=Rh++ZYzM+Uhp7rWlqvcoyqsiY9mahEgosN2mdsY/zxwsqLQ3XjKg5aBnjVOin0rYk/OOsv Oa943FZ8esmbB/j52k6E6EjgYaC7OEMDg8ADbYbW09lVhSsheK7SDjvWm4G8RoE+xZ9mJI 6oOgjSJ0E441KOHjSuXszwhOaTGFeZuAY10bcveIIW+5zkr5sW8pNvBS6oAYY4X84HQ6j/ RuHM/V4NGsaLGRFx8SnCthFixItJqxtTZ4jDjRijt/Fzi0wg0d0bkX+v94LQTLHZf5yrMK Jx4oqzzvXJelqUA9Mx5Ap6kdjGylUPmgxsTHAc6EH6OcW2u9mdXYar9kjmQuRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=b+N1FPom; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C70FF6BD12 for ; Wed, 17 Jul 2024 17:09:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sU6Gj-000182-UT; Wed, 17 Jul 2024 11:08:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sU6Ga-0000uU-2P for emacs-orgmode@gnu.org; Wed, 17 Jul 2024 11:08:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sU6GX-00047r-2W for emacs-orgmode@gnu.org; Wed, 17 Jul 2024 11:08:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 77942240104 for ; Wed, 17 Jul 2024 17:08:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1721228902; bh=wPbWmLO6QmgKLJSD7JNZ7ERaFwzHYMUg48ifp6/91aA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=b+N1FPomdZISQGP+jtSN0dt5bM9e09vM/QOufef2gi0R4FJ1gXAppBoIl+7aJRnd2 nmFP6xWMnmJoRaCYrDU8PmkOXIWLwNVKl5WH/GRROi+HttYJgN/uTP0b6706u7mRBI Xtflhno3ANojVrEL6VEBDtMr+JtiN5bddkUHMRnIiw+hgXLBNXRCttr7j2Z6CSkhPM YdLiweJcCAeqTqgDcYspTt21gS35V+5CeNI1HYzIItkOY9BPio0u4+9X2PilkE6IVm dPyocVwpb/L4x6F5e6tE2SjD1ZbP+SoGdBCL170CFbMOmgmoEbPapRRq5fhJPDC6O4 HSI/ydtlprNBQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WPK7n5vR4z9rxK; Wed, 17 Jul 2024 17:08:21 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C3=A9bastien?= Gendre Cc: "emacs-orgmode@gnu.org" Subject: Re: Built a list of Org-mode files with Org-ql In-Reply-To: <877cdkrdan.fsf@k-7.ch> References: <877cdkrdan.fsf@k-7.ch> Date: Wed, 17 Jul 2024 15:09:52 +0000 Message-ID: <87zfqg5a2n.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: C70FF6BD12 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.63 X-Spam-Score: -9.63 X-TUID: wl61NMPZgBNE S=C3=A9bastien Gendre 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=C2=A0? 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'. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at