Skip to content

Instantly share code, notes, and snippets.

@dannberg
Last active October 18, 2024 22:38
Show Gist options
  • Save dannberg/9056b89437110e62766689772437fe46 to your computer and use it in GitHub Desktop.
Save dannberg/9056b89437110e62766689772437fe46 to your computer and use it in GitHub Desktop.
Dann Berg's Meeting template for Obsidian. Full implementation instructions here: https://dannb.org/blog/2023/obsidian-meeting-note-template/. See the YouTube tutorial here: https://youtu.be/Ud16HOQoS5Q
---
date: <% tp.file.creation_date() %>
type: meeting
company:
summary: " "
---
tags: [[🗣 Meetings MOC]]
Date: [[<% tp.date.now("YYYY-MM-DD-dddd") %>]]
<% await tp.file.rename(tp.date.now("YYYY-MM-DD") + " " + tp.file.title) %>
# [[<% tp.date.now("YYYY-MM-DD") + " " + tp.file.title %>]]
**Attendees**:
-
## Agenda/Questions
-
## Notes
-
@TrustArgon
Copy link

TrustArgon commented Aug 23, 2024

@tbal-withatouchofmalace

I managed to accomplish what you're looking for by modifying the Meeting Template like so:

---
date: <% tp.file.creation_date() %>
type: meeting
company: 
summary: " "
---
tags: [[🗣 Meetings MOC]]
Date: [[<% tp.date.now("YYYY-MM-DD-dddd") %>]]


<%*
const moment = tp.date.now("YYYY/MM-MMMM");
const folder = `Meetings/${moment}`;
const fileName = tp.date.now("MM-DD-dddd") + " " + tp.file.title;

const filePath = `${folder}/${fileName}`;
await tp.file.move(filePath);
await tp.file.rename(fileName)
%>

# [[<% tp.date.now("YYYY-MM-DD") + " " + tp.file.title %>]]

**Attendees**: 
- 

## Agenda/Questions
- 

## Notes
-

You may have to change the contents of const folder to match your use case as I have my meetings in a root folder called Meetings. If you're using it as originally designed, just change it from Meetings/${moment} to Timestamp/Meetings/${moment} and you should be good to go.

@bkcraft-1
Copy link

@TrustArgon I've never thought to do this, but I kept meaning to come back to this after seeing the question above about it. I just tested your method and it works perfectly. Thanks

@tBal-WithaTouchofMalice

@TrustArgon

That works wonderfully. Thanks!

@nippyin
Copy link

nippyin commented Oct 13, 2024

It would be great if after entering attendees name the cursor moves to Agenda and after entering agenda it automatically moves under notes heading.

@dannberg
Copy link
Author

@nippyin Templater has <% tp.file.cursor() %> that allows you to specify where you want the cursor to be placed once a new note is created from a template. But I don't think there's a way to automatically move the curser after entering attendees name(s). If you find a way to get it to work, please share here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment