Update Obsidian literature notes from Zotero
Refresh one literature note or a batch when a paper's Zotero data or highlights change. ZotLit updates only its own parts, so your own writing stays.
To make your first connected note, try Connect Zotero to Obsidian: your first literature note (about 12 minutes).
- Open the literature note.
- Press
Ctrl+P(Cmd+Pon macOS) and run ZotLit: Update notes. - Choose Update active note, or Update all notes for every note.
Update with Update notes
- Open the literature note you want to update. (For Update all notes, any note can be open.) The note is the active tab.
-
Open the command palette (
Ctrl+Pon Windows/Linux,Cmd+Pon macOS) and run ZotLit: Update notes. A dialog titled Update notes opens, with the checkbox When you update all notes, also create notes for items that have none turned off by default. - Select Update active note.
For a note made with the current default template, the notice Properties updated. This note has no managed region, so its body stayed unchanged. appears. The properties are refreshed, your body text stays as you wrote it, and the Annotations section is a live view that was already current. For a note with a managed region, the notice reads Literature note updated.
An update refreshes the properties ZotLit manages; your own writing and any properties you added stay as they are.
- Or select Update all notes: this updates every existing literature note in your library scope. A confirmation asks Update … literature notes?; papers with no note are listed under No note (…) and left alone.
| Command | What it changes | What it leaves alone |
|---|---|---|
| ZotLit: Update literature note | Properties; and the managed region, if the note has one | Everything you wrote outside a managed region |
| ZotLit: Update literature note metadata | Properties only. Notice Metadata updated. | The whole body |
| ZotLit: Overwrite literature note | The whole body: replaced with a fresh render of the note's template. ZotLit's own properties are refreshed | Properties you added. A confirmation comes first |
ZotLit: Overwrite literature note discards what you
wrote in the body. A confirmation dialog asks before it runs. These commands
appear only when the active file is a literature note with a zotero-key
property. ZotLit: Update literature note and
ZotLit: Update literature note metadata run without a
dialog, so they suit a keyboard shortcut. For every command and option, see the
Commands reference and Literature
notes reference.
This requires ZotLit Companion, the Zotero add-on.
- In Zotero, select one or more papers, right-click, and choose ZotLit → Create or Update Literature Notes (or Create or Update Literature Note for one paper). For properties only, choose Update Literature Note Metadata.
- Obsidian opens a dialog titled Update literature notes. It counts the notes under Update (…), Create (…), and Not found (…). If you have added profiles, choose the profile for new notes from the selector; see Batch profiles.
- Select Update notes. A summary reads Done. … created, … updated, … failed. If you use profiles, the counts name each profile, such as … created under ….
To update every paper in the library at once from Obsidian, run ZotLit: Create or update all literature notes from the command palette. It updates existing notes and creates notes for papers that have none across your library scope.
| For | Do this |
|---|---|
| One note | Open it, run ZotLit: Update notes, choose Update active note. |
| Every existing note | Run ZotLit: Update notes, leave When you update all notes, also create notes for items that have none off, choose Update all notes. |
| Properties only, on papers selected in Zotero | ZotLit → Update Literature Note Metadata. Creates no notes and leaves bodies as they are, so a change to a managed region does not reach them. |
The confirmation reads Update … literature notes?; papers with no note appear under No note (…) and are left untouched. The Zotero collection menu item Create or Update Literature Notes creates notes for papers that lack them, so it is not an existing-only run.
If you see something else
- Properties updated. This note has no managed region, so its body stayed unchanged. This is the normal result for a note made with the current default template: the Annotations section is a live view and stays current by itself. If the note was created with ZotLit v1, the body was not rebuilt because v1 notes have no managed region; run ZotLit: Overwrite literature note to rebuild the body using the Default profile, which discards the old body text.
- Lines
%%zt-managed%%and%%/zt-managed%%in the note. An earlier default template or a profile with a managed block created this note. ZotLit: Update literature note rewrites only what sits between those lines; text outside them stays as it is, and query views inside keep the settings saved in their toolbar. To stop ZotLit from updating that section, delete both comment lines. - The update commands are not in the palette, or ZotLit: Update notes has no Update active note button. The active file is not a literature note because it lacks a
zotero-keyproperty. Open the literature note first. - An image in the note reads Excerpt image unavailable. with a link to the source. The image could not be generated and the note had no earlier snapshot to keep, though the rest of the note updated. See Excerpt images import outcomes.
- A notice starting "Excerpt images: …" This counts images that were not generated fresh. "Kept from the note and not refreshed" means ZotLit kept the snapshot already in the note. See Excerpt images import outcomes.
- An image reads Excerpt image unavailable because attachment import is disabled. Turn on Import attachments under Settings > ZotLit > Attachments, then update the note again.
- A notice: No library in the library scope is available. None of the selected Zotero libraries are in the database ZotLit reads, so no dialog opens. Check your Library scope settings. If only some libraries are missing, the update continues and the confirmation lists how many were skipped.
- Zotero says the selection is too large, or asks to enable a server. Large selections are sent to Obsidian over a local server. Turn on the server in Obsidian, or select fewer papers in Zotero. See Set up live updates.
- Zotero asks for confirmation each time it opens Obsidian. This is Zotero's built-in prompt for
obsidian://links. See Suppress the Zotero security prompt.
Next
- Create and open notes — open or create a note for a paper.
- Import Zotero notes — bring notes written in Zotero into your vault.
- Use different templates — change note layouts and apply them to existing notes.
Last updated on