Citation Extended

by akhmialeuski
5
4
3
2
1
Score: 54/100

Description

Obsidian Citation Extended. An extended plugin that connects your academic reference manager with Obsidian, enabling you to search references and create literature notes for papers and books.

Reviews

No reviews yet.

Stats

11
stars
3,624
downloads
1
forks
127
days
1
days
32
days
77
total PRs
0
open PRs
0
closed PRs
77
merged PRs
19
total issues
0
open issues
19
closed issues
328
commits

Latest Version

a month ago

Changelog

This release adds a command that rewrites one part of a literature note from a template, and lets the references sidebar jump to a citation inside the note. It also fixes two bugs that made the plugin create duplicate notes and re-download the whole library on every reload.

✨ New Features

  • Insert or replace with template output (#93). A new command, Citation Extended: Insert or replace with template output, is available in the Command Palette and in the editor context menu on a selection. It covers the case of a PDF added in Zotero after the note was created. Select the outdated text, or place the cursor where the new lines should go, and the dialog previews the template output as a line diff before Apply writes it. Extract finds the part of your content template that produced the selection and loads it into the dialog. Reusable templates are kept in the new Fragment profiles settings section. See the use case.
  • Jump to a citation from the references sidebar (#88). A plain click still opens the literature note. Cmd-click on macOS or Ctrl-click elsewhere selects that citekey in the note and scrolls it into view. Repeated clicks on the same entry walk through every occurrence and wrap after the last, with a Citation 2 of 3 notice. Citekeys missing from the library can be found the same way, which helps to track down a typo.

🐛 Bug Fixes

  • A moved literature note is found again (#86). A note moved out of the literature note folder was never found by the vault-wide search, so every click created a duplicate. Keeping literature notes at the vault root failed in the same way. Both lookups now treat every spelling of the vault root as the whole vault.
  • Offline caches and sync baselines are read back (#87). The plugin wrote its files through the vault adapter and read them through a desktop helper that expects an absolute path, so every read failed silently. As a result each reload fetched the whole Zotero or Readwise library again, and note-baselines.json was lost between sessions. Reads now use the same vault-relative path as writes, which also works on mobile.

📚 Documentation

  • Every screenshot was re-rendered from the current plugin, and five new ones cover the Zotero and Readwise database cards, the references sidebar and inline autocomplete.
  • The settings, command and data source pages were corrected where they described behaviour the plugin does not have, such as a "Last wins" merge strategy for duplicate citekeys. Commands are listed under the Citation Extended: prefix, and the hotkey tables list all 12 commands.

🔧 Under the Hood

  • IFileSystem now documents that its paths are vault-relative, and its unused createFolder was removed. IVaultAccess.createFolder stays the only way to create a folder.
  • The test double for normalizePath now behaves like Obsidian's own, which is the gap that let the folder lookup bug through.
  • The test suite has 1,861 tests across 99 suites, all passing.

Full Changelog: https://github.com/akhmialeuski/obsidian-citation-extended/compare/0.7.1...0.7.2

README file from

Github

Obsidian Citation Extended

This plugin for Obsidian integrates your academic reference manager with the Obsidian editing experience.

Insert literature note link search modal listing references of a library

The plugin supports reading bibliographies in BibTeX / BibLaTeX .bib format, CSL-JSON format, Hayagriva YAML, directly from the Readwise API, and live from a running Zotero, either via the Better BibTeX pull-export endpoint or through Zotero's own local API (Zotero 7+, no extensions required).

Quick Start

  1. Install from Obsidian's Community Plugins browser
  2. Export your bibliography from Zotero + Better BibTeX, Mendeley, or Paperpile, or connect a running Zotero directly
  3. Add the database in Settings > Citation Extended
  4. Run Citation Extended: Open literature note from the Command Palette to search and open literature notes. No hotkeys are assigned by default, so bind one in Settings > Hotkeys if you use it often

For detailed setup instructions, see Getting Started.

Features

  • Open literature note: create or open a note for any reference
  • Insert literature note link: insert a wiki-link or markdown link
  • Insert literature note content: insert rendered template content at cursor
  • Insert markdown citation: insert Pandoc-style citations with presets (textcite, parencite)
  • Inline citation autocomplete: type @ or [@ to get a suggestion popover backed by the same fuzzy search index
  • References sidebar: a side panel listing every reference cited in the active note, with one-click navigation, Cmd/Ctrl-click to jump to a citation in the note, and "copy bibliography"
  • Zotero PDF annotation import: pull native Zotero highlights into templates as structured data (text, comment, color, page, tags) with zotero:// deep links that open the PDF at the exact annotation
  • Native Zotero connection: read a running Zotero (7+) through its built-in local API, with no Better BibTeX, no export files, native citation keys, group libraries and collection scoping
  • Non-destructive note updates: re-sync literature notes with the library. The plugin owns only its {{#syncBlock}} callouts and template frontmatter keys, merges changes three-way (yours + the library's) against the last synced snapshot, and shows a diff review dialog on real conflicts. Your own content is never touched
  • Insert or replace with template output: select outdated text in a note (such as PDF links from before a new attachment), extract the template part that produced it, edit it or load a saved profile, preview the result, and replace only the selection. With nothing selected, insert the output at the cursor
  • Readwise integration: import highlights and documents from Readwise as citable entries
  • Refresh citation database: manually reload all sources

See Features for details.

Templates

Customize your notes using Handlebars templates with 25+ variables, 18+ helpers, and built-in citation style presets.

Multiple Databases

Load citations from multiple .bib, .json, or .yml files, the Readwise API and a running Zotero at the same time. Every search result shows the name of its database, and a citekey found in two databases is kept as two separate entries.

Two database cards, a Better CSL JSON file and a Better BibTeX file

See Data Sources and Configuration for details.

Documentation

Full documentation is in the docs/ directory.

Network Use

This plugin accesses the network only when you configure it to, and it never sends telemetry or analytics.

  • Readwise API (readwise.io): contacted only if you add a Readwise data source and supply your own API token, in order to fetch your highlights (v2) and documents (v3) as citable entries. If you set a sync interval, the plugin re-fetches from this endpoint on that schedule. Otherwise it fetches on demand. Your token is stored locally in plugin settings and sent only to Readwise for authentication.
  • Local Zotero (127.0.0.1:23119): contacted only if you add a database whose source is Zotero (Better BibTeX) or Zotero (local API). The first pulls the Better BibTeX export and, when "Import PDF annotations" is on, your PDF annotations via the Better BibTeX JSON-RPC endpoint. The second reads Zotero's built-in local API. This is loopback-only traffic to Zotero running on the same machine, and nothing crosses the network.
  • Documentation links (github.com): the settings screen links to the plugin's documentation. These open in your browser when you click them. The plugin makes no automatic requests to GitHub.

All bibliography parsing happens locally. Nothing leaves your vault unless you explicitly enable the Readwise integration above.

Development

npm run dev      # Watch mode
npm run build    # Production build
npm run lint     # ESLint
npm test         # Jest test suite

See Architecture for the design of the plugin.

License

MIT License.

Support

If you find this plugin useful, consider buying me a coffee.