Skip to content
Esc

    Type to search the documentation…

    ↑↓ Navigate Open Esc Close

    Template Variables Overview

    Template variables are what transform Snipset from a simple text expander into a powerful automation tool. By embedding special codes inside your snippet content, you can dynamically insert data, trigger actions, or fetch information exactly at the moment the snippet expands.

    When a snippet expands, Snipset scans the content for variables and replaces each one with its real value at that exact moment.

    Snippet Content:Dear #{clipboard},

    If your clipboard contains “John”:Dear John,

    Every variable in Snipset must follow a strict formatting rule:

    • It must start with a hash # followed immediately by an opening curly brace {.

    • It must end with a closing curly brace }.

    • Variables that take arguments use a colon : to separate the name from the argument (e.g., #{date:yyyy-MM-dd}).

    • Variables are case-sensitive: #{date} is correct. #{Date} will not work.

    Common Mistake: Do NOT use ${…} or {{…}}. These are used in other programming languages, but Snipset specifically requires #{…}.

    Variables are grouped by function. Click on a category to see its detailed documentation:

    CategoryWhat it does
    Date & TimeInsert the current date or time with custom formatting and offset math.
    Text & ClipboardPaste clipboard contents, capture selected text, and precisely position the cursor.
    ScriptingRun Rhai scripts for programmatic automation.
    InteractivePick random values.

    You can mix and match variables freely within a single snippet.

    Snippet:

    [#{date:dd/MM/yyyy}] Re: #{clipboard}#{cursor}

    On Expansion:[22/04/2026] Re: Project Alpha proposal| (cursor is placed at the end)

    Variables are evaluated left to right, top to bottom.