Release Note 0.4.1
New Feature
- Linked Attachment Base Directory: Added support for Zotero's "Linked Attachment Base Directory" (LABD) feature. Attachments whose path starts with attachments: are now correctly resolved using a user-configured base directory. Configure it in Settings → General → Linked Attachments (#20)
Improvements
- Linked file caching skipped: Linked files (linked_file) are no longer cached in IndexedDB. They are always read fresh from disk, avoiding stale copies and saving cache space.
- MD5 integrity check skipped for linked files: Linked files have no server-side MD5, so the unnecessary hash computation and integrity check are now bypassed.
- Computed MD5 for external annotation dedup: For linked files without a server MD5, the plugin now computes the file's MD5 from its content and stores it. This prevents expensive re-extraction of embedded PDF annotations on every open when the file hasn't changed.
- Fix bugs of extract external annotation multiple times.
- Cross-platform path resolution: LABD path joining uses Node.js path.join() on the main thread, ensuring correct behavior on Windows, macOS, and Linux.
- Attachment metadata refresh after sync: The reader view now refreshes the full attachment item from the database after a sync completes, ensuring the latest metadata (MD5, filename, etc.) is used for subsequent operations. External annotation extraction is also re-triggered after sync.