wileyyugioh / zotmoov

Zotero plugin to automatically move attachments and link them
GNU General Public License v3.0
508 stars 6 forks source link

Filename Format Does Not Follow Zotero Settings #31

Closed heymaad closed 3 months ago

heymaad commented 3 months ago

The plugin is supposed to follow the filename format according to what is set in the Zotero settings, but it is not. I have changed the default naming scheme from {{ firstCreator suffix=" - " }}{{ year suffix=" - " }}{{ title truncate="100" }} to {{ authors max="1" suffix=" - " }}{{ year suffix=" - " }}{{ title truncate="150" }}

However, the plugin still names the files according to the {{ firstCreator suffix=" - " }}{{ year suffix=" - " }}{{ title truncate="100" }} formatting.

wileyyugioh commented 3 months ago

Can you confirm this is a ZotMoov issue by testing it with the add-on uninstalled? The add-on uses the filename given by Zotero.

Also, do you mean the title, which is what is shown in the main Zotero panel next to the linked file icon, or do you mean the actual filename which is the name of the file in the file directory.

I tried your custom naming scheme on my computer and it seemed to work ok.

Screen Shot 2024-08-04 at 22 36 53
heymaad commented 3 months ago

I mean the actual filename which is the name of the file in the Windows Explorer. I noticed that if I first click the "Rename File from Parent Metadata" before using ZotMoov, then the file name is according to the new naming scheme.

wileyyugioh commented 3 months ago

Have you enabled automatically renaming locally added files in the Zotero settings? I'm trying to recreate the issue but cannot.

heymaad commented 3 months ago

I have enabled that, yes. But AFAIK, that option only works for the newly added entries. The files that are already in Zotero, are not updated when you change the naming scheme. I read on Zotero Forum, that they will add the option to also update the file names that already in Zotero.

wileyyugioh commented 3 months ago

Yes, ZotMoov copies the file from Zotero storage. So if the filename isn't correct in Zotero storage, that issue will propagate to the ZotMoov copy.