You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Parse VALUE type:multiline options and propagate per-token prompt overrides
- Apply overrides to sequential prompts and one-page inputs
- Preserve scripted VALUE injections and warn on unsupported types
Closes#339
Copy file name to clipboardExpand all lines: docs/docs/FormatSyntax.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ title: Format syntax
13
13
|`{{VALUE:<variable name>\|label:<helper text>}}`| Adds helper text to the prompt for a single-value input. The helper appears below the header and is useful for reminders or instructions. For multi-value lists, use the same syntax to label the suggester (e.g., `{{VALUE:Red,Green,Blue\|label:Pick a color}}`). |
14
14
|`{{VALUE:<variable name>\|<default>}}`| Same as above, but with a default value. For single-value prompts (e.g., `{{VALUE:name\|Anonymous}}`), the default is pre-populated in the input field - press Enter to accept or clear/edit it. For multi-value suggesters without `\|custom`, you must select one of the provided options (no default applies). If you combine options like `\|label:...`, use `\|default:<value>` instead of the shorthand (mixing option keys with a bare default is not supported). |
15
15
|`{{VALUE:<variable name>\|default:<value>}}`| Option-form default value, required when combining with other options like `\|label:`. Example: `{{VALUE:title\|label:Snake case\|default:My_Title}}`. |
16
+
|`{{VALUE\|type:multiline}}` / `{{VALUE:<variable>\|type:multiline}}`| Forces a multi-line input prompt/textarea for that VALUE token. Only supported for single-value prompts (no comma options / `\|custom`). Overrides the global "Use Multi-line Input Prompt" setting. If `\|type:` is present, shorthand defaults like `\|Some value` are ignored; use `\|default:` instead. |
16
17
|`{{VALUE:<options>\|custom}}`| Allows you to type custom values in addition to selecting from the provided options. Example: `{{VALUE:Red,Green,Blue\|custom}}` will suggest Red, Green, and Blue, but also allows you to type any other value like "Purple". This is useful when you have common options but want flexibility for edge cases. **Note:** You cannot combine `\|custom` with a shorthand default value - use `\|default:` if you need both. |
17
18
|`{{LINKCURRENT}}`| A link to the file from which the template or capture was triggered (`[[link]]` format). When the append-link setting is set to **Enabled (skip if no active file)**, this token resolves to an empty string instead of throwing an error if no note is focused. |
18
19
|`{{FILENAMECURRENT}}`| The basename (without extension) of the file from which the template or capture was triggered. Honors the same **required/optional** behavior as `{{LINKCURRENT}}` - when optional and no active file exists, resolves to an empty string. |
@@ -26,3 +27,12 @@ title: Format syntax
26
27
|`{{CLIPBOARD}}`| The current clipboard content. Will be empty if clipboard access fails due to permissions or security restrictions. |
27
28
|`{{RANDOM:<length>}}`| Generates a random alphanumeric string of the specified length (1-100). Useful for creating unique identifiers, block references, or temporary codes. Example: `{{RANDOM:6}}` generates something like `3YusT5`. |
28
29
|`{{TITLE}}`| The final rendered filename (without extension) of the note being created or captured to. |
30
+
31
+
### Mixed-mode example
32
+
33
+
Use single-line for a title and multi-line for a body:
0 commit comments