Skip to content

tmd fix

The fix command provides subcommands to automatically correct common issues in your vault.

Expands shorthand wiki-link targets to full Object IDs.

Terminal window
tmd fix wikilinks

Walks all objects in the vault and replaces shorthand wiki-link targets with their resolved full IDs (type/name-ulid).

Shorthand formats that get expanded:

FormatExampleResolution
[[type/name]][[book/clean-code]]Resolved by name within the specified type
[[name]][[clean-code]]Resolved by name within the source object’s type

Full IDs ([[type/name-ulid]]) are already complete and are not modified.

Expanded 3 wiki-link(s) to full IDs.

If shorthand links match multiple objects (ambiguous), they are reported but not expanded:

note/my-note-01abc: ambiguous [[golang]] — matches: book/golang-intro-01def, book/golang-guide-01ghi

If all wiki-links are already full IDs:

All wiki-links are already full IDs. No changes needed.