Advertisement
dhniceday

Untitled

Mar 15th, 2023
849
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <%* const {getEvents} = this.app.plugins.plugins["google-calendar"].api;
  2.  
  3. const file = await tp.file.title; const events = await getEvents({ startDate: window.moment(file) });
  4.  
  5. var eventsString = await events.reduce((text, event) => text +=- [ ] ${moment(event.start.dateTime).format("HH:mm")} ${event.summary} \n, ""); eventsString = eventsString.replace(/|/g, '-'); %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement