Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

VarPad

griteegritee17 downloads

Edit variables in a note and copy live-rendered text snippets.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

A small Obsidian plugin for editing note-local variables and copying live-rendered text snippets. The first version focuses on VarPad's core workflow; it doesn't include the standalone app's workspace manager, themes, or other extras.

A VarPad block in Reading view: color-coded variable fields above snippets that show the current values filled in

Why

Some command sequences are too irregular to script but too frequent to retype. Each time, the steps are the same and only a few values change: an order ID, a pod name, an environment, or a "since" timestamp. Common examples:

  • A routine debug procedure — look up a record in the database, then pull the matching AWS logs from a specific time onward.
  • Debugging a Kubernetes pod — describe it, tail its logs, then open a shell in it.
  • Deploying or connecting to servers — the same SSH and deploy steps against different hosts or users.

Without a tool, this usually means copying an old command from shell history or a notes file and carefully editing each value by hand, which makes it easy to miss one. With VarPad, you keep the procedure in a note, enter this run's values once at the top, and copy each finished command in order. Each value is color-coded, so you can see where it appears in every command. The values are saved with the note, so the last run is there the next time you need it.

A VarPad block can also be a first step toward automation. Once a sequence has been run often enough to be stable, the block already documents the steps in order, and its variables are the parameters a script will need, so most of the work of writing the script is already done.

Use

Create a varpad fenced block in a Markdown note. Both backtick and tilde fences are supported. For example:

```varpad
variables:
  user: deploy
  host: staging.example.com
  app_dir: /var/www/myapp

snippets:
  Connect: "ssh {{user}}@{{host}}"
  Deploy: |
    ssh {{user}}@{{host}}
    cd {{app_dir}}
    ./deploy.sh
```

The block uses YAML: variables is a mapping of names to scalar values; snippets maps display labels to template strings. Templates substitute {{variable_name}}. Undefined names remain visible in output.

In Reading view and Live Preview, the plugin replaces the source block with editable variable fields and live snippet outputs. Type or paste into a field to update every output immediately. Double-click or triple-click a field to select its full value. Select Copy on a snippet to copy its current output. When you leave a field or press Enter, the new value is saved to the block in the note, so it stays with the note and syncs with your vault.

The YAML is parsed as data; embedded JavaScript is not evaluated.

Related plugins

Several plugins cover parts of this workflow, and one of them may suit you better:

  • Live Note Parameters — the closest match. You select {{NAME}} references in commands to edit them, with defaults stored in frontmatter. It works across a whole note: parameters can appear anywhere in prose or commands, and values typed while you work stay in the current tab rather than being saved.
  • Replace Pencil — turns <placeholders> in code blocks into input fields in Reading view, with a copy button for the filled-in result.
  • Vault Variables — vault-wide {{name}} values defined in the plugin's settings, rather than edited per run in the note.
  • Meta Bind — general-purpose input and view fields bound to frontmatter. A similar form is possible, but you have to assemble it yourself.
  • Shell commands and Templater — run commands or generate notes from variables, rather than giving you commands to review and copy.

VarPad is scoped more narrowly than any of these, Live Note Parameters included. Everything lives inside a single varpad fenced code block: the variables, the commands, and the last run's values, with nothing in frontmatter, settings, or the rest of the note. That makes a block easy to copy between notes or share as-is, and a note can hold several independent blocks. Inside the block, the variables form a short form at the top, and each one is color-coded: its input border and every place its value appears in the commands share the same color, so you can quickly see what a change will affect.

HealthExcellent
ReviewSatisfactory
About
Edit note-local variables and render templates inline as color-coded snippets for quick, copy-ready commands. Create varpad fenced blocks with YAML variables and labeled snippets; save values with the note to reuse runs and clearly see where each variable appears across commands.
TemplatingSnippets
Details
Current version
0.1.0
Last updated
2 weeks ago
Created
2 weeks ago
Updates
1 release
Downloads
17
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
griteegritee
GitHubgritee
  1. Community
  2. Plugins
  3. Templating
  4. VarPad

Related plugins

Templater

Create and use dynamic templates.

Latex Suite

Make typesetting LaTeX math as fast as handwriting through snippets, text expansion, and editor enhancements.

Folder notes

Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.

CSS Editor

Edit CSS snippet files.

QuickAdd

Quickly add new notes or content to your vault.

Journals

Manage your journals.

Fantasy Statblocks

Create, manage and view a Fantasy Bestiary with Dungeons and Dragons style statblocks.

Periodic Notes

Manage your daily, weekly, and monthly notes.

Kindle Highlights

Sync your Kindle book highlights using your Amazon login or uploading your My Clippings file.

Weread

Sync Tencent Weread highlights and annotations.