adithyanraj03/dsh-cite-lens

Read and quote PDFs inside DSH: select a passage to quote it into chat, and click the model's citations to jump to the exact words.

Turns the PDF you already have open into the working surface. Selecting text raises a toolbar with Quote, Ask, Explain and Check this, each of which puts the passage into your message box tagged with the file and page, under whatever you had typed, without sending anything. Selection behaves like an editor's: handles snap to the nearest text, Shift+click and Shift+arrow adjust the range, and it does not jump to the whole page when the cursor crosses a line gap. In the other direction, a short system-prompt note teaches the model to cite as [main.pdf p.7 "exact words"] and each citation becomes a link that opens the PDF, scrolls to those words and highlights them — matching is forgiving of line breaks, hyphenation, ligatures, curly quotes and case, and works on pages that have not been drawn yet. If the quoted words are not in the PDF, for instance because it has not been rebuilt since an edit, the link says so instead of jumping somewhere wrong. A /cite-links toggle asks the model to back every claim about the paper with such a link, per chat.

Learning & Research ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add dsh-cite-lens

The README's install line; restart dsh web afterwards. PDFs opened from the Files tab then use Cite Lens, and removing the plugin returns dsh's built-in PDF view. Nothing is uploaded — the PDF is rendered locally with PDF.js — and the plugin never sends a message itself, it only fills in your message box.

Compatibility

dsh 0.1.5-rc.2 or newer on the web profile, Node.js 22 or newer, and a current browser. The author developed against the 0.1.5 line and checked 0.2.1-rc.3, which share the external-band renderer contract it relies on; citation underlining uses the CSS Custom Highlight API, so in a browser without it links still work when clicked but are not underlined. Tested in Chrome.

Details

Alternatives

SihanLv/dsh-literature · tianyao2003/dsh-find-ideas · LUK-jiao/dsh-wait-learn

More plugins in Learning & Research

Browse more in Learning & Research

Guides for Learning & Research plugins