jlegewie / zotfile

Zotero plugin to manage your attachments: automatically rename, move, and attach PDFs (or other files) to Zotero items, sync PDFs from your Zotero library to your (mobile) PDF reader (e.g. an iPad, Android tablet, etc.), and extract PDF annotations.
4.05k stars 282 forks source link

Use underscore instead of forward slash when renaming files #537

Open Tomagori opened 3 years ago

Tomagori commented 3 years ago

On windows, files can't have "/" in their name, so when zotfile has to write a "/", it just skips that character. A court ruling with docket number "03/60" is therefore saved with "0360" in the file name. Ideally, zotfile would recognize forward slashes in advance and replace them with an underscore (I think this is pretty much the standard replacement) when renaming files.

ahrendsen commented 3 years ago

This seems like a relatively straightforward fix and option to include in the "Renaming Rules" tab, perhaps the user could supply a text file where each line represents a replacement to use when renaming.

I make no promises, but I'm leaving this comment as a note to myself to try to implement this.

@ahrendsen