Placeholder reference
Placeholder syntax
Section titled “Placeholder syntax”{keyword [attribute="value" ...] [| modifier ...]}All placeholders
Section titled “All placeholders”| Placeholder | Attributes | Snippets | Quick links |
|---|---|---|---|
{date} | format, offset | ✓ | ✓ |
{time} | format, offset | ✓ | ✓ |
{datetime} | format, offset | ✓ | ✓ |
{day} | — | ✓ | ✓ |
{clipboard} | offset | ✓ | ✓ |
{selection} | — | ✓ | — |
{cursor} | — | ✓ | — |
{uuid} | — | ✓ | ✓ |
{random} / {random:uuid} | — | ✓ | ✓ |
{random:1..100} | — | ✓ | ✓ |
{random:a,b,c} | — | ✓ | ✓ |
{snippet name="…"} | name (required) | ✓ | — |
| {argument} | name, default, options | ✓ | ✓ |
Date/time attributes
Section titled “Date/time attributes”| Attribute | Type | Description |
|---|---|---|
format | String | SimpleDateFormat pattern (e.g. "yyyy-MM-dd") |
offset | String | One or more space-separated offset values (e.g. "+1d", "+1y -3d") |
Offset units (case-sensitive):
| Unit | Meaning |
|---|---|
y | Years |
M | Months |
d | Days |
h | Hours |
m | Minutes |
Clipboard attributes
Section titled “Clipboard attributes”| Attribute | Type | Description |
|---|---|---|
offset | Integer string | Index into clipboard history. "0" = most recent (default) |
Argument attributes
Section titled “Argument attributes”| Attribute | Type | Description |
|---|---|---|
name | String | Identifier; reuse the same name to reuse the value |
default | String | Pre-filled value; makes the argument optional |
options | Comma-separated string | Presents a picker instead of free-text input |
Maximum 3 arguments per snippet or quick link.
Modifiers
Section titled “Modifiers”| Modifier | Applies to | Description |
|---|---|---|
uppercase | Any | Convert to ALL CAPS |
lowercase | Any | Convert to all lowercase |
trim | Any | Strip leading/trailing whitespace |
percent-encode | Any | URL percent-encode the value |
json-stringify | Any | JSON-encode (escape quotes, newlines, etc.) |
raw | Quick links | Disable automatic URL encoding |
capitalcase | Any | Capitalize the first letter of each word (lowercases rest). Alias: capitals |
reverse | Any | Reverse by Unicode grapheme clusters |
stripdiacritics | Any | Remove combining diacritical marks (NFD normalization). Example: café → cafe |
stripnonalphanumeric | Any | Remove all non-letter, non-digit characters |
Snippet inclusion attributes
Section titled “Snippet inclusion attributes”| Attribute | Required | Description |
|---|---|---|
name | Yes | Trigger of the snippet to expand inline |
The referenced snippet cannot itself contain {snippet}.