Skip to content

Releases

ZotFile 6.3.0

Choose a tag to compare

@meizano meizano released this 17 Nov 12:12

Adds a local LRU file cache (default 1 GB) to the rclone integration, plus "Fetch from Drive".

New: Local LRU cache

  • Files in folders with an rclone remote stay on disk and count against a configurable cache limit (default 1 GB, 0 = unlimited): Settings -> ZotFile -> Other Advanced Settings -> rclone Sync
  • When the cache grows beyond the limit, the least recently used files are removed locally — but only after their existence on the remote has been verified (rclone lsjson --stat, fallback rclone size --json)
  • Never evicted: files outside mapped folders, files never uploaded, zero-size files, and files used within the last minute
  • New prefs: rclone.cache.enabled, rclone.cache.maxGB, rclone.cache.verifyUpload, rclone.cache.touchOnOpen
  • Cache index zotfile-rclone-cache.json in the Zotero profile directory, written atomically; eviction runs after uploads, ~10 s after startup, every 60 minutes, and via the Clear now button (with a live Cache: 0.42 GB / 1 GB (37 files) status label)
  • New menu item Fetch from Drive (right-click attachment -> Manage Attachments) downloads the file from the remote and opens it in Zotero
  • Opening an attachment updates the LRU order (best-effort hook, can be disabled)

Safety properties

  • Files that cannot be verified on the remote are never deleted locally (offline = no eviction)
  • Cache operations are serialized with a simple lock; eviction never blocks the UI
  • With rclone.enabled=false nothing changes

See docs/rclone-cache.md for the full manual test checklist.

Install

Download zotfile-6.3.0.xpi below, then in Zotero: Tools -> Plugins -> gear icon -> Install Plugin From File.

ZotFile 6.2.0

Choose a tag to compare

@meizano meizano released this 17 Nov 02:33

Adds rclone-based upload/download for folders connected to a Google Drive (or any rclone-supported) remote.

New: rclone sync

  • Each OS path mapping can now define an rclone remote (for example gdrive:MyDrive) alongside its Windows and Linux paths — the third field in the mapping dialog
  • With Sync mapped folders with rclone enabled (Settings -> ZotFile -> Other Advanced Settings), ZotFile uses the rclone command line tool to keep the mapped folder and the remote in sync:
    • files that ZotFile copies or moves into the mapped folder (renamed attachments, files sent to the tablet folder) are uploaded automatically
    • files that are missing locally (for example tablet files after switching from Windows to Linux) are downloaded automatically before use
    • remote copies of files that ZotFile removes (files pulled back from the tablet) are deleted
  • The rclone executable can be a full path or just rclone if it is on the PATH

Setup example

  1. OS Path Mapping: Windows path G:\My Drive, Linux path /media/rivalus/GDrive, rclone remote gdrive:MyDrive (adjust to your rclone remote name)
  2. Enable "Sync mapped folders with rclone" and make sure rclone works on both machines

Install

Download zotfile-6.2.0.xpi below, then in Zotero: Tools -> Plugins -> gear icon -> Install Plugin From File.

ZotFile 6.1.0

Choose a tag to compare

@meizano meizano released this 16 Nov 00:55

Adds support for folders that live under a different path on each operating system — for example a Google Drive folder that is G:\My Drive\... on Windows and mounted with rclone under /media/.../GDrive/... on Linux.

New: OS Path Mappings

  • New setting under Settings -> ZotFile -> Other Advanced Settings -> OS Path Mappings
  • Each mapping pairs the Windows path and the Linux/macOS path of the same folder, e.g. G:\My Drive and /media/rivalus/GDrive
  • Paths are translated automatically depending on the operating system, so the same ZotFile settings (source folder, custom location, tablet folder and project subfolders) work on both systems
  • Prefix matching is case-insensitive for Windows-style drive paths and respects folder boundaries (e.g. G:\My DriveBackup is never confused with G:\My Drive)

Install

Download zotfile-6.1.0.xpi below, then in Zotero: Tools -> Plugins -> gear icon -> Install Plugin From File.

ZotFile 6.0.0

Choose a tag to compare

@meizano meizano released this 12 Nov 11:50

ZotFile ported to the bootstrapped plugin format required by Zotero 8, 9 and 10 (tested with Zotero 10.0.8).

Included

  • Attaching new files from a source folder
  • Renaming and moving attachments (stored or linked, with wildcard-based subfolders)
  • Automatic renaming of new attachments
  • Tablet folder support (send/get back, background and foreground mode, custom or collection-based subfolders, saved searches for tablet files)
  • Settings pane (Settings -> ZotFile)

Changes

  • Tablet information is now stored in zotfile-tablet.json in the Zotero data directory instead of the attachment note (data in notes from older versions is still read and migrated)
  • Not included: extraction of PDF annotations and table of contents (Zotero's built-in PDF reader covers these)

Install

Download zotfile-6.0.0.xpi below, then in Zotero: Tools -> Plugins -> gear icon -> Install Plugin From File. If you use automatic renaming, turn off Zotero's own "Automatically rename locally added files" setting to avoid both renaming the same file.