Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aljedaxi/logseq-zotero
zotering in logseq
https://github.com/aljedaxi/logseq-zotero
Last synced: 3 months ago
JSON representation
zotering in logseq
- Host: GitHub
- URL: https://github.com/aljedaxi/logseq-zotero
- Owner: aljedaxi
- Archived: true
- Created: 2021-01-16T19:57:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-20T22:00:53.000Z (over 3 years ago)
- Last Synced: 2024-05-18T22:23:43.515Z (6 months ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 22
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-logseq - logseq-zotero - rudimentary means of exporting a zotero library to logseq (💡 Workflows and Innovations)
README
# logseq x zotero
## how to use
first, clone your logseq repo.
### on unix systems:
install node somehow. [this](https://formulae.brew.sh/formula/node#default) is nice on mac os.
```sh
API_KEY=this is my api key, that i made by going to https://www.zotero.org/settings/keys
USER_ID=this is my user id, that\'s listed at https://www.zotero.org/settings/keys
BIB_FILE_TITLE=title for the file that links to all created files; optional
export API_KEY USER_ID; node ./index.js ${pathToMyLogseqInstance}/pages
```on windows:
install node somehow. i recommend [this](https://chocolatey.org/packages/nodejs.install)
```bat
SET API_KEY=this is my api key, that i made by going to https://www.zotero.org/settings/keys
SET USER_ID=this is my user id, that's listed at https://www.zotero.org/settings/keys
SET BIB_FILE_TITLE=title for the file that links to all created files; optional
call node ./index.js ${pathToMyLogseqInstance}/pages
# haven't tested this yet!
```## what it does
this will access your zotero library and create a file called `z_${titleOfWorkLowerSnakeCase}.md`, with the title of the work as the title. each file has the title of the work as the title, so you can reference it in logseq as [[title of the work]]. a link to every added file is put into `${BIB_FILE_TITLE.toLowerCase().replace(/\s+/, '_')}`, a little bibliography of sorts.
it only writes files that don't currently exist, so feel free to add notes to created files.
if you want a different file name or file title, go into index.js and replace the function `makeName` with anything with the same signature. the function takes as input the data property of https://gist.github.com/dstillman/f1030b9609aadc51ddec and returns `Maybe<{title: string; fileName: string}>`. follow your heart.