Created
March 22, 2025 20:02
-
-
Save lamberta/fdfde5cdf2b881ee454a00de9fca11ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"translatorID": "58eb3098-b761-4f9b-89a9-6d1144866c8f", | |
"label": "Org Cite Key Quick Copy", | |
"creator": "Billy Lamberta", | |
"target": "", | |
"minVersion": "5.0", | |
"maxVersion": "", | |
"priority": 100, | |
"inRepository": false, | |
"translatorType": 2, | |
"lastUpdated": "2025-03-22 19:07:29" | |
} | |
/** | |
* Copy a Zotero citation in Org Citation link format: [cite:@key] | |
* See: https://orgmode.org/manual/Citations.html | |
* | |
* Install: | |
* 1. Copy this file to the `translators/` directory of your Zotero data directory | |
* 2. Restart Zotero | |
* 3. Zotero Settings > Export > Item Format: select "Org Cite Key Quick Copy" | |
*/ | |
function doExport() { | |
const citations = []; | |
let item; | |
for (item = Zotero.nextItem(); item; item = Zotero.nextItem()) { | |
citations.push("@" + item.citationKey); | |
} | |
if (citations.length > 0) { | |
Zotero.write("[cite:" + citations.join(";") + "]"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment