emacs-orgmode
[Top][All Lists]
Advanced

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

[PATCH] function and symbol for headline and olp for org-capture-templat


From: Nafiz Islam
Subject: [PATCH] function and symbol for headline and olp for org-capture-templates
Date: Mon, 13 May 2024 18:53:52 -0400

Dear All, This patch adds the option to provide function and symbol for headline and olp for org-capture-templates. By that, I mean you can set the org-capture-templates in the following manner: (org-capture-templates `(("t" "Todo" entry (file+headline ,file (lambda () "A")) "** H1 %?"))) (org-capture-templates `(("t" "Todo" entry (file+headline ,file test-org-capture/entry/headline) "** H1 %?"))) Where `test-org-capture/entry/headline' is a variable/symbol. (org-capture-templates `(("t" "Todo" entry (file+olp ,file (lambda () '("A" "B"))) "* H1 %?"))) (org-capture-templates `(("t" "Todo" entry (file+olp ,file test-org-capture/entry/file+olp) "* H1 %?"))) Where `test-org-capture/entry/file+olp' is a variable/symbol. I also added a few more unit tests for the targets `file+olp' and `file+olp+datetree' to verify my new features and existing features.

Attachment: 0001-function-and-symbol-for-headline-and-olp-for-org-capture-templates.patch
Description: Text Data


reply via email to

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