emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [FR] Support headline as a function for file+headline target for org


From: Ihor Radchenko
Subject: Re: [FR] Support headline as a function for file+headline target for org-capture-templates
Date: Thu, 02 May 2024 12:34:35 +0000

Nafiz Islam <nafiz.islam1001@gmail.com> writes:

>> May you please describe what kind of feature you want to introduce and
>> explain why it is useful for other Org mode users?
>
> The feature I want to introduce is to allow the headline parameter to be a
> function for the `file+headline' target for the `org-capture-templates'.
> The function would take a list of headlines as a parameter, and the user
> would be able to pick a headline it wants to reuse or create a new one by
> returning a string. This makes it possible, for example, to pick a headline
> dynamically based on the current time (like in my case) to add an entry, or
> the user could implement a function that prompts with existing headlines to
> choose from.

Sounds reasonable.
Such a feature would require a new function similar to
`org-capture-expand-file', but for outlines.

Would you be interested to submit a patch?

-- 
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]