Skip to content

Brandon82/ObsidianTemplates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ObsidianTemplates

A collection of advanced note templates for Obsidian, built around the Dataview plugin and its JavaScript query engine (dataviewjs).

These are not static markdown snippets. Each template uses Dataview JS to read and write its own YAML frontmatter, so a note can hold editable state and render content that updates live as that state changes.

How it works

A template combines three layers:

  1. YAML frontmatter stores the note's state (for example, a branch name).
  2. dataviewjs blocks read that state via dv.current() and render dynamic content from it.
  3. Interactive controls (inputs, buttons) write new values back to the frontmatter with app.fileManager.processFrontMatter(...) and re-render the preview, so the dependent blocks recompute automatically.

The result is a note that behaves like a small interactive tool while remaining plain markdown on disk.

Templates

  • Git.md — Set a branch name once and get a ready-to-copy list of git commands (checkout, push, rebase, reset, and more) with that branch name filled in, alongside a reference of common git commands.

Requirements

  • Obsidian
  • The Dataview community plugin, with Enable JavaScript Queries turned on

Usage

  1. Open the Templates/ folder as an Obsidian vault (or copy the templates into an existing vault).
  2. Install and enable Dataview, then enable JavaScript Queries in its settings.
  3. Open a template note in reading/preview mode. The dataviewjs blocks only render there, not in source mode.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors