Macros
I find I tend to do the same actions with many/most items I add to Zotero. So, I was wondering if it would be possible to add a macro/macro-key feature.
I.e., a way to enter and save, say, javascript and bind it to a key in Zotero.
I.e., a way to enter and save, say, javascript and bind it to a key in Zotero.
I have a habit in programs such as Word or Excel, of using macros to do little housekeeping chores (things I find I do a lot).
In Zotero, I find that on most new items I:
1) fix up the case of the title
2) rename the pdf
3) remove the URL if it is a link to the DOI, and so on
From time to time, I also find I want to update several items in a similar way; for example, I might want to change all instances of an author from "Hinnings, C. R." to "Hinnings, C. Robert".
There are lot's of little things like this.
I got to thinking, that these are somewhat idiosyncratic (they apply to me and maybe just to me). So, rather than ask for a series of changes, I thought if there was a 'macro' like interface (and I suggested javascript because I thought it would be easiest to implement), then I could make 'macros' to do these things.
One of the things that make macros easy to use (I've found) is binding them to keys, so that when I press, say, Ctrl-z it could trigger my 'TidyUpItem' macro.
So, what would be nice is a way to store scripts/macros in Zotero and execute them by binding individual scripts to specific keys.
I hope that's clearer.
PDFs are automatically renamed already, though - check the filename in the right-hand pane (rather than the file _label_ in the center pane).
For what it's worth, none of the things you request (except maybe #3) are uncommon requests, which is why solving those for all users is much more important: Right-click on the title, Transform Text Right-click on the attachment, Rename File from Parent Metadata (which is done automatically for attachments saved via translators). The format string can be configured, but the format options are limited right now. See other threads for more details. Batch editing is planned.
But if you're comfortable writing the JS yourself, get one of the existing Firefox extensions that can do this. (I don't know if it still works, but keyconfig was one.)
Thanks. Yes, I do many/all of those things already. And I do run JS via an add-on. But there are tweaks ... the transform text doesn't get it quite APA 'ready'.
It was a convenience thing more than anything else--having the macro stored and easily accessible.
Nevertheless, I can appreciate that few users would use it (as with macros in Word/Excel).
https://addons.mozilla.org/en-US/firefox/addon/custom-buttons/
Do you think that Zotero should duplicate this functionality, or did I miss something?
Would this solve your problem?