emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] Re: [BUG] folding error during capture


From: Skip Collins
Subject: Re: [PATCH] Re: [BUG] folding error during capture
Date: Sun, 1 May 2022 21:36:48 -0400

> > ("n" "Note" entry
> >       (file "~/Documents/org/beorg/capture.org")
> >       "* %^{note} :note: %(org-set-property \"Created\"
> > (org-time-stamp-inactive '(16)))" :immediate-finish t)
> ...
> This is quite a hacky capture template...

I'll take that as a compliment.

The general ability to set properties during capture seems very
reasonable. It might be best to have a specific interface as an
alternative to my hack. The use of %(EXP) in capture templates is
intended to insert a string returned by the elisp EXP. I bent the
rules slightly to set the Created property. There already exists a way
to set property values in capture templates via %^{PROP|default}p, but
that results in a user prompt. Perhaps a new template construct like
%^{PROP|value}v could be introduced in order to set a property value
without a prompt. Then I could use %^{Created|%u}v in the template.



reply via email to

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