Comments (3)
I am not working on zotfile right now but will add this option next time. Until then you can just add
if (!Zotero.ZotFile.prefs.getBoolPref("autoRenameIfMultipleAttachments")) if(parent.getAttachments().length>1) continue;
To the notify
function in the autoRename
object right after the line var parent = Zotero.Items.get(id_parent);
. I have already added the option autoRenameIfMultipleAttachments
to 2.2.4, which is now under review. I haven't tested this but I think it should work when you set autoRenameIfMultipleAttachments
to false in about:config
.
from zotfile.
It might also be insteresting to consider an renaming pattern for all additional attachment after the first one. The use case I have in mind is adding an article from a scientific journal having supplemental data. The first file which is attached is usually the original article. After having added the article itself, a user might want to add supplemental information/data. The supplements could be renamed to something like $usual_renaming_pattern$_supp. If there are several supplements a nice solution would be to name same with ascending numbers, i.e. $usual_renaming_pattern$_supp1, _supp2 etc.
from zotfile.
mronkko, this has been fixed in the current dev version. You now have four options for automatic renaming: Never, Always ask, Only ask if item has other atts, Always rename. The 'asking' uses a clickable, non-disruptive window that appears in the bottom right corner (same as previous info window but clickable).
Wuffi, I don't see how this can be done automatically because not all additional attachments are supplements. But open another ticket if you have a proposal.
from zotfile.
Related Issues (20)
- Zotero 6.0.23, ZotFile v 5.1.2 group folder files not moved
- Renaming rules with number of words limitation instead of number of characters
- Subfolder by Collection only? (not sub-collections) HOT 2
- Questions about whether the plugin can currently run
- Compatibility with build in annotation feature
- Error regarding attachment note missing
- Zotero 7 support HOT 18
- zotfile cannot automatically move new items to my desired folder
- Fails to extract TOC on PDF
- Zotfile download flagged as "corrupt" HOT 3
- Additional templates for renaming files.
- A suggestion for file renaming and moving
- `%b` for citation key in renaming format no longer works HOT 11
- [Feature Idea] Add support for extracting link for the cloud location of the file
- "Attach new file" does not work if the PDF is open in another application
- Incomplete name after using rename and move by zotero rule
- [Question]: How to avoid having commas in renamed files? HOT 1
- Rename linked file in arbitrary directory, without changing location
- Regex capturing not working as one would expect (Failed to compose renaming scheme)
- Feature request: allow multiple Watch folders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zotfile.