Automate Your Vault With Templater - How to Use Templater in Obsidian

Automate Your Vault With Templater - How to Use Templater in Obsidian

Introduction to Templater in Obsidian

In this video, the speaker introduces Templater in Obsidian and explains how it differs from the Template Score plugin. The speaker recommends watching their previous videos on Obsidian before diving into Templater.

What is Templater?

  • Templater is a more robust and complex version of the Template Score plugin.
  • The main difference between the two is automation. Templater can apply any template based on various variables such as the day of the week or what folder the note was created in.
  • There are internal functions and user functions in Templater. This video covers only internal functions.

Setting up Templater

In this section, the speaker shows how to download and set up Templater.

Downloading and Enabling Templater

  • To download, go to Community Plugins > Browse > Template Plugin > Enable.
  • Open a new page to start using Templater.

Using Hotkeys for Faster Access

  • Pressing Command P for Command Palette on Temperate allows you to replace templates in an active file.
  • Assigning a hotkey makes it easier to access. Go to Settings > Hotkeys > Search for Replace > Customize this command.

Syntax of Templates

In this section, the speaker goes over some useful syntax for creating templates.

Common Internal Functions

  • Out of the seven internal functions, the speaker finds tpdate and tpfile to be the most useful.
  • Tpdate displays the current date in a user-friendly format.
  • Tpfile displays the name of the file.

Displaying Templates

  • After inputting template syntax into a note, press Command P for Command Palette on Templater and select Replace Templates in Active File to display it.
  • Templater has more user-friendly formats for displaying templates.

Conclusion

In this section, the speaker concludes by summarizing what was covered in the video and encourages viewers to check out their other videos on Obsidian.

Summary

  • Templater is a more powerful version of Template Score plugin that allows for automation.
  • To download Templater, go to Community Plugins > Browse > Template Plugin > Enable.
  • Useful syntax includes tpdate and tpfile. To display templates, use Command P for Command Palette on Templater and select Replace Templates in Active File.
  • The speaker recommends checking out their other videos on Obsidian before diving into Templater.

Overall, this video provides an introduction to using Templater in Obsidian. The speaker covers how it differs from Template Score plugin, how to set it up, and some useful syntax for creating templates.

Adding Dates in Obsidian with TP Date Plugin

In this section, the speaker introduces the TP Date plugin and explains how to use it to add dates in Obsidian.

Using Natural Language Dates vs. Automated Dates

  • The TP Date plugin allows for automated date input.
  • Natural language dates require manual input.
  • Automated dates return "today" when activated, while natural language dates return the actual date.

Adding Dates in the Past or Future

  • Use "p minus" followed by a number and "m" for months ago or "y" for years ago to get a specific date in the past.
  • Use "+" instead of "-" to get a specific date in the future.

Turning Results into Links

  • Any temporary function can be turned into a link by putting square brackets around it.
  • Clicking on the link will take you to a daily note for that exact date if one exists.

Using TP File Plugin

In this section, the speaker introduces the TP File plugin and explains how to use it to access file information.

Getting File Creation Date

  • Use "tp file creation date" function to get file creation date.

Getting Last Modified Date

  • Use "tp file last modified" function to get last modified date of file.

Getting File Folder Location

  • Use "hdb file folder" function to get current location of file within folders.

Using TP Web Plugin

In this section, the speaker introduces the TP Web plugin and explains how to use it to access random quotes from the web.

Accessing Random Quotes

  • Use "tp web" function to access random quotes from the web.
  • Quotes can be used for journaling or inspiration.

Introduction

In this section, the speaker talks about Shaquille O'Neal's quote on money and shares his thoughts on it.

Shaquille O'Neal's Quote on Money

  • Shaquille O'Neal said, "Money, money, money. I just want to play the game, drink Pepsi and wear Reebok."
  • The speaker thinks that most of the time, cool stuff happens that he is happy to see.
  • The only real mistake is the one from which you learn nothing.

Daily Notes

In this section, the speaker talks about how he uses daily notes and provides examples.

On This Day Link

  • All of the speaker's daily notes have a line after the YAML header that says "On This Day" and links to the exact same date of last year.
  • To do this, he uses a line in his daily note template that says "On This Day: tp.date.now -p1y".

Breadcrumbs

  • The speaker likes to add breadcrumbs to his daily notes.
  • He has a line in his daily note template that shows links for the day before and after with arrows pointing towards them.
  • He does something similar but different for weekly planning.

Folder Automation

In this section, the speaker talks about folder automation and how it can be used to apply templates automatically.

Courses Folder Template

  • The speaker creates a new folder called "Courses" and titles a new template "Courses Template".
  • He adds typical YAML header information to it.
  • He then goes into Templater settings and creates a new folder under "Folder Templates" for courses with its corresponding template name.
  • Now every file created inside the courses folder will have the template applied to it.

Using Templater Plugin in Obsidian

In this section, the speaker explains how to use the Templater plugin in Obsidian and its various features.

Customized Templates

  • Use aliases for customized templates.
  • Assign different hotkeys for different templates.
  • Assign a shortcut for each template that you don't want to use in a folder structure.
  • Apply default template on every note that creates spontaneously.

Github Templates

  • Check out Github's active community of people showcasing what they have done with Templater.
  • Be cautious when copying and pasting from Github as it may contain code that you do not understand.

Overall, the speaker provides an overview of how to use the Templater plugin in Obsidian. They explain how to create customized templates using aliases and assign hotkeys for different templates. Additionally, they demonstrate how to apply a default template on every note created spontaneously. Finally, they suggest checking out Github's active community of people showcasing what they have done with Templater but caution against blindly copying and pasting code without understanding it.

Video description

Subscribe to my monthly newsletter: https://fromsergio.substack.com Timestamps: 00:00 - Templates VS Templater 01:06 - Getting Templater To Work 03:11 - Tp.Date (With Examples) 07:20 - Tp.File (With Examples) 09:30 - Automating Your Journaling 12:32 - Automating Your Folders 14:26 - My Hotkeys 15:16 - My Default Template 16:56 - Templater Showcase Templater's Github - https://github.com/SilentVoid13/Templater Templater's Documentation - https://silentvoid13.github.io/Templater/ Templater's Showcase - https://github.com/SilentVoid13/Templater/discussions/categories/templates-showcase 🎵 Where I Get My Music - https://www.epidemicsound.com/referral/ayxzl5/ 🎥 My Camera Gear - https://kit.co/fromsergio Some of the above are affiliate links, meaning I get a small commission at no extra cost to you, which helps support the channel.