From Template

by mo-seph
5
4
3
2
1
Score: 42/100

Description

Category: Note Enhancements

The From Template plugin is a game-changer for Obsidian users who rely on creating new notes from existing templates. This innovative tool allows you to define custom templates that can be easily accessed and populated with content, saving you time and effort in the note-taking process. With this plugin, you can create reusable templates for frequently used formats, such as meeting notes or project summaries, and quickly generate new notes based on those templates. Say goodbye to tedious formatting and hello to increased productivity!

Reviews

No reviews yet.

Stats

118
stars
14,854
downloads
12
forks
1,760
days
784
days
784
days
4
total PRs
1
open PRs
0
closed PRs
3
merged PRs
52
total issues
32
open issues
20
closed issues
0
commits

Latest Version

README file from

Github

Notes from Template

This plugin adds commands to create notes based on template files. It will go through each file in the templates directory in the settings, and create a command 'From Template: ' for each file. Each command will create a note based on the given template, with a popup to request values for each variable found in the template in Mustache syntax.

Template Demo

Discussion thread on Obsidian Forum: https://forum.obsidian.md/t/plugin-create-notes-from-templates/23452

Quickstart

An example template file might be:

---
template-output: People
tags: person, {{tags}}
template-replacement: "[[{{title}}]] ![[{{title}}#^overview]]"
template-input: title, overview, body
template-should-replace: "sometimes"
template-should-create: "open-pane"
---
# {{title}}

{{overview:area}}
^overview

Organisation: {{organisation}}

{{body}}

This would

  • pop up a window requesting a note title, an overview (in a text box) an organisation (text field) and some tags.
  • if the selection in the editor was "Joe Blogs - manager at Weissman Heiss - (lots of details)", the popup would be populated with Joe Blogs as the title, 'manager at Weissman Heiss' as the overview, and lots of details in the body field.
  • create a note based on the template in the People directory.
  • replace the selection text with the replacement string - in this case, a link to the note, and a transclusion of the overview paragraph. If there is no text selected, it won't put anything into the document.
  • open the new note in a new window

Details

YAML and Properties

Templates can contain YAML fields that will be filed out in the same way as the rest of the template and become part of the note's Properties. So this will work as expected:

---
organsiation: "{{organisation}}"
---
{{name}} works at {{organisation}}

