I would like to be able to select some text from a note, and create a new event for the Full Calendar plugin, with the user prompted for the “scheduled” date/time.
It seems like this would be possible using a QuickAdd “capture” action. The idea is that I would like to select some text in a note, trigger the QuickAdd capture which will:
- Prompt the user (me!) for a “Scheduled” date and time.
- Create a new note in the designated folder with an appropriate filename.
- Add the YAML metadata front matter that includes the event
title
,date
, andstartTime
fields populated from the information the user entered, while theendTime
defautls tostartTime
+ 1 hour.
Things I have tried
Based on going through the documentation of QuickAdd etc., I came up with the following “Capture”
- File Name:
calendar/{{DATE}} - {{VALUE}}
- Create file with given template:
---
title: {{VALUE}}
allDay: false
date: {{VDATE:scheduled, YYYY-MM-DD HH:mm}}
startTime: {{VDATE:scheduled}}
endTime: {{VDATE:scheduled + 1hr}}
completed: null
---
The problem is that the second and third fields (startTime
and endTime
) do not get populated. They should show just the time and not the date.
Even better would be a way to use the user-entered date as the filename date rather than just {{DATE}}
which is the creation date.
Does anyone have any advice?