Skip to content

Latest commit

 

History

History
 
 

Periodic Notes Navigation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Periodic Notes Navigation

Navigate between daily, weekly, monthly, quarterly, and yearly notes effortlessly with Templater.

Navigation example

About

This repository contains two sets of templates:

Template Description
template/ Includes additional features
template-simple/ Includes only the barebone, easier to read and tinker with

Additional features provided by template/

  • Remove duplicated links in month-crossing-weeks, credits to @PhyberApex
  • Customize filename format (planned)
  • Customize link display text (planned)

Requirement

Plugins

Install plugins via Community plugins tab.

How to Use

Setup

  1. Copy the templates in template/ or template-simple/ to your vault
  2. Goto Templater settings, enable Trigger Templater on new file creation
  3. Goto Periodic Note settings, change template settings to use your template files

Alternatively, you can copy the contents to your existing templates.

Using the template

Clicking on the calender provided by Calendar plugin, or run Periodic Notes' command will insert the templates automatically:

Periodic Notes: Open daily note
Periodic Notes: Open weekly note
Periodic Notes: Open yearly note
Periodic Notes: Open monthly note
Periodic Notes: Open quarterly note

Customization

The template uses default filenames formats for periodic notes, if you are using customized filename formats, modify the template accordingly.

Note Filename format
Daily YYYY-MM-DD
Weekly gggg-[W]ww
Monthly YYYY-MM
Quarterly YYYY-[Q]Q
Yearly YYYY

Refer to the Templater documentation and Moment.js documentation for further customization.

Using Filename Templates

If you follow links to future notes, Periodic Notes will not get triggered, result in a blank note in your default location.

To fix this, use Filename Templates to insert templates by filename, and put this snippet in front of your periodic templates:

<%*
await tp.file.move(`path/to/periodic/notes/${tp.file.title}`);
-%>

This snippet will move your periodic notes to the path you specify, and voilà, you can now click through time freely, might as well disable Periodic Notes.