wileyyugioh / zotmoov

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

Request: Add Zotfile's Attach New File operation #34

Closed TW96 closed 3 months ago

TW96 commented 3 months ago

As I understand it, Zotmoov does not currently include Zotfile's Attach New File option ? In Zotfile, that right-click option looks to the nominated folder (not the same as the 'move to' folder) and finds the latest-dated file there (from the allowed file types list). It then asks the user if they wish to add that named file to the currently selected item (and move the file from that folder to the 'move to' folder as a linked file). It is very useful when PDFs have to be added in ways other than automatically by the Zotero web connector (eg on sites where the connector fails to get the PDF and it has to be manually downloaded).

deafmute1 commented 3 months ago

Attanger supports this feature.

wileyyugioh commented 3 months ago

If enough people want it I'll definitely consider adding the feature. But honestly I find just dragging the file from your browser's download window and dropping it onto the Zotero item to add files pretty easy already.

talestomaz commented 3 months ago

I used that Zotfile function a lot. I can certainly live with the dragging behaviour, but it would be a plus for me if Zotmoov would do that as well.

wileyyugioh commented 3 months ago

I added this feature to the latest pre-release. Let me know if there are any problems with it.

wangshengseee commented 3 months ago

I added this feature to the latest pre-release. Let me know if there are any problems with it.

It's strange that when I use "attach new file" operation, the original downloaded pdf still exists in my "download“ file folder, although I have set File Behavior to "Move". It seems that the actual operation is still "Copy".

TW96 commented 3 months ago

In Zotfile it is always a move. That seems to make most sense. You download a new file manually to the designated "Attach" folder, where it only lives temporarily (as the most-recently-dated file) until moved to the designated main, "Move to" linked-file folder.

wangshengseee commented 3 months ago

In Zotfile it is always a move. That seems to make most sense. You download a new file manually to the designated "Attach" folder, where it only lives temporarily (as the most-recently-dated file) until moved to the designated main, "Move to" linked-file folder.

Totally agree. So I'm confused this consequence should be owing to an inherent bug or wrong personal settings.

wileyyugioh commented 3 months ago

1.1.8 now deletes the original file from the source directory and filters files based on the allowed file extensions setting.

wangshengseee commented 3 months ago

I added this feature to the latest pre-release. Let me know if there are any problems with it.

In Zotfile, conference papers from IEEE will be organized in a file folder named "IEEE", but in Zotmoov, conference papers will be classified according to the conference name. As a result, there will be numerous file folders in my root directory, which is not prefered, I guess.

wileyyugioh commented 3 months ago

What is your subdirectory string?

wangshengseee commented 3 months ago

What is your subdirectory string?

{%j}, It's very useful for journal article.

wileyyugioh commented 3 months ago

I just checked a random IEEE conference paper in ZotFile and ZotMoov and it gives the same full conference name for %j. Maybe try %p/%j if you are concerned about your root folder being messy. If you want to continue this, please create a new issue.