Skip to content

Instantly share code, notes, and snippets.

@dannberg
Last active March 13, 2024 14:44
Show Gist options
  • Star 23 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • 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
-
@JoschD
Copy link

JoschD commented Feb 27, 2024

Hi @dannberg , thank you very much for your tutorials and these templates!

I noticed one weirdness with the current setup: you only temporarily create a new file at the location given by the folderPath
of the meta-bind-button, which is then moved by the templater plugin. So if you want to change this location, only the tp.file.move command needs to change location, as the folderPath is for all practical purposes ignored (but might create an then empty folder). Which seems a bit counter-intuitive.

I would suggest to replace

<% await tp.file.move("/Timestamps/Meetings/" + tp.date.now("YYYY-MM-DD") + " " + tp.file.title) %>

with

<% await tp.file.rename(tp.date.now("YYYY-MM-DD") + " " + tp.file.title) %>

Then the final location of the created note will be in the folderPath .
This also allows to create multiple buttons to different locations while using the same template.

Possibly, this is also related to the "my template is moving around" comments from above.

@dannberg
Copy link
Author

@JoschD Great call. This was an artifact from when I was using a different plugin to create these templates (manually with QuickAdd) but is reduntant (and as you pointed out, unnecessary) with the current Meta Bind button method.

I'll update this gist with your modification. Thanks!

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