Zotfile : renaming after creating a new item from existing pdf creates a second pdf

Hello,
I use Zotfile all the time to rename files and have them in my pdf file hierarchy, and it is just great, could not do without it.

I have also discovered the (I think relatively new) option to just drop a pdf onto Zotero, which will then create the item automatically in the open folder. Zotero does in this case not just link the pdf file to the item, but copies the pdf into its own folder system.
So I was using Zotfile's "Rename Attachments" to get the file back where it was and get a linked attachment.
However, the original file does still exist, and so Zotfile creates a new one, with "22" as year (I have the naming rule of FirstAuthorName.YYYY.pdf, and from a file which was "Smith.2021.pdf" I get "Smith.22.pdf"). So the result is that I have the pdf now twice in the folder, and the file linked to Zotero has a wrong name. The file with the correct name is not linked.
As this took a while to discover, I have quite some pdfs in double now ...

Zotfile also does this when one imports (e.g. web importer) an pdf of an author who had already published a paper this year. So Smith.2021.pdf is already existing, Zotfile will create then again Smith.22.pdf. In this case it would be great if Zotfile could rather create "Smith.2021.b.pdf" or "Smith.2021.2.pdf", rather than "22". But this case could conflict with the above case.

One solution would be if Zotero could have an option, that when a pdf is dropped and the item created this way, that then the attachment is linked rather than copied. I have tried some key combinations, CTRL+drop, ALT+drop, but these do not seem to change anything (ALT+drop changes from "Copier" to "-> "le d├ęplacement" (even though I have Zotero in English, this is shown in French, probably because my system is French), but the resulting action does not seem changed in Zotero.

The other solution would be that Zotfile recognizes that there is already an existing file with the name, and ask if this file should be replaced or the new file renamed.

Cheers

Sign In or Register to comment.