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
Adds a `fieldRename` option for renaming top-level YAML field names in
the frontmatter. Comma-separated `from=to` rules. The motivating case is
correspondence templates: Tropy stores the recipient as `dc:audience`,
which the plugin emits as `audience:` — users whose convention is
`recipient:` configure `audience=recipient` and get exactly that.
Rename applies to standard frontmatter fields (title, creator,
publication, date, doc_type, source, archive, collection, box, folder,
tags, photos) and to custom template properties that flow through the
passthrough. Tag-dispatched entity fields are unaffected — those are
already configurable via tagPrefixDispatch. The internal `tropy_hash:`
field is also non-renamable since idempotency depends on reading it.
This is also the first stable release. The release.yml workflow no
longer marks tags as pre-release; v1.0.0 lands as a real GitHub release.
README roadmap marks v1.0.0 done.
Verified end to end:
- fieldRename: creator=author, audience=recipient produces author/
recipient YAML keys with values intact
- tropy_hash preserved (not renamable)
- All 3 fixture exports still idempotent under default config
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: package.json
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "tropymd",
3
3
"productName": "Tropy.md",
4
-
"version": "0.4.1",
4
+
"version": "1.0.0",
5
5
"description": "Export Tropy items as Markdown files (one per item) with YAML frontmatter, suitable for Obsidian and other Markdown editors.",
6
6
"icon": "icon.svg",
7
7
"main": "index.js",
@@ -87,6 +87,13 @@
87
87
"label": "Embed photos in the body",
88
88
"default": false,
89
89
"hint": "When enabled, each page's notes are preceded by an `` line that embeds the scan image. Useful for editors that render image links inline. Single-photo items skip the page marker; multi-photo items get both the marker and the embed."
90
+
},
91
+
{
92
+
"field": "fieldRename",
93
+
"type": "string",
94
+
"label": "Field rename (frontmatter keys)",
95
+
"default": "",
96
+
"hint": "Comma-separated `from=to` rules that rename top-level YAML field names. Useful for matching downstream conventions — e.g. correspondence items use `dc:audience` for the recipient, which the plugin emits as `audience:` by default; configure `audience=recipient` to land it in your conventional `recipient:` field. Apply equally to the standard fields (creator, publication, date, doc_type, source, archive, collection, box, folder, tags, photos) and any custom template properties that pass through. Tag-dispatched entity fields are unaffected — use the Tag prefix dispatch setting to name those."
0 commit comments