ZotLit

Replace the Obsidian Citations plugin with ZotLit

Replace Obsidian's broken Citations plugin with ZotLit, keep your @citekey literature notes and [[@…]] links, and translate your template.

Citations 0.4.5 (released 24 September 2022) does not start on Obsidian 1.15 because Obsidian no longer runs its older JavaScript format (issue #288). Each time Obsidian starts, it shows the notice "Failed to load plugin “obsidian-citation-plugin”". The last Obsidian release that runs Citations is 1.14.5. Your old literature notes are ordinary Markdown files, so nothing in this migration deletes or rewrites their text, and your [[@…]] links keep working. Install ZotLit, set its literature note folder and note name to match Citations (@ plus the citation key), link your old notes to Zotero, and let an AI agent with the ZotLit skills translate your template (or paste the ready-made profile below). Your [[@key]] links can count as citations once you turn on two settings, or you can change them to Pandoc citations [@key] (Your [[@…]] links).

What you need

  • Obsidian 1.15.1 or later (installer 1.13.4 or later).
  • Zotero 9 or 10 on the same computer.
  • Better BibTeX in Zotero. If it gave your papers their citation keys, you already have it.
  • Citation keys that still match your old note names. Check one paper: its Citation Key field in Zotero must equal the old note name without the @.

ZotLit reads your Zotero library directly. You no longer need an exported .bib or CSL JSON file, and you can stop running a "Keep updated" export.

What moves where

In CitationsIn ZotLit
Exported .bib / CSL JSON file, Citation database pathNothing to export. ZotLit reads Zotero directly.
Literature note folder (default Reading notes)In Settings > ZotLit, Literature note folder
Title template @{{citekey}}Note name template @{{ zt.citationKey }}
Content template (Handlebars)The literature note template of your profile (Liquid). Properties go in the Properties tab, the note text in the Note tab.
Open literature note (Ctrl+Shift+O)In the Zotero library view: Write literature note / Open literature note; or ZotLit: Open literature note quick switcher
Insert literature note link (Ctrl+Shift+E)Type [[@ and pick the note (Obsidian's own link), or change the citation text so [@ inserts [[@key]] (see Insert [[@citekey]] with [@)
Insert Markdown citationType [@ and pick the paper: inserts [@key]
Insert literature note content in the current paneNo equivalent. Use ZotLit: Update literature note on a linked note to fill its properties.
Refresh citation databaseNot needed.

Move your workflow to ZotLit

Save your old template

Because Citations no longer loads on Obsidian 1.15, its settings tab is gone, and uninstalling the plugin deletes its folder. Copy your template before removing Citations:

  1. Open your vault folder in Finder or File Explorer and open .obsidian/plugins/obsidian-citation-plugin/data.json in a text editor. The .obsidian folder is hidden; on macOS, press Cmd+Shift+. in Finder to show it.
  2. Copy the text after "literatureNoteContentTemplate": into a new note or a text file. Your old title template and folder sit in "literatureNoteTitleTemplate" and "literatureNoteFolder" in the same file.
  3. In Obsidian, open Settings → Community plugins and turn off Citations. Until you do, the notice "Failed to load plugin “obsidian-citation-plugin”" comes back at each start.

Your old template text is now saved outside the Citations plugin folder.

Install ZotLit and connect Zotero

In Settings → Community plugins, search for ZotLit, install it, and turn it on. ZotLit finds your Zotero data folder on its own; see Install ZotLit if you need help connecting.

The Zotero library tab opens with your papers.

Use the same folder

Open Settings > ZotLit and set Literature note folder to your old Citations folder (default Reading notes).

ZotLit now creates new literature notes in that folder.

Use the same note names

In Settings > ZotLit, under Templates and properties, select Edit profile. The Template Workbench opens. Open the Name and folder tab, and replace the text in Note name template with @{{ zt.citationKey }}.

The preview under the field shows a path such as Reading notes/@rougierTenSimpleRules2014.md.

Leave {% suffix %} out of the note name. The built-in template ends in {% suffix %}, which adds random letters when a file name is already taken (for example, @ioannidis2005_PwaWya.md) and creates a second note beside your old one. Without it, [[@citekey]] links always find the one note.

ZotLit identifies a literature note by the property zotero-key, which holds the paper's Zotero item key (for example RUGIER24), not the citation key. Citations wrote no such property. Until a note has zotero-key, ZotLit does not see it: the Library View does not mark the paper Has a literature note, and when you ask ZotLit to write the note, it shows this notice: Failed to create literature note. To find the cause, turn on Write logs to file in Settings → ZotLit → Advanced, then try again. The cause is that the file name is already taken. Your old note stays unchanged.

One note by hand:

  1. Run ZotLit: Open template data explorer from the command palette.
  2. Select Choose item, search the title, and select the paper. Check that its Citation key matches your note name (two Zotero items can have the same title).
  3. Right-click the explorer's tab header and select Copy item key. A notice confirms Key copied.
  4. In the old note, add a property named zotero-key and paste the key.

At once, the paper shows Has a literature note in the Zotero library view, and ZotLit opens this note for the paper instead of making a new one.

Many notes, with an agent:

With the ZotLit skills installed, an agent can link every old note in one pass, including notes for papers in group libraries (whose item key has a group part, such as ENGBT62Ag4200309). ZotLit itself does not report a citation key that matches no paper or more than one paper, and the skills do not describe this task, so the request names the property and asks the agent to report any skipped notes. Install both the zotlit-query and the zotlit-template skills for this request:

Use the ZotLit query and template skills. I moved from the Citations plugin. My old literature notes are in the folder Reading notes, named @ plus the citation key. For each note, find the Zotero item with that citation key and add the property zotero-key with the item's Zotero item key (the Indexed Key, not the citation key). Change nothing else in the notes. Do not link a note when its key matches no item or more than one item, or when another note already has that zotero-key: list those notes for me with the reason. Check each linked note with template-inspect.

When a citation key matches two papers, the agent lists both titles and leaves the note untouched; pick the right paper and link that note by hand.

Fill missing properties (optional):

Run ZotLit: Update literature note in a linked old note. A notice confirms Properties updated. The profile document has no managed block, so the note body stayed unchanged. It adds or fills the properties your profile manages (with the template from step 6: authors, year, DOI, and citekey), keeps your own property values, and leaves the note body unchanged. An empty date receives today's date because ZotLit cannot know the old date.

Translate your template

Recommended: let an AI agent translate it. Install the ZotLit skills (works with Claude Code, Codex, or pi; needs Node.js 22.20 or later and the Obsidian CLI turned on). Start the agent in your vault folder and send this request with your saved template pasted in:

Use the ZotLit template skill. I am moving from the Citations plugin. Make my literature notes look like this old Citations template: [paste your template]. Name the notes @ plus the citation key, in the folder Reading notes. Keep my own text when notes update. Show me the rendered note for one of my papers before you install anything.

The agent translates the template, checks its draft against a real Zotero item, and shows you the rendered note for one paper before it installs the profile. The agent receives Zotero metadata and note excerpts; see the data-access note on Install the ZotLit skills before you start.

Use it every day

  • Write a literature note: Open the Zotero library view (or run ZotLit: Open Zotero library), find the paper, and select Write literature note. A notice confirms Literature note created. and Reading notes/@<citation key>.md opens. When the paper already has a linked note, the action reads Open literature note.
  • Keep your Ctrl+Shift+O hotkey: ZotLit has no default hotkeys, so Ctrl+Shift+O is free. In Obsidian Settings → Hotkeys, assign it to ZotLit: Open literature note quick switcher.
  • Cite from atomic notes: Keep your [[@key]] links as citations or change them to Pandoc citations [@key]; see Your [[@…]] links below.

A [[@key]] link is an ordinary Obsidian link to the file named @key, as long as your note name keeps the @ (step 4). ZotLit does not read the @key inside [[ ]] as a citation key; it sees a link to that note. You can keep these links as citations, or change them to Pandoc citations [@key]. Both give you the same citation features:

  • Live Preview shows formatted citations such as (Rougier et al. 2014) (needs ZotLit Resource Pack, like other formatted citations).
  • Hovering a citation shows the full reference with buttons to open the literature note and open the paper in Zotero.
  • The References and Cited by sidebars list the citations, and Obsidian's graph view draws citation edges.
  • Export to Word includes the citations and a reference list.

The settings live under Settings > ZotLit > Citations:

SettingDefaultKeep [[@key]]Change to [@key]
Wikilink citationsOffTurn onOff
Open citations as linksOffTurn on (click opens the note)Turn on (click opens the note)
Pandoc citationsOnOnOn
Show citations in graph viewOnOnOn

When Open citations as links is off, clicking a citation puts the cursor inside it instead of opening the literature note.

In Settings > ZotLit > Citations, turn on Wikilink citations and Open citations as links. Your notes need no changes.

ZotLit counts a [[@key]] link as a citation when it is a plain, unaliased link (including two in one sentence) and its target literature note is linked to Zotero (step 5). Clicking (Tufte 1983) then opens Reading notes/@tufte1983.md. Because the links stay Obsidian links, Obsidian's own Backlinks pane keeps listing the notes that cite a paper.

ZotLit does not count aliased links ([[@key|alias]]), heading links ([[@key#Heading]]), embeds (![[@key]]), links inside code, or links to notes without zotero-key; those stay ordinary Obsidian links.

To insert [[@key]] with the [@ suggester instead of typing [[@, see Insert [[@citekey]] with [@ below.

Or change them to Pandoc citations

A Pandoc citation [@key] names the paper by its citation key, so it works for a paper that has no linked note yet, and Pandoc and other Markdown tools can read it. Obsidian's own Backlinks pane does not list notes that cite a paper with [@key]; ZotLit's Cited by sidebar lists them instead.

Link your old literature notes (step 5) before you switch your links. Clicking a citation for a paper whose old note is not linked makes a second note for that paper instead of opening the old one.

To convert your existing notes with an AI agent (Install the ZotLit skills), start the agent in your vault folder and send this request. The ZotLit skills have no command that rewrites citations, so the agent edits the Markdown files directly:

I moved from the Citations plugin. In my notes outside the folder Reading notes, change every plain link [[@key]] to the Pandoc citation [@key]. Leave links with | or # and embeds ![[...]] and anything inside code as they are, and list them for me. Do not change the notes in Reading notes. Show me the changes before you write them.

The agent shows its plan before writing, changes only plain [[@key]] links, and lists the forms it left untouched: aliased links ([[@key|alias]]), heading links ([[@key#Heading]]), embeds (![[@key]]), and links inside code. Those stay ordinary Obsidian links.

Then turn on Open citations as links so that clicking a citation opens its linked note. When you write new notes, type [@ and pick the paper: the default citation text inserts [@key].

Next

Last updated on

On this page