In order to be proper YAML, values cannot start with { or they are treated as dictionaries, so make sure to use organisation: "{{org}}" rather than organisation: {{org}} in the frontmatter.

For List properties, it will try to be clever if you make the property a List in the template. So you can have a template like this:

tags:
  - template-test
  - "{{tags}}"

and if you put extra-tag, another-extra-tag in the input field, it will render as:

tags:
  - template-test
  - extra-tag
  - another-extra-tag

From Template YAML Properties

(these will all be filtered out of the rendered note)

Name Value Default
template-id Unique ID for the template Lowercase version of the base name
template-name Name for the command Base name of the file
template-output Directory to save the output test
template-filename Filename for the created note. Will have .md appended. Note: if you set a different filename, then make sure to use {{filename}} in the template-replacement strings if you want to link to the file. {{title}}
template-replacement A Mustache template to replace the selected text in the editor with. Can pass a list, which will appear as buttons in creator {{[[title]]}}
template-input If the command is called with some text selected, split it up using the plugin's split pattern, and put the values into those fields title,body
template-should-replace Should the template write text back to the document? "always", "sometimes" = only if text is selected, "never" "sometimes"
template-should-create Should the template make and open a note? "none"=no note, "create"= create but don't open, "open"=create and open in current editor, "open-pane" = create and open in new pane, "open-tab" = open in new tab "open-tab"

Examples

  • Create a new note with a complex filename, then insert the title with a transclusion of the overview:
template-filename: "{{title}} - autocreated"
template-replacement: "{{title}} - ![[{{filename#^overview}}]]"
  • Template will always put the result back into the current document:
template-should-create: "none"
template-should-replace: "always"
template-replacement: "{{templateResult}}"

Field Types

Each field is double curly braces, a field ID, a field type (defaults to text), some number of arguments separated by : and optionally a description after a |, i.e. {{fieldID:fieldType:arg1:arg2|This is an example field}}

Type Args Description Example(s)
text none A text input field - this is the default {{name}}, {{country:text}}, {{country:text:Belgium}}
area none A text area - default if the field name is 'body' {{description:area}}, {{body}}
currentDate format The current date, using the format in Luxon format (https://moment.github.io/luxon/#/formatting) (Moment.js shouldn't be used for new projects, dayjs doesn't play nicely with the build system) {{now:currentDate:dd-MM-yyyy}}
choice choices A dropdown select field {{suit:choice:hearts:spades:diamonds:clubs}}
multi choices A multi-select field {{colors:multi:yellow:red:green:blue}}

Non-field tags

Field Description Usage Example
currentTitle The title of the active note when the template was triggered parent: [[{currentTitle}]] in frontmatter to create hierarchy
currentPath The path of the active note when the template was triggered

Hotkeys

Some hotkeys are defined:

  • Mod + enter: submit template
  • Mod + (1-9): jump to field
  • Ctrl + (1-9): select replacement string N

Development

Very open to collaboration - drop me a line or PR

Changelog

0.1.13

  • Tidied up styling
  • Added in support for escaping delimiters in fields (e.g. hh\:mm\:ss for a time value)
  • Added in descriptions for fields with a | character, e.g {{field|description}} which will be shown in the template UI.
  • Another refactor - codebase is cleaner, uses Obsidian markdown/YAML parsing for frontmatter, gives better handling of list properies etc.
  • Added initial suggestion support: now a tags field will suggest existing tags, and other fields will suggest internal links if [[ is entered.
  • Quality of life improvements:
    • Allow calling template even if not in an open editor (Note: can't replace text in e.g. Kanban fields, but in those cases copies replacement to Clipboard)
    • Better error handling
    • Better filename support
    • Added option to open file in new Tab
    • Can use {{properties}} in template-output (e.g. template-output: Projects/{{project}} to put files in project directories)
    • Will prompt for creating folders that don't exist

0.1.11

  • Added CSS class to modal for styling
  • Added multi field type to allow a multi-select with toggles
  • Added field descriptions: {fieldname:text:default:description} or {fieldname:area:description}

0.1.7

  • Added currentdate field type, e.g. {{now:currentdate:dd-MM-yyyy}}
  • Added currentPath and currentTitle field names, e.g. [[{{currentTitle}}]] to link back to current note

0.1.6

  • Templates now loaded dynamically - no more restarts! (also: changed template folder selection to dropdown,command for re-indexing)
  • Added a choice type, e.g. {{suit:choice:hearts:spades:diamonds:clubs}}
  • Note filenames are now generated from a template string, either in config, or in template-filename in the template. Defaults to {{title}}, but all template fields available.
  • Added multiple replacement text possibility - If an array is given for template-replacement, then these will all be options in the template dialog
  • Many UI tweaks, fixed YAML parsing

0.1.5

Big changes - completely refactored, new options, new fields, most defaults in settings, should be more responsive to template changes

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Templater
6 years ago by SilentVoid
A template plugin for obsidian
QuickAdd
5 years ago by Christian B. B. Houmann
QuickAdd for Obsidian
Admonition
6 years ago by Jeremy Valentine
Adds admonition block-styled content to Obsidian.md
Periodic Notes
6 years ago by Liam Cain
Create/manage your daily, weekly, and monthly notes in Obsidian
Zotero Desktop Connector
5 years ago by mgmeyers
Insert and import citations, bibliographies, notes, and PDF annotations from Zotero into Obsidian.
Buttons
6 years ago by Sam Morrison
Buttons in Obsidian
Folder notes
3 years ago by Lost Paul
Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.
Tracker
6 years ago by pyrochlore
A plugin tracks occurrences and numbers in your notes
Note Refactor
6 years ago by James Lynch
Allows for text selections to be copied (refactored) into new notes and notes to be split into other notes.
File Explorer Note Count
5 years ago by Ozan Tellioglu
Obsidian Plugin for viewing the number of elements under each folder within the file explorer
Dice Roller
6 years ago by Jeremy Valentine
Inline dice rolling for Obsidian.md
Book Search
4 years ago by anpigon
Obsidian plugin that automatically creates notes by searching for books
Weread Plugin
4 years ago by hank zhao
Obsidian Weread Plugin is a plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.
Folder Note
6 years ago by xpgo
Plugin to add description note to a folder for Obsidian.
Auto Note Mover
5 years ago by faru
This is a plugin for Obsidian (https://obsidian.md).
Multi Properties
3 years ago by fez-github
Plugin for Obsidian that allows user to add properties to multiple notes at once.
Icons
6 years ago by Camillo Visini
Add icons to your Obsidian notes – Experimental Obsidian Plugin
Smart Random Note
6 years ago by Eric Hall
A smart random note plugin for Obsidian
JSON-CSV Importer
3 months ago by farling42
Plug-in for Obsidian.md which will create Notes from JSON files
Focus Mode
5 years ago by ryanpcmcquen
Add focus mode to Obsidian.
PodNotes
4 years ago by Christian B. B. Houmann
PodNotes is a plugin for Obsidian that helps the user write notes on podcasts.
Print
2 years ago by Marijn Bent
Print your notes directly from Obsidian
Daily Notes Editor
4 years ago by boninall
A plugin for you to edit a bunch of daily notes in one page(inline), which works similar to Roam Research's default daily note view.
Auto Template Trigger
3 years ago by Numeroflip
An obsidian.md plugin, to automatically trigger a template on new file creation
Widgets
3 years ago by Rafael Veiga
Add cool widgets to your notes or your dashboard in Obsidian
Hotkeys for templates
6 years ago by Vinzent
Daily Named Folder
5 years ago by Nemo Andrea
Like daily note, but nested in a daily folder and some more improvements
Wikipedia
5 years ago by Jonathan Miller
Grabs information from Wikipedia for a topic and brings it into Obsidian notes
Audio Notes
4 years ago by Jason Maldonis
Easily take notes on podcasts and other audio files using Obsidian Audio Notes.
Slurp
2 years ago by inhumantsar
Slurps webpages and saves them as clean, uncluttered Markdown. Think Pocket, but better.
Advanced Merger
3 years ago by Anto Keinänen
Smart Templates
2 years ago by 🌴 Brian Petro
Smart Templates is an AI powered templates for generating structured content in Obsidian. Works with Local Models, Anthropic Claude, Gemini, OpenAI and more.
OZ Calendar
3 years ago by Ozan Tellioglu
Obsidian plugin to display notes on a calendar based on YAML frontmatter or file names
Prettier Format
6 years ago by Andrew Lisowski
Format obsidian.md notes using prettier
Custom Note Width
3 years ago by 0skater0
Set the line width for each note individually in Obsidian. Works with a slider, pill presets, YAML frontmatter and hotkeys.
Book Reader
a month ago by EltonLabs
Read EPUB, FB2 and PDF books directly inside Obsidian — a beautiful, distraction-free book reader with text highlighting, notes, and reading progress that syncs into your vault. Works on both desktop and mobile (Windows, macOS, Linux, Android, iOS).
Colorful Note Borders
3 years ago by rusi
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
Smart Rename
3 years ago by mnaoumov
Obsidian Plugin that helps to rename notes keeping previous title in existing links
Create Note in Folder
4 years ago by Mara-Li
Set a folder in settings and get directly a command to create a note in it. Use this with QuickAdd/Button to get more pratical things :D
Xiaohongshu Importer
2 years ago by bnchiang96
An Obsidian plugin to import Xiaohongshu (小红书) notes into your vault. Extract titles, content, images, videos, and tags from share links, with customizable categories and optional local media downloads.
Note Auto Creator
4 years ago by Simon T. Clement
An Obsidian plugin for automatically creating notes when linking to non-existing notes
Awesome Reader
4 years ago by AwesomeDog
Make Obsidian a proper Reader.
Apple Books - Import Highlights
3 years ago by bandantonio
⚡️Fastest Apple Books highlights importer to Obsidian 🗄️ The only one protecting your own reflections across imports 🎨 Fully customizable
Sets
3 years ago by Gabriele Cannata
Ollama Chat
3 years ago by Brumik
A plugin for chatting with you obsidian notes trough local Ollama LLM instead of Chat GTP.
Easy Bake
3 years ago by mgmeyers
Compile many Obsidian notes down to one.
Protected Note
3 years ago by Mikail Gadzhikhanov
Plugin for Obsidian
Timeline View
3 years ago by b.camphart
Obsidian plugin for viewing your notes linearly based on a given property
Sticky Notes
a year ago by NoPoint
Obsidian Sticky Notes Plugin
Granola Meetings Simple Sync
2 months ago by philfreo
"Granola Meetings Simple Sync" Plugin for Obsidian
2Hop Links
5 years ago by Tokuhiro Matsuno
Journaling
2 years ago by Ordeeper
View daily notes in a journal-like format, similar to Logseq. It enhances note organization and facilitates better reflection by consolidating daily notes into a continuous journaling view.
Podcast Note
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian that lets you add podcast meta data to your notes.
Obsidian Dynamic Embed
5 years ago by Ivaylo Dimitrov Dabravin
Instapaper
3 years ago by Instapaper
Official Instapaper plugin for Obsidian
Templify
2 years ago by Boninall
A releases repo for custom editable template in Obsidian.
Spotify Link
3 years ago by Studio Webux
Obsidian.md Plugin to include the song or episode you're currently listening to in your note.
Character Sheets
a year ago by Grayvox
📝Create character sheets for your very own traumatized little guys with Obsidian.
YouTube Template
3 years ago by sundevista
📺 A plugin that would help you to fetch YouTube videos data into your vault.
Visual Crossing Weather
2 years ago by willasm
Default Template
9 months ago by raeperd
obsidian plugin to set default template for new notes
Objects
13 days ago by Finn
Note to RED
a year ago by Yeban
一键将 Obsidian 笔记转换为小红书图片进行导出
Live Variables
2 years ago by Hamza Ben Yazid
Define variables in your note's properties and reuse them throughout your content.
Structured
5 years ago by dobrovolsky
Highlight Public Notes
5 years ago by dennis seidel
Pinned Notes
2 years ago by vasilcoin002
Kindle Highlights Importer
3 years ago by MovingMillennial
Notes Sync Share
3 years ago by Alt-er
Sync and share (publish) your notes in your own private service.
Note archiver
3 years ago by thenomadlad
Advanced Copy
2 years ago by leschuster
An Obsidian plugin to copy Markdown and transform it into HTML, Anki, or any custom format. Create custom profiles with versatile templates tailored to your workflow.
Liquid Templates
5 years ago by Diomede Tripicchio
Define your templates with LiquidJS tags support
Dynbedded
4 years ago by Marcus Breiden
Embed snippets, templates and any linkable by delegating the current scope to the embedded file either by using a direct reference or as reference with date naming format relative from today. Also supports Quoth Codeblocks.
Air Quotes
3 years ago by Alan Grainger
Plugin for Obsidian. Search and insert quotes from a source text as you type. This is great for reading a physical book or eReader while taking notes on a separate laptop or phone.
Power Search
5 years ago by Aviral Batra
Frontmatter generator
3 years ago by Hananoshika Yomaru
A plugin for Obsidian that generates frontmatter for notes
KOReader Sync
5 years ago by Federico "Edo" Granata
Obsidian.md plugin to sync highlights/notes from koreader
ZettelGPT
3 years ago by Overraddit
Turbocharge Your Note-taking with AI Assistance
Old Note Admonitor
4 years ago by tadashi-aikawa
iCloud Contacts
3 years ago by Truls Aagaard
Obsidian plugin that imports contacts from iCloud and manages a note for each contact.
Meld Build
3 years ago by meld-cp
Write and execute (sandboxed) JavaScript to render templates, query DataView and create dynamic notes.
Quick note
3 years ago by James Greenhalgh MBCS
Create New note from right-clicking app icon
BibTeX Manager
2 years ago by Akop Kesheshyan
Create literature notes in Obsidian from BibTeX entries, display formatted reference lists, and instantly generate citations.
Bi Ji Tong Bu
2 months ago by 笔记同步助手
Bi Ji Tong Bu (笔记同步助手) for Obsidian — marketplace edition (no self-update; full disclosures)
Zettelkasten Outliner
3 years ago by Tyler Suzuki Nelson
New Note Content Pusher
4 years ago by Henry Gustafson
An Obsidian plugin to add (prepend or append) specified content to a note (existing or new) without opening another pane.
Micro templates
3 years ago by epszaw
Flexible embedded micro templates powered by javascript functions
Workona To Obsidian
4 years ago by Holmes555
Plug-in for Obsidian.md which will import Workona json file
Ruled template
3 years ago by YPetremann
An obsidian plugin that check rules to select which template to use.
Desk
3 years ago by David Landry
A desk for obsidian
Quickly
3 years ago by Sparsh Yadav
Quick capture to obsidian note
Source Code Note
3 years ago by Waiting
The obsidian plugin can help you organize source code note easily.
Search Templates Library
3 years ago by Pentchaff
Obsidian plugin that allows to store searches templates for later use, and displays search results both in the search view and graph view.
Tolino notes Importer
3 years ago by juergenbr
Obsidian plugin to import notes from a Tolino E-Reader
Note Splitter
2 years ago by Trey Wallis
Split a note into individual notes based on a delimiter
Codeblock Template
3 years ago by Super10
A template plugin that allows for the reuse of content within Code Blocks!一个可以把Code Block的内容重复利用模板插件!
Asciidoctor editor
2 years ago by dzruyk
Obsidian asciidoc editor plugin
my anime list text exporter
2 years ago by XmoncocoX
a plugin who create an obsidian page for an anime with the data from my anime list.
Beautiful Contact Cards
2 years ago by Seth Tenembaum
A plugin for the Obsidian text editor which renders "contact" code blocks with tappable links for phone, social media, etc.
Create List of Notes
2 years ago by Andrew Heekin
Confluence Sync
3 years ago by Prateek Grover
Obsidian plugin for obsidian confluence sync
iDoRecall
3 years ago by dbhandel
iDoRecall Obsidian plugin
Are.na unofficial
3 years ago by 0xroko
Unofficial Are.na plugin for Obsidian
Folder Periodic Notes
2 years ago by Andrew Heekin
Templated daily notes
3 years ago by digitorum
Allow to create templayted daily note in specific folder
Auto Note Importer
a year ago by uppinote
Two-way sync between Obsidian and your databases — Airtable, SeaTable, Supabase, Notion. Multi-config, conflict resolution, computed fields, Notion page-body pull.
Current Folder Notes
2 years ago by Pamela Wang
Shows notes in the current folder, useful for writing novels
Kinopoisk search
3 years ago by Alintor
Obsidian Kinopoisk plugin
Note Companion Folder
3 years ago by Chris Verbree
A Obsidian Plugin providing a way to associate a folder to a note
Title renamer
3 years ago by Peter Strøiman
Obsidian plugin to keep title in markdown synced with tile name
Daily Summary
2 years ago by Luke
Varinote
2 years ago by Giorgos Sarigiannidis
A plugin for Obsidian that allows you to add variables in Templates and set their values during the Note creation.
Template Filename
a year ago by Callum Alpass
Obsidian plugin for creating notes with templatable filenames
Emoji selector
a year ago by summer
Insert custom emojis with quick search, auto-suggestions, and customizable templates.
Quarto Exporter
2 years ago by Andreas Varotsis
Export Obsidian notes to Quarto-compatible QMD files.
Autogen
3 years ago by Aidan Tilgner
A plugin to use a language model to fill in parts of notes.
Quick File Name
3 years ago by Wapply
This Obsidian plugin generates a note with an random string as file name.
Fuzzy Note Creator
2 years ago by HaloGamer33
An Obisidan plugin for quickly creating notes with the help of a fuzzy finder. Now with templates!
LongtimeDiary
6 months ago by sawamaru
This is Obsidian Plugin to show past DailyNotes on the same day in previous years.
Weread Vault
2 months ago by 茜宁郑
Sync WeRead highlights, import book lists, and connect personal reading notes in Obsidian.
Share as ZIP
2 years ago by Till Friebe
Dayframe
2 months ago by Ganessh Kumar R P
🖼️ like a picture frame but for your daily notes.
Daily Random Note
2 years ago by Alexandre Silva
Daily Random Notes in Obsidian.
MOC Link Helper
2 years ago by Bogdan Codreanu
This obsidian plugins allows you to quickly see which notes you need to include in your MOC.
Xboard
2 months ago by wrbin
一款易上手、已美化、更适合AI工作流的obsidian工作台
Instant Above Divider
2 years ago by SedationH
Custom Comments
a year ago by Jack Chronicle
Adds a method to create custom methods to enclose comments
Template by Note Name
2 years ago by Jacob Learned
A simple Obsidian plugin to automatically template notes based on their title
Handlebars Dynamic Templating
8 months ago by Hide_D
Handlebars dynamic templating. Define template files and use them dynamically via hb blocks. Template recursion is also possible.
Session Notes
2 years ago by tabibyte
A plugin for Obsidian to create temporary & session notes that will be deleted when session ends
Abbrlink
2 years ago by Q78KG
Sync Cnblog
2 years ago by zhanglei
同步文章到博客园
create folder notes with dropdown
2 years ago by Sturdy Shawn
Simple Vault Importer
a year ago by WebInspectInc
Chat clips
2 years ago by sleepingraven
Record chat in ordinary markdown list.
ICOR for Life - PDF Annotation
25 days ago by Thomas Roedl
Highlight text or draw a box on a PDF and get a note in the vault for it, with a deep link back, a card on any canvas by drag and drop, and a sidebar of every highlight in the open PDF. Part of the ICOR for Life suite.
Quick Notes
2 years ago by Sean McOwen
Daily Notes Automater
a year ago by David Pedrero
Vault Review
2 years ago by Alexander
This plugin allows you to create a snapshot of your vault and randomly review files from it 1-by-1.
Abele
a month ago by dudaanton
An Obsidian plugin that adds a lot of functionality I personally find missing.
Pug Templates
2 years ago by Nicholas Wilcox
An Obsidian plugin that enables the usage of Pug templates.
Note Types
2 months ago by jsmorabito
Arweave Uploader
2 years ago by makesimple
random-retrieval
2 years ago by Rachninomav