Giter VIP home page Giter VIP logo

obsidian-templater-helpers's Introduction

obsidian-templater-helpers

These are scripts intended to be used with the Templater plugin for Obsidian.

obs_dates_nav.py, when invoked as a user function by Templater in a new Daily Note, should do two things:

  • Add a navigation link to the most recent previous Daily Note
  • Go the most recent previous Daily Note and update its forward link to the current day's note

(While Templater already has the functions tp.date.yesterday and tp.date.tomorrow, using these to create navigation links assumes that you create a Daily Note every single day. If that works for you it's definitely simpler than this solution, but I happen to enjoy weekends and holidays.)

obs_todo_migr.py, when invoked as a user function by Templater in a new Daily Note, is intended to migrate uncompleted Todo items (denoted by the - [ ] pattern) from the most recent previous Daily Note to the new one. It will also append a string of your choice to the end of each Todo item every time it is migrated to make it easier to identify things that are being carried over day after day, as this is an indication that the item is either not really a priority or perhaps needs to be refactored into smaller chunks to progress.

To be usable these scripts need to be linked to custom functions (see below) in Templater which are in turn used in your Daily Note template file (an example called Daily Template.md is included). The "Trigger Templater on new file creation" and "Enable System Commands" options will also need to be enabled. (Note that if you're installing Templater for the first time it's wise to restart Obsidian afterwards, as there seems to be a bug with plugin initialization that causes macros to not expand on file creation after Templater is first installed.)

Templater Settings

These were tested on Python 3.7.5 on MacOS with Obsidian v0.12.3 and Templater 1.6.0, and are provided as is as examples of what is possible with Templater and simple scripts. Since these do make changes to your notes files, backups are probably a good idea.

obsidian-templater-helpers's People

Contributors

jasonbraddy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.