New Features
- Tree View Sorting — A new sort button (↕) in the tree view header lets you sort collections and items independently, just like Obsidian's native file explorer.
- Collections: Name (A to Z), Name (Z to A)
- Items: Title (A to Z), Title (Z to A), Modified time (new/old), Created time (new/old)
- Uses natural sort order (e.g. "Chapter 2" sorts before "Chapter 10")
- Sort preferences are persisted across sessions
Bug Fixes
- Annotations now sorted by document position — Annotations in source notes are sorted by
sortIndex(page → top-to-bottom → left-to-right), matching the reading order of the document. - Fixed annotation tags being undefined in templates — Tag names were not correctly mapped from the reader format, resulting in empty tags in rendered source notes.
- Fixed comment sanitization regression — Annotation comments containing
>characters could break Markdown blockquote structure in source notes; they are now properly escaped. - Fixed deleted annotations appearing in image extraction — Annotations with
syncStatus: "deleted"are now filtered out during batch image extraction.
Breaking Changes
dateCreatedrenamed todateAddedin annotation template context — If your custom templates referenceannotation.dateCreated, update them to useannotation.dateAddedinstead. This aligns the field name with the Zotero API convention used elsewhere in the plugin.