Repository navigation
0.19.0 — Typed property coercion (checkbox / date)
Rules targeting properties registered as checkbox, date, or datetime now write the YAML with the right runtime type, so the native Obsidian widgets render properly. Closes part of #11.
New Features
- Checkbox: rule value
"true"(any casing) becomes the booleantrue; anything else becomesfalse. Renders as a real Obsidian checkbox instead of plain text. - Date: values are normalized to
YYYY-MM-DDbefore writing. If you type in ISO, it's used directly. Otherwise the plugin tries Daily Notes' configured date format (if the core plugin is enabled), then Templates' (if enabled), thenDD-MM-YYYY,DD/MM/YYYY, andYYYY/MM/DDin that order. First strict match wins.MM-DD-YYYYis intentionally excluded to avoid silent DD-vs-MM ambiguity for non-US users. - Datetime: trimmed and written as-is (Daily Notes / Templates only expose date formats).
addcollapses intooverwritefor typed scalar properties — you can't push a second value into a checkbox or a date, so the plugin transparently overwrites.
Bug Fixes
_writeFrontmatterused to delete any property whose value wasnullORundefined. It now only deletes onundefined.nullis preserved as a valid value. No visible behavior change today, but it removes a footgun for future code paths.
Why
Issue #11 from @KenCrandall reported that checkbox and date property values were always written as strings, breaking the native widgets. This release fixes that.
Compatibility
- Minimum Obsidian version: 1.5.0 (unchanged).