Get AI summaries of any video or article — Sign up free
Obsidian Templater, YNAB, daily notes, emails // June 2022 Patreon Q&A thumbnail

Obsidian Templater, YNAB, daily notes, emails // June 2022 Patreon Q&A

5 min read

Based on Nicole van der Hoeven's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Use VS Code to bulk-update Obsidian template front matter via search-and-replace across the entire vault, avoiding fragile one-off command-line edits.

Briefing

Template maintenance in Obsidian is less about command-line wizardry and more about having a repeatable workflow. When Adam G asked how to update existing templates after changing front matter (for example, adding a new field), the answer pointed away from bulk-editing tools like sed and toward using VS Code’s search-and-replace across an entire vault. By opening the Obsidian vault folder in VS Code, then searching for an old front-matter parameter and using “replace all,” changes can be propagated across many notes at once. The key practical detail is that VS Code can report how many occurrences exist across multiple files, making large refactors safer and faster than manual edits.

That workflow is reinforced with a “metadata” reference file that lists expected parameter names and allowed values by category. Instead of accidentally drifting from one naming convention to another—like using email_address in some notes when the system expects email—the metadata file becomes the source of truth. If a mistake slips in, the same VS Code replace-all approach can normalize the parameter across the vault. The overall theme is that template evolution is inevitable, so the system needs a low-friction way to keep old notes aligned with new conventions.

A second thread focuses on building custom automation with Obsidian’s scripting ecosystem. Robert wanted quality libraries and examples beyond Templater documentation, especially for a personalized project manager that uses Dataview to organize tasks into milestone and MOC notes. The guidance emphasized three practical routes: use community plugin documentation (including references created by others such as Marcus Olsson’s plugin documentation), inspect Obsidian’s Electron-based runtime via browser DevTools to troubleshoot and explore APIs, and mine GitHub repositories for wikis and usage examples. When it came to deleting files from within scripts, the response admitted uncertainty at first—but Robert later shared working code, which was provided for others to reuse.

Other questions broadened into day-to-day productivity. For budgeting, Jamie S asked whether YNAB integrates with Obsidian; the answer was no, with the reasoning that finances are automated and handled separately, so there’s no need to connect the two systems. The conversation also pushed for more open discussion about money, while noting a YNAB referral link in the description.

Finally, workspace and navigation issues centered on Obsidian’s Workspaces and periodic notes. Elena U wanted daily/weekly notes to open based on the date when switching workspaces, but dynamic “daily note for that workspace date” behavior isn’t available yet. The workaround was to use keyboard shortcuts for periodic notes—such as a hotkey that opens “today’s daily note” regardless of the specific date—and to embed weekly content into daily templates when weekly objectives must appear inside daily workflows. For email capture, Nicabar asked about processing emails into Obsidian; the approach highlighted Readwise Reader, which can ingest forwarded newsletters or emails, extract highlights, and then pull them into Obsidian with the newsletter name and installment, turning inbox clutter into structured notes.

Cornell Notes

Obsidian template changes can be handled efficiently by editing in VS Code and using search-and-replace across the whole vault, rather than relying on command-line tools. A metadata reference file helps keep front matter consistent by listing expected parameter names and values, making it easier to normalize mistakes (e.g., email_address vs email). For automation, building custom JavaScript or Templater workflows is supported by community plugin documentation, Electron DevTools for API troubleshooting, and GitHub wikis/examples. Workspaces can save layouts, but dynamic daily-note switching by date isn’t built in yet; keyboard shortcuts for periodic notes and embedding weekly notes into daily templates provide practical alternatives. Email-to-Obsidian capture is streamlined with Readwise Reader, which ingests forwarded emails/newsletters and transfers highlights into Obsidian.

How can a vault-wide front matter change be applied without manually editing every note?

Open the Obsidian vault folder in VS Code, then search for the old front-matter key (e.g., old_param). Use VS Code’s “replace all” to swap it to the new key (e.g., new_param). VS Code shows how many occurrences exist across files, then applies the change in bulk. Afterward, opening the notes back in Obsidian confirms the updated parameter everywhere.

Why keep a separate metadata file for template parameters, and how does it prevent drift?

The metadata file lists the parameter names and allowed values expected in Obsidian notes, organized by category. That makes naming conventions explicit—so instead of accidentally using email_address when the system expects email, the mismatch is easy to spot. If drift happens, the same VS Code replace-all workflow can correct the parameter across the vault.

What resources help when searching for Obsidian-related APIs or example code beyond Templater docs?

Three routes are recommended: (1) community plugin documentation, including references created by others like Marcus Olsson’s plugin documentation; (2) Obsidian’s Electron DevTools (Command + Option + I in the vault) to inspect failures and explore API behavior by logging context to the console; and (3) GitHub repositories for plugins, where wikis often include examples and usage details.

What’s the workaround when Workspaces don’t dynamically open the correct daily note for a given date?

Dynamic daily-note switching by workspace date isn’t available yet. Instead, set keyboard shortcuts for periodic notes: for example, assign a hotkey to “open today’s daily note” so it always jumps to the current date’s note. Weekly navigation can be handled similarly, or weekly objectives can be embedded into the daily note template so the weekly content appears inside daily notes.

How can newsletters or emails be turned into highlights inside Obsidian?

Use Readwise Reader: forward newsletters (or any email) to a Readwise Reader email address. Reader then surfaces the forwarded content, supports highlighting, and pulls those highlights into Obsidian. The imported notes include the newsletter name and installment, and the highlights appear as structured content ready for further processing.

Review Questions

  1. When front matter keys change over time, what two-step workflow keeps updates consistent across old notes?
  2. Which three methods are suggested for finding or troubleshooting Obsidian APIs when documentation is thin?
  3. What practical alternatives replace dynamic daily-note switching by date when using Workspaces?

Key Points

  1. 1

    Use VS Code to bulk-update Obsidian template front matter via search-and-replace across the entire vault, avoiding fragile one-off command-line edits.

  2. 2

    Maintain a metadata reference file listing expected parameter names and allowed values by category to prevent naming drift across notes.

  3. 3

    For custom scripting and automation, rely on community plugin documentation, Electron DevTools for runtime inspection, and GitHub wikis/examples for API usage.

  4. 4

    Obsidian Workspaces can save static layout configurations, but dynamic daily-note selection by workspace date isn’t supported yet; keyboard shortcuts for periodic notes fill the gap.

  5. 5

    Open “today’s daily note” directly with a hotkey rather than navigating the file list, and consider embedding weekly notes into daily templates when weekly context is always needed.

  6. 6

    Capture email and newsletter highlights in Obsidian by forwarding content to Readwise Reader, highlighting there, and letting highlights sync into the vault.

Highlights

VS Code’s “replace all” across the vault is presented as the simplest way to propagate front matter changes to many existing notes at once.
A metadata file acts as a naming contract for front matter fields, making it easy to correct mistakes like email_address vs email.
Obsidian runs on Electron, so browser DevTools can be used to troubleshoot plugin/API behavior and inspect failures via the console.
Workspaces save layouts, but dynamic daily-note switching by date isn’t built in; keyboard shortcuts for periodic notes are the practical workaround.
Readwise Reader can ingest forwarded newsletters/emails and pull highlighted excerpts into Obsidian with the newsletter name and installment.

Topics

  • Obsidian Template Updates
  • VS Code Search Replace
  • Obsidian Scripting APIs
  • Workspaces and Periodic Notes
  • Readwise Reader Email Highlights
  • YNAB Integration

Mentioned