I organize a technical user group and as part of that I use org-mode to schedule the same task tree every month so I remember to do everything for our meetings (food, speakers, projector, etc.) This, to me, sounds like a perfect use case for a capture template. What I'd like to do is specify an event name and date and have the rest of the tasks automatically calculated based on that. Here's the template I have so far (simplified a bit to show what I want to do):
("m" "Meetup" (file+headline "~/org/STLPython.org" "events")
"** %^{Event}\n%^{Date}t\n*** Send a reminder to the group\nSCHEDULED: <%<%^{Date}t -5d>>"))
Ideally, I'd get this output, after specifying "Event" and "Date" once each:
** Documenting with Sphinx: Beyond Quickstart
<2015-05-05 Tue>
*** Send a reminder to the group
SCHEDULED: <2015-05-30 Thu>
Instead, I get this output, and I have to specify "Date" twice:
** Documenting with Sphinx: Beyond Quickstart
<2015-05-05 Tue>
*** Send a reminder to the group
Scheduled: <<2015-05-05 Tue> -5d>
So I guess I have two questions:
- how can I "reuse" an already captured variable?
- how can I modify the date? I saw an answer using
%(...)
and now can't find it again, and at any rate it didn't seem to accept arguments.