├── .editorconfig
├── .eslintignore
├── .eslintrc.json
├── .github
├── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
└── workflows
│ └── build-and-test.yml
├── .gitignore
├── .prettierrc
├── LICENSE
├── README.md
├── docs
├── assets
│ ├── css
│ │ └── main.css
│ ├── images
│ │ ├── icons.png
│ │ ├── icons@2x.png
│ │ ├── widgets.png
│ │ └── widgets@2x.png
│ └── js
│ │ └── search.js
├── classes
│ ├── entry.html
│ ├── entrybiblatexadapter.html
│ ├── entrycsladapter.html
│ └── library.html
├── index.html
├── interfaces
│ ├── author.html
│ ├── entrydatabiblatex.html
│ ├── entrydatacsl.html
│ └── iindexable.html
└── modules.html
├── manifest.json
├── package-lock.json
├── package.json
├── rollup.config.js
├── screenshot.png
├── src
├── __tests__
│ ├── library.bib
│ ├── library.json
│ ├── regression_7f9aefe.bib
│ ├── regression_fe15ef6.bib
│ └── types.spec.ts
├── events.ts
├── main.ts
├── modals.ts
├── obsidian-extensions.d.ts
├── obsidian-extensions.ts
├── original-fs.d.ts
├── settings.ts
├── types.ts
├── util.ts
├── worker.ts
└── workers.d.ts
├── styles.css
├── tsconfig.json
└── versions.json
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | trim_trailing_whitespace = true
7 | insert_final_newline = true
8 |
9 | [*.md]
10 | insert_final_newline = false
11 | trim_trailing_whitespace = false
12 |
13 | [*.{js,jsx,json,ts,tsx,yml}]
14 | indent_size = 2
15 | indent_style = space
16 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | /**/*.js
2 |
--------------------------------------------------------------------------------
/.eslintrc.json:
--------------------------------------------------------------------------------
1 |
2 | {
3 | "env": {
4 | "browser": false,
5 | "es6": true,
6 | "node": true
7 | },
8 | "parser": "@typescript-eslint/parser",
9 | "parserOptions": {
10 | "project": "tsconfig.json",
11 | "sourceType": "module"
12 | },
13 | "extends": [
14 | "prettier",
15 | "prettier/@typescript-eslint",
16 | "plugin:prettier/recommended",
17 | "eslint:recommended",
18 | "plugin:@typescript-eslint/recommended"
19 | ],
20 | "plugins": ["prettier", "@typescript-eslint"]
21 | }
22 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: bug
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Console output**
21 | Please open the Obsidian developer console (Ctrl+Shift+I). Click anywhere in the console and force reload Obsidian by typing Ctrl+R. Then reproduce the issue you're describing. Please include any relevant error messages that appear in the console in your report here.
22 |
23 | **Expected behavior**
24 | A clear and concise description of what you expected to happen.
25 |
26 | **Screenshots**
27 | If applicable, add screenshots to help explain your problem.
28 |
29 | **Platform**
30 | - OS: [e.g. OS X 11.5.2]
31 | - Obsidian version [e.g. 0.12.13]
32 | - Plugin version [e.g. 0.4.3]
33 |
34 | **Additional context**
35 | Add any other context about the problem here.
36 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/workflows/build-and-test.yml:
--------------------------------------------------------------------------------
1 | # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3 |
4 | name: Node.js CI
5 |
6 | on:
7 | push:
8 | branches: [ master, develop ]
9 | pull_request:
10 | branches: [ master, develop ]
11 |
12 | jobs:
13 | build:
14 |
15 | runs-on: ubuntu-latest
16 |
17 | steps:
18 | - uses: actions/checkout@v2
19 | - uses: actions/setup-node@v1
20 | with:
21 | node-version: 12.x
22 | - name: Reconfigure git to use HTTP authentication
23 | run: >
24 | git config --global url."https://github.com/".insteadOf ssh://git@github.com/
25 | - run: npm ci --no-optional
26 | - run: npm run build --if-present
27 | - run: npm test
28 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Intellij
2 | *.iml
3 | .idea
4 |
5 | # npm
6 | node_modules
7 |
8 | # build
9 | main.js
10 | *.js.map
11 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true,
3 | "trailingComma": "all",
4 | "overrides": [
5 | {
6 | "files": "*.ts",
7 | "options": {
8 | "parser": "typescript"
9 | }
10 | }
11 | ]
12 | }
13 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2020 Jon Gauthier
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # obsidian-citation-plugin
2 |
3 | This plugin for [Obsidian](https://obsidian.md) integrates your academic reference manager with the Obsidian editing experience.
4 |
5 | 
6 |
7 | The plugin supports reading bibliographies in [BibTeX / BibLaTeX `.bib` format][4] and [CSL-JSON format][1].
8 |
9 | ## Setup
10 |
11 | You can install this plugin via the Obsidian "Third-party plugin interface." It requires Obsidian 0.9.20 or higher.
12 |
13 | Once the plugin is installed, you must provide it with a bibliography file:
14 |
15 | - If you use **Zotero** with [Better BibTeX][2]:
16 | - Select a collection in Zotero's left sidebar that you want to export.
17 | - Click `File` -> `Export library ...`. Select `Better BibLaTeX` or `Better CSL JSON` as the format. (We recommend using the BibLaTeX export unless you experience performance issues. The BibLaTeX format includes more information that you can reference from Obsidian, such as associated PDF attachments, but loads more slowly than the JSON export.)
18 | - You can optionally choose "Keep updated" to automatically re-export the collection -- this is recommended!
19 | - If you use other reference managers, check their documentation for BibLaTeX or CSL-JSON export support. We plan to officially support other managers in the future.
20 |
21 | Now open the Obsidian preferences and view the "Citations" tab. Paste the path to the exported file (`.bib` or `.json`, depending on the format you chose) in the text field labeled "Citation export path." After closing the settings dialog, you should now be able to search your references from within Obsidian!
22 |
23 | ## Usage
24 |
25 | The plugin offers four simple features at the moment:
26 |
27 | 1. **Open literature note** (Ctrl+Shift+O): automatically create or open a literature note for a particular reference. The title, folder, and initial content of the note can be configured in the plugin settings.
28 | 2. **Insert literature note reference** (Ctrl+Shift+E): insert a link to the literature note corresponding to a particular reference.
29 | 3. **Insert literature note content in the current pane** (no hotkey by default): insert content describing a particular reference into the current pane. (This can be useful for updating literature notes you already have but which are missing reference information.)
30 | 4. **Insert Markdown citation** (no hotkey by default): insert a [Pandoc-style citation][3] for a particular reference. (The exact format of the citation can be configured in the plugin settings.)
31 |
32 | ### Templates
33 | You can set up your own template for both the title and content of literature notes. The following variables can be used:
34 |
35 | ```
36 | * {{citekey}}
37 | * {{abstract}}
38 | * {{authorString}}
39 | * {{containerTitle}}
40 | * {{DOI}}
41 | * {{eprint}}
42 | * {{eprinttype}}
43 | * {{eventPlace}}
44 | * {{page}}
45 | * {{publisher}}
46 | * {{publisherPlace}}
47 | * {{title}}
48 | * {{titleShort}}
49 | * {{URL}}
50 | * {{year}}
51 | * {{zoteroSelectURI}}
52 | ```
53 | For example, your literature note title template can simply be `@{{citekey}}` and the content template can look like:
54 | ```
55 | ---
56 | title: {{title}}
57 | authors: {{authorString}}
58 | year: {{year}}
59 | ---
60 | {{abstract}}
61 | ```
62 |
63 | ## License
64 |
65 | MIT License.
66 |
67 | ## Contributors
68 |
69 | - Jon Gauthier ([hans](https://github.com/hans))
70 | - [raineszm](https://github.com/raineszm)
71 | - [Luke Murray](https://lukesmurray.com/)
72 | - [valmaev](https://github.com/valmaev)
73 |
74 | [1]: https://github.com/citation-style-language/schema#csl-json-schema
75 | [2]: https://retorque.re/zotero-better-bibtex/
76 | [3]: https://pandoc.org/MANUAL.html#extension-citations
77 | [4]: http://www.bibtex.org/
78 |
--------------------------------------------------------------------------------
/docs/assets/images/icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hans/obsidian-citation-plugin/2edeeceaf5f38de90f77f111ab46d24eef3e0bfa/docs/assets/images/icons.png
--------------------------------------------------------------------------------
/docs/assets/images/icons@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hans/obsidian-citation-plugin/2edeeceaf5f38de90f77f111ab46d24eef3e0bfa/docs/assets/images/icons@2x.png
--------------------------------------------------------------------------------
/docs/assets/images/widgets.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hans/obsidian-citation-plugin/2edeeceaf5f38de90f77f111ab46d24eef3e0bfa/docs/assets/images/widgets.png
--------------------------------------------------------------------------------
/docs/assets/images/widgets@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hans/obsidian-citation-plugin/2edeeceaf5f38de90f77f111ab46d24eef3e0bfa/docs/assets/images/widgets@2x.png
--------------------------------------------------------------------------------
/docs/assets/js/search.js:
--------------------------------------------------------------------------------
1 | window.searchData = {"kinds":{"32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","262144":"Accessor","4194304":"Type alias"},"rows":[{"id":0,"kind":64,"name":"loadEntries","url":"modules.html#loadentries","classes":"tsd-kind-function"},{"id":1,"kind":256,"name":"IIndexable","url":"interfaces/iindexable.html","classes":"tsd-kind-interface"},{"id":2,"kind":4194304,"name":"DatabaseType","url":"modules.html#databasetype","classes":"tsd-kind-type-alias"},{"id":3,"kind":32,"name":"TEMPLATE_VARIABLES","url":"modules.html#template_variables","classes":"tsd-kind-variable"},{"id":4,"kind":65536,"name":"__type","url":"modules.html#template_variables.__type","classes":"tsd-kind-type-literal tsd-parent-kind-variable","parent":"TEMPLATE_VARIABLES"},{"id":5,"kind":1024,"name":"citekey","url":"modules.html#template_variables.__type.citekey","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":6,"kind":1024,"name":"abstract","url":"modules.html#template_variables.__type.abstract","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":7,"kind":1024,"name":"authorString","url":"modules.html#template_variables.__type.authorstring","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":8,"kind":1024,"name":"containerTitle","url":"modules.html#template_variables.__type.containertitle","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":9,"kind":1024,"name":"DOI","url":"modules.html#template_variables.__type.doi","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":10,"kind":1024,"name":"page","url":"modules.html#template_variables.__type.page","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":11,"kind":1024,"name":"title","url":"modules.html#template_variables.__type.title","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":12,"kind":1024,"name":"URL","url":"modules.html#template_variables.__type.url","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":13,"kind":1024,"name":"year","url":"modules.html#template_variables.__type.year","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":14,"kind":1024,"name":"zoteroSelectURI","url":"modules.html#template_variables.__type.zoteroselecturi","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"TEMPLATE_VARIABLES.__type"},{"id":15,"kind":128,"name":"Library","url":"classes/library.html","classes":"tsd-kind-class"},{"id":16,"kind":512,"name":"constructor","url":"classes/library.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Library"},{"id":17,"kind":1024,"name":"entries","url":"classes/library.html#entries","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Library"},{"id":18,"kind":65536,"name":"__type","url":"classes/library.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-class","parent":"Library"},{"id":19,"kind":262144,"name":"size","url":"classes/library.html#size","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"Library"},{"id":20,"kind":2048,"name":"getTemplateVariablesForCitekey","url":"classes/library.html#gettemplatevariablesforcitekey","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Library"},{"id":21,"kind":256,"name":"Author","url":"interfaces/author.html","classes":"tsd-kind-interface"},{"id":22,"kind":1024,"name":"given","url":"interfaces/author.html#given","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Author"},{"id":23,"kind":1024,"name":"family","url":"interfaces/author.html#family","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Author"},{"id":24,"kind":128,"name":"Entry","url":"classes/entry.html","classes":"tsd-kind-class"},{"id":25,"kind":512,"name":"constructor","url":"classes/entry.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Entry"},{"id":26,"kind":1024,"name":"id","url":"classes/entry.html#id","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":27,"kind":1024,"name":"type","url":"classes/entry.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":28,"kind":1024,"name":"abstract","url":"classes/entry.html#abstract","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":29,"kind":1024,"name":"author","url":"classes/entry.html#author","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":30,"kind":1024,"name":"authorString","url":"classes/entry.html#authorstring","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":31,"kind":1024,"name":"containerTitle","url":"classes/entry.html#containertitle","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":32,"kind":1024,"name":"DOI","url":"classes/entry.html#doi","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":33,"kind":1024,"name":"files","url":"classes/entry.html#files","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":34,"kind":1024,"name":"issuedDate","url":"classes/entry.html#issueddate","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":35,"kind":1024,"name":"page","url":"classes/entry.html#page","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":36,"kind":1024,"name":"title","url":"classes/entry.html#title","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":37,"kind":1024,"name":"URL","url":"classes/entry.html#url","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Entry"},{"id":38,"kind":262144,"name":"year","url":"classes/entry.html#year","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"Entry"},{"id":39,"kind":262144,"name":"zoteroSelectURI","url":"classes/entry.html#zoteroselecturi","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"Entry"},{"id":40,"kind":4194304,"name":"EntryData","url":"modules.html#entrydata","classes":"tsd-kind-type-alias"},{"id":41,"kind":256,"name":"EntryDataCSL","url":"interfaces/entrydatacsl.html","classes":"tsd-kind-interface"},{"id":42,"kind":1024,"name":"id","url":"interfaces/entrydatacsl.html#id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":43,"kind":1024,"name":"type","url":"interfaces/entrydatacsl.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":44,"kind":1024,"name":"abstract","url":"interfaces/entrydatacsl.html#abstract","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":45,"kind":1024,"name":"author","url":"interfaces/entrydatacsl.html#author","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":46,"kind":1024,"name":"container-title","url":"interfaces/entrydatacsl.html#container_title","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":47,"kind":1024,"name":"DOI","url":"interfaces/entrydatacsl.html#doi","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":48,"kind":1024,"name":"issued","url":"interfaces/entrydatacsl.html#issued","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":49,"kind":65536,"name":"__type","url":"interfaces/entrydatacsl.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":50,"kind":1024,"name":"date-parts","url":"interfaces/entrydatacsl.html#__type.date_parts","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"EntryDataCSL.__type"},{"id":51,"kind":1024,"name":"page","url":"interfaces/entrydatacsl.html#page","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":52,"kind":1024,"name":"title","url":"interfaces/entrydatacsl.html#title","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":53,"kind":1024,"name":"URL","url":"interfaces/entrydatacsl.html#url","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"EntryDataCSL"},{"id":54,"kind":128,"name":"EntryCSLAdapter","url":"classes/entrycsladapter.html","classes":"tsd-kind-class"},{"id":55,"kind":512,"name":"constructor","url":"classes/entrycsladapter.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":56,"kind":1024,"name":"files","url":"classes/entrycsladapter.html#files","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EntryCSLAdapter"},{"id":57,"kind":262144,"name":"id","url":"classes/entrycsladapter.html#id","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":58,"kind":262144,"name":"type","url":"classes/entrycsladapter.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":59,"kind":262144,"name":"abstract","url":"classes/entrycsladapter.html#abstract","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":60,"kind":262144,"name":"author","url":"classes/entrycsladapter.html#author","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":61,"kind":262144,"name":"authorString","url":"classes/entrycsladapter.html#authorstring","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":62,"kind":262144,"name":"containerTitle","url":"classes/entrycsladapter.html#containertitle","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":63,"kind":262144,"name":"DOI","url":"classes/entrycsladapter.html#doi","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":64,"kind":262144,"name":"issuedDate","url":"classes/entrycsladapter.html#issueddate","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":65,"kind":262144,"name":"page","url":"classes/entrycsladapter.html#page","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":66,"kind":262144,"name":"title","url":"classes/entrycsladapter.html#title","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":67,"kind":262144,"name":"URL","url":"classes/entrycsladapter.html#url","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":68,"kind":262144,"name":"year","url":"classes/entrycsladapter.html#year","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":69,"kind":262144,"name":"zoteroSelectURI","url":"classes/entrycsladapter.html#zoteroselecturi","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryCSLAdapter"},{"id":70,"kind":128,"name":"EntryBibLaTeXAdapter","url":"classes/entrybiblatexadapter.html","classes":"tsd-kind-class"},{"id":71,"kind":512,"name":"constructor","url":"classes/entrybiblatexadapter.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":72,"kind":1024,"name":"abstract","url":"classes/entrybiblatexadapter.html#abstract","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EntryBibLaTeXAdapter"},{"id":73,"kind":1024,"name":"_containerTitle","url":"classes/entrybiblatexadapter.html#_containertitle","classes":"tsd-kind-property tsd-parent-kind-class","parent":"EntryBibLaTeXAdapter"},{"id":74,"kind":1024,"name":"containerTitleShort","url":"classes/entrybiblatexadapter.html#containertitleshort","classes":"tsd-kind-property tsd-parent-kind-class","parent":"EntryBibLaTeXAdapter"},{"id":75,"kind":1024,"name":"DOI","url":"classes/entrybiblatexadapter.html#doi","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EntryBibLaTeXAdapter"},{"id":76,"kind":1024,"name":"event","url":"classes/entrybiblatexadapter.html#event","classes":"tsd-kind-property tsd-parent-kind-class","parent":"EntryBibLaTeXAdapter"},{"id":77,"kind":1024,"name":"issued","url":"classes/entrybiblatexadapter.html#issued","classes":"tsd-kind-property tsd-parent-kind-class","parent":"EntryBibLaTeXAdapter"},{"id":78,"kind":1024,"name":"page","url":"classes/entrybiblatexadapter.html#page","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EntryBibLaTeXAdapter"},{"id":79,"kind":1024,"name":"title","url":"classes/entrybiblatexadapter.html#title","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EntryBibLaTeXAdapter"},{"id":80,"kind":1024,"name":"titleShort","url":"classes/entrybiblatexadapter.html#titleshort","classes":"tsd-kind-property tsd-parent-kind-class","parent":"EntryBibLaTeXAdapter"},{"id":81,"kind":1024,"name":"URL","url":"classes/entrybiblatexadapter.html#url","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"EntryBibLaTeXAdapter"},{"id":82,"kind":262144,"name":"id","url":"classes/entrybiblatexadapter.html#id","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":83,"kind":262144,"name":"type","url":"classes/entrybiblatexadapter.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":84,"kind":262144,"name":"files","url":"classes/entrybiblatexadapter.html#files","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":85,"kind":262144,"name":"authorString","url":"classes/entrybiblatexadapter.html#authorstring","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":86,"kind":262144,"name":"containerTitle","url":"classes/entrybiblatexadapter.html#containertitle","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":87,"kind":262144,"name":"issuedDate","url":"classes/entrybiblatexadapter.html#issueddate","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":88,"kind":262144,"name":"author","url":"classes/entrybiblatexadapter.html#author","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":89,"kind":262144,"name":"year","url":"classes/entrybiblatexadapter.html#year","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"},{"id":90,"kind":262144,"name":"zoteroSelectURI","url":"classes/entrybiblatexadapter.html#zoteroselecturi","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"EntryBibLaTeXAdapter"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,41.529]],["parent/0",[]],["name/1",[1,41.529]],["parent/1",[]],["name/2",[2,41.529]],["parent/2",[]],["name/3",[3,36.375]],["parent/3",[]],["name/4",[4,32.98]],["parent/4",[3,3.413]],["name/5",[5,41.529]],["parent/5",[6,2.055]],["name/6",[7,28.42]],["parent/6",[6,2.055]],["name/7",[8,30.445]],["parent/7",[6,2.055]],["name/8",[9,30.445]],["parent/8",[6,2.055]],["name/9",[10,28.42]],["parent/9",[6,2.055]],["name/10",[11,28.42]],["parent/10",[6,2.055]],["name/11",[12,26.735]],["parent/11",[6,2.055]],["name/12",[13,28.42]],["parent/12",[6,2.055]],["name/13",[14,30.445]],["parent/13",[6,2.055]],["name/14",[15,30.445]],["parent/14",[6,2.055]],["name/15",[16,26.735]],["parent/15",[]],["name/16",[17,30.445]],["parent/16",[16,2.509]],["name/17",[18,41.529]],["parent/17",[16,2.509]],["name/18",[4,32.98]],["parent/18",[16,2.509]],["name/19",[19,41.529]],["parent/19",[16,2.509]],["name/20",[20,41.529]],["parent/20",[16,2.509]],["name/21",[21,25.291]],["parent/21",[]],["name/22",[22,41.529]],["parent/22",[21,2.373]],["name/23",[23,41.529]],["parent/23",[21,2.373]],["name/24",[24,17.337]],["parent/24",[]],["name/25",[17,30.445]],["parent/25",[24,1.627]],["name/26",[25,30.445]],["parent/26",[24,1.627]],["name/27",[26,30.445]],["parent/27",[24,1.627]],["name/28",[7,28.42]],["parent/28",[24,1.627]],["name/29",[21,25.291]],["parent/29",[24,1.627]],["name/30",[8,30.445]],["parent/30",[24,1.627]],["name/31",[9,30.445]],["parent/31",[24,1.627]],["name/32",[10,28.42]],["parent/32",[24,1.627]],["name/33",[27,32.98]],["parent/33",[24,1.627]],["name/34",[28,32.98]],["parent/34",[24,1.627]],["name/35",[11,28.42]],["parent/35",[24,1.627]],["name/36",[12,26.735]],["parent/36",[24,1.627]],["name/37",[13,28.42]],["parent/37",[24,1.627]],["name/38",[14,30.445]],["parent/38",[24,1.627]],["name/39",[15,30.445]],["parent/39",[24,1.627]],["name/40",[29,41.529]],["parent/40",[]],["name/41",[30,20.138]],["parent/41",[]],["name/42",[25,30.445]],["parent/42",[30,1.89]],["name/43",[26,30.445]],["parent/43",[30,1.89]],["name/44",[7,28.42]],["parent/44",[30,1.89]],["name/45",[21,25.291]],["parent/45",[30,1.89]],["name/46",[12,19.044,31,29.582]],["parent/46",[30,1.89]],["name/47",[10,28.42]],["parent/47",[30,1.89]],["name/48",[32,36.375]],["parent/48",[30,1.89]],["name/49",[4,32.98]],["parent/49",[30,1.89]],["name/50",[33,29.582,34,29.582]],["parent/50",[35,3.897]],["name/51",[11,28.42]],["parent/51",[30,1.89]],["name/52",[12,26.735]],["parent/52",[30,1.89]],["name/53",[13,28.42]],["parent/53",[30,1.89]],["name/54",[36,17.337]],["parent/54",[]],["name/55",[17,30.445]],["parent/55",[36,1.627]],["name/56",[27,32.98]],["parent/56",[36,1.627]],["name/57",[25,30.445]],["parent/57",[36,1.627]],["name/58",[26,30.445]],["parent/58",[36,1.627]],["name/59",[7,28.42]],["parent/59",[36,1.627]],["name/60",[21,25.291]],["parent/60",[36,1.627]],["name/61",[8,30.445]],["parent/61",[36,1.627]],["name/62",[9,30.445]],["parent/62",[36,1.627]],["name/63",[10,28.42]],["parent/63",[36,1.627]],["name/64",[28,32.98]],["parent/64",[36,1.627]],["name/65",[11,28.42]],["parent/65",[36,1.627]],["name/66",[12,26.735]],["parent/66",[36,1.627]],["name/67",[13,28.42]],["parent/67",[36,1.627]],["name/68",[14,30.445]],["parent/68",[36,1.627]],["name/69",[15,30.445]],["parent/69",[36,1.627]],["name/70",[37,14.666]],["parent/70",[]],["name/71",[17,30.445]],["parent/71",[37,1.376]],["name/72",[7,28.42]],["parent/72",[37,1.376]],["name/73",[38,41.529]],["parent/73",[37,1.376]],["name/74",[39,41.529]],["parent/74",[37,1.376]],["name/75",[10,28.42]],["parent/75",[37,1.376]],["name/76",[40,41.529]],["parent/76",[37,1.376]],["name/77",[32,36.375]],["parent/77",[37,1.376]],["name/78",[11,28.42]],["parent/78",[37,1.376]],["name/79",[12,26.735]],["parent/79",[37,1.376]],["name/80",[41,41.529]],["parent/80",[37,1.376]],["name/81",[13,28.42]],["parent/81",[37,1.376]],["name/82",[25,30.445]],["parent/82",[37,1.376]],["name/83",[26,30.445]],["parent/83",[37,1.376]],["name/84",[27,32.98]],["parent/84",[37,1.376]],["name/85",[8,30.445]],["parent/85",[37,1.376]],["name/86",[9,30.445]],["parent/86",[37,1.376]],["name/87",[28,32.98]],["parent/87",[37,1.376]],["name/88",[21,25.291]],["parent/88",[37,1.376]],["name/89",[14,30.445]],["parent/89",[37,1.376]],["name/90",[15,30.445]],["parent/90",[37,1.376]]],"invertedIndex":[["__type",{"_index":4,"name":{"4":{},"18":{},"49":{}},"parent":{}}],["_containertitle",{"_index":38,"name":{"73":{}},"parent":{}}],["abstract",{"_index":7,"name":{"6":{},"28":{},"44":{},"59":{},"72":{}},"parent":{}}],["author",{"_index":21,"name":{"21":{},"29":{},"45":{},"60":{},"88":{}},"parent":{"22":{},"23":{}}}],["authorstring",{"_index":8,"name":{"7":{},"30":{},"61":{},"85":{}},"parent":{}}],["citekey",{"_index":5,"name":{"5":{}},"parent":{}}],["constructor",{"_index":17,"name":{"16":{},"25":{},"55":{},"71":{}},"parent":{}}],["container",{"_index":31,"name":{"46":{}},"parent":{}}],["containertitle",{"_index":9,"name":{"8":{},"31":{},"62":{},"86":{}},"parent":{}}],["containertitleshort",{"_index":39,"name":{"74":{}},"parent":{}}],["databasetype",{"_index":2,"name":{"2":{}},"parent":{}}],["date",{"_index":33,"name":{"50":{}},"parent":{}}],["doi",{"_index":10,"name":{"9":{},"32":{},"47":{},"63":{},"75":{}},"parent":{}}],["entries",{"_index":18,"name":{"17":{}},"parent":{}}],["entry",{"_index":24,"name":{"24":{}},"parent":{"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{}}}],["entrybiblatexadapter",{"_index":37,"name":{"70":{}},"parent":{"71":{},"72":{},"73":{},"74":{},"75":{},"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{},"83":{},"84":{},"85":{},"86":{},"87":{},"88":{},"89":{},"90":{}}}],["entrycsladapter",{"_index":36,"name":{"54":{}},"parent":{"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{}}}],["entrydata",{"_index":29,"name":{"40":{}},"parent":{}}],["entrydatacsl",{"_index":30,"name":{"41":{}},"parent":{"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"51":{},"52":{},"53":{}}}],["entrydatacsl.__type",{"_index":35,"name":{},"parent":{"50":{}}}],["event",{"_index":40,"name":{"76":{}},"parent":{}}],["family",{"_index":23,"name":{"23":{}},"parent":{}}],["files",{"_index":27,"name":{"33":{},"56":{},"84":{}},"parent":{}}],["gettemplatevariablesforcitekey",{"_index":20,"name":{"20":{}},"parent":{}}],["given",{"_index":22,"name":{"22":{}},"parent":{}}],["id",{"_index":25,"name":{"26":{},"42":{},"57":{},"82":{}},"parent":{}}],["iindexable",{"_index":1,"name":{"1":{}},"parent":{}}],["issued",{"_index":32,"name":{"48":{},"77":{}},"parent":{}}],["issueddate",{"_index":28,"name":{"34":{},"64":{},"87":{}},"parent":{}}],["library",{"_index":16,"name":{"15":{}},"parent":{"16":{},"17":{},"18":{},"19":{},"20":{}}}],["loadentries",{"_index":0,"name":{"0":{}},"parent":{}}],["page",{"_index":11,"name":{"10":{},"35":{},"51":{},"65":{},"78":{}},"parent":{}}],["parts",{"_index":34,"name":{"50":{}},"parent":{}}],["size",{"_index":19,"name":{"19":{}},"parent":{}}],["template_variables",{"_index":3,"name":{"3":{}},"parent":{"4":{}}}],["template_variables.__type",{"_index":6,"name":{},"parent":{"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{}}}],["title",{"_index":12,"name":{"11":{},"36":{},"46":{},"52":{},"66":{},"79":{}},"parent":{}}],["titleshort",{"_index":41,"name":{"80":{}},"parent":{}}],["type",{"_index":26,"name":{"27":{},"43":{},"58":{},"83":{}},"parent":{}}],["url",{"_index":13,"name":{"12":{},"37":{},"53":{},"67":{},"81":{}},"parent":{}}],["year",{"_index":14,"name":{"13":{},"38":{},"68":{},"89":{}},"parent":{}}],["zoteroselecturi",{"_index":15,"name":{"14":{},"39":{},"69":{},"90":{}},"parent":{}}]],"pipeline":[]}}
--------------------------------------------------------------------------------
/docs/classes/library.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Select a collection in Zotero's left sidebar that you want to export.
75 |
Click File -> Export library .... Select Better BibLaTeX or Better CSL JSON as the format. (We recommend using the BibLaTeX export unless you experience performance issues. The BibLaTeX format includes more information that you can reference from Obsidian, such as associated PDF attachments, but loads more slowly than the JSON export.)
76 |
You can optionally choose "Keep updated" to automatically re-export the collection -- this is recommended!
77 |
78 |
79 |
If you use other reference managers, check their documentation for BibLaTeX or CSL-JSON export support. We plan to officially support other managers in the future.
80 |
81 |
Now open the Obsidian preferences and view the "Citations" tab. Paste the path to the exported file (.bib or .json, depending on the format you chose) in the text field labeled "Citation export path." After closing the settings dialog, you should now be able to search your references from within Obsidian!
The plugin offers three simple features at the moment:
86 |
87 |
Open literature note (Ctrl+Shift+O): automatically create or open a literature note for a particular reference. The title, folder, and initial content of the note can be configured in the plugin settings.
88 |
Insert literature note reference (Ctrl+Shift+E): insert a link to the literature note corresponding to a particular reference.
89 |
Insert Markdown citation (no hotkey by default): insert a Pandoc-style citation for a particular reference. (The exact format of the citation can be configured in the plugin settings.)
For the given citekey, find the corresponding
195 |Entry
and return a 194 | collection of template variable assignments.