Use calendar title in the title of new notes created with templates

Is there a way to include the title of the calendar event in the title of the note when creating a new note from a calendar event using a template? I have a set of templates for new notes and I use \date to automatically include the date into the note title. But it would be really very useful if, when creating a note from a calendar event, I was able to pull in the name of the calendar event as part of the note title. So, I think what I am asking for is for the note title in the template to ideally read (as an example):

\date(yyy-MM-dd) : \caltitle

I couldn’t find a way of doing this, so maybe this functionality is missing, or I have missed it. If it isn’t avaialble, maybe this is something that could be considered for a future Agenda release (especially as the link with calendar events seems to be the USP that is leveraged for Agenda)?

It seems that the titles of the calendar events are already read in as they are displayed on the RHS of the Agenda window (on Mac Desktop) so I’d imagine it should be possible to extract the title of the meeting for use in templates. I note that the calendar event title does get added to the title of notes when created directly from events, so it should be able to pass that event title to a template via a variable?

Well, I imagine that it’s possible, but not being a software engineer, I have no idea whether this would be simple or not to implement!

Cheers,
Antonio

Good news, this already exists. The placeholder you are after is \event-title, so your example would be:

\date(yyyy-MM-dd) : \event-title

There are a few more event placeholders you might find useful too, like \event-date(start: short), \event-notes(location) and \event-notes(attendees).

One thing that trips people up: the event placeholders only fill in when you create the note from the event itself. If you make a note from a template first and link it to the event afterwards, the placeholders will already have been resolved and stay empty. So start from the event in the calendar and choose to make a new note from your template there.

There is a full list of what you can use in templates here:

Hope that helps!

Woo hoo!! Thank you - I didn’t spot that!!

Cheers,
Antonio

Glad that sorted it! Enjoy the templates.