sean-3902k downloadsAnnotate and ask questions about the text or region you select, in notes and PDFs, without leaving the page. Annotations live in their own Markdown files and stay linked to the source; the original document is never modified.
Highlight, annotate and ask about what you select — in notes and in PDFs — without leaving the page.
English | 中文
Every annotation lives in its own Markdown file and stays linked to the source — the original document is never modified, not a single byte.
| Select and ask | The answer, stored with the annotation |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
In a PDF there are three annotation tools, side by side in the toolbar (the active one keeps an accent background, and the pointer changes with it). Click the active tool again to put it down: the pointer goes back to a normal arrow so you can just read.
To open an annotation: hover its highlight band (anywhere on the highlighted text) and click, or hover the border of a region — the interior of a region is deliberately not clickable, so you can always draw inside it. A sticky note opens from its own icon. Hovering shows the annotation's label and dims the others; the body of an annotation never blocks drawing, so you can annotate straight over existing ones in any mode.
| Tool | How | What you get |
|---|---|---|
| Highlighter | Drag across text | A clean band snapped to the lines — nothing pops up; click it to write a note. Dragging straight down highlights whole lines; starting the next stroke on an existing highlight (or the line next to it) merges into it |
| Region | Drag a rectangle | The ask panel opens the moment you release; the region's text and a screenshot go to the model together |
| Sticky note | Click anywhere on the page | Only a small icon stays on the page; click it to read or write (several lines are fine). The icon can be dragged to another spot — in any mode |
The highlighter and the region tool can be combined on one annotation (a band for the text, an outline for the area). Right after a stroke or a drop, Escape takes that step back: a new highlight or an empty sticky note is removed entirely, while a merged stroke only gives back what it added.
Drag a rectangle over a PDF page — the text of that region and its screenshot go to the model together, and the box stays on the page to reopen later (the viewer with its outline is the last screenshot below).
<your-github-user>/pickme.main.js, manifest.json and styles.css into <vault>/.obsidian/plugins/pickme/, then enable it in Settings.Works on desktop and on Obsidian for iOS / Android. On a touch screen there is no hover, so you tap instead: tap a region's edge, a highlight band or a sticky-note icon to open that annotation. With a tool selected the page takes over the gesture — one finger draws, two fingers pinch; switch back to the pointer to scroll. The ask panel becomes a bottom sheet that follows the keyboard. Selecting text in a note shows a small ask button, since mobile has no right-click.
This plugin collects nothing and has no telemetry. It does need network access to the model endpoint you configure:
.obsidian/plugins/pickme/data.json, like any other Obsidian plugin's settings. It is never sent anywhere except the endpoint you configured.pickme_include_note).main.js at build time..obsidian/plugins/pickme/: annotation files, templates, the generated index) and reads nothing outside the vault.Interactions happen on the page. The sidebar is only for reviewing existing annotations.
Escape right after a stroke takes it back; click a highlight to write a note.Escape without writing and it is gone. The icon can be dragged anywhere, in any mode.× or Escape. A region you just drew that has no question yet is undone when you close the panel; once you have asked something it stays.All pages sit in one scroll container, like the built-in PDF reader: the scrollbar represents the whole document, and the page box follows it.
| Way to move | How |
|---|---|
| Wheel / trackpad | Scroll continuously; PageUp/PageDown/Home/End scroll natively |
| Buttons / page box | Toolbar previous/next page, or type a page number and press Enter |
| Trackpad swipe | Swipe sideways to flip a page (needs ~120px so it doesn't fire by accident) |
| Keyboard | ← / → flip pages (the page box keeps focus; when zoomed in far enough to scroll sideways, arrows stay native) |
Only pages near the viewport are rendered; far-away canvases are released and repainted when you scroll back, so a 100-page PDF does not eat hundreds of MB.
Outline: PDFs with bookmarks (usually standards, manuals, datasheets) get an outline panel on the left; click an entry to jump to that page. PDFs without bookmarks get no outline button at all. The open/closed state is remembered.
Run the command Open annotation index to get a sidebar listing every annotation in the vault, grouped by source document: selection snippet or PDF page, question count, anchor id and creation time.
↑↓ to move, Space to tick, Mod+A for all, Delete to delete. It asks first and spells out the consequences: the anchor tags in the source are removed with the annotation, nothing else in the note is touched, and region screenshots go with it.Stale (N) row at the end of each group, with the reason spelled out. Use the command Rebind stale anchors to re-attach one by re-selecting the text in the source.annotations-index.md summary inside its own (hidden) plugin folder — an internal artifact with no setting; handlers that want it can point Dataview at the plugin folder.
A template is just a prompt. Three are built in — Explain / Summarize / Translate — and every .md file in the template folder is a template; the file name is the name in the dropdown.
Variables: {{选区}} (selection), {{提问}} (question), {{上下文}} (context), {{笔记标题}}, {{源路径}}, {{页码}}, {{已有批注}}, {{区域图片}}. A line whose variables are all empty is dropped entirely, so optional paragraphs are safe.
Frontmatter can override per-template behaviour:
pickme_model: qwen/qwen3.8-flash-next # model for this template (empty = default)
pickme_temperature: 0.7 # override temperature
pickme_include_note: false # also send the whole note
pickme_vision: true # send the PDF region screenshot
pickme_context: false # attach surrounding context
Point the plugin at any OpenAI-compatible endpoint (official API, a gateway, an intranet service). The settings cover the base URL, API key, default model, temperature, streaming, deep thinking, an optional vision model, and the maximum output length. Test connection sends a minimal request to check the credentials.
Two things worth knowing:
Full section-by-section explanation of every setting: README.zh.md (Chinese).
One line per release; the full notes live in CHANGELOG.md.
| Version | Highlights |
|---|---|
| 1.0.17 | Annotation files move (and are renamed) together with their source, screenshots included; the delete cleanup got a double check and a grace period |
| 1.0.16 | Annotations and screenshots are cleaned up when their source document is deleted (moved or renamed documents are unaffected; can be turned off) |
| 1.0.15 | Fast multi-line strokes fill in the lines they skipped; the index survives moving or renaming a document; smaller cursor that becomes a bare stroke while drawing |
| 1.0.14 | Fixed: a multi-line selection in a note was saved as its first line only, then marked stale (community contribution) |
| 1.0.13 | Saving a sticky note closes its box |
| 1.0.12 | Sticky notes can be dragged anywhere; paler icon |
| 1.0.11 | Sticky notes (a third annotation tool); notes can run several lines |
| 1.0.10 | Continued strokes merge into one highlight; a vertical drag highlights whole lines; finishing a stroke opens nothing |
| 1.0.9 | Highlights take a one-line note; your own stroke shows while dragging; only what you paint is covered |
| 1.0.8 | The pointer distinguishes the three tools; the active tool is marked on the toolbar |
| 1.0.7 | The highlighter only highlights (click it to write a note); Escape takes back a fresh highlight |
| 1.0.6 | PDF highlighter annotations (strokes snap to text lines); PDFs remember where you stopped reading |
| 1.0.5 | Fixed empty-folder cleanup that never ran |
| 1.0.4 | No empty folder left behind when deleting an annotation; committed generated assets; gzip header fix |
| 1.0.3 | Inlined assets packed as one gzip stream — smaller install, fewer failures |
| 1.0.2 | The ask panel no longer preselects the first template |
| 1.0.1 | minAppVersion raised to 1.7.2; panel component lifecycle fixes |
| 1.0.0 | First release: ask about note selections and PDF regions, annotations in their own files, index and reverse navigation |
main.js is about 3.8 MB because pdf.js's CMap tables and standard fonts are inlined — the price of needing no network for PDF rendering. They ship as one gzip stream per group and are decompressed once, on demand, so the download stays as small as this feature allows.requestUrl, which cannot stream — the answer appears in one piece instead of typing itself out.requestAnimationFrame and pdf.js rendering pauses; it repaints when the window returns.<span data-pickme="xxxxxx"></span> — so Obsidian keeps them and reading view can draw the marks. They are visible as text in source mode only. Notes written before 1.6.11 use the old custom tag; run the Migrate anchors to the new format command once (it counts first, backs up every touched note into the plugin folder, and verifies afterwards).npm install
npm run dev # watch build
npm run verify # typecheck + unit tests + build + smoke test
npm run build # produce main.js
node scripts/install.mjs "/path/to/vault" # symlink the project into a vault (dev)
node scripts/install.mjs "/path/to/vault" --copy # copy the built files instead
The repository ships the plugin source and build scripts only. Design and acceptance documents stay in the private development repository.
src/generated/pdfAssets.ts (pdf.js CMap tables and standard fonts, ~1.8 MB of base64) is committed on purpose: static analysis and type checking have to resolve it, and an unresolved import degrades to any, which shows up as spurious unsafe-* findings in the plugin review. Regeneration is deterministic, and CI fails if it drifts from pdfjs-dist.
[email protected], Apache-2.0) for PDF rendering; its CMap tables and standard fonts are inlined by scripts/inline-pdf-assets.mjs.new Function. Pick Me disables them (isEvalSupported: false in src/pdf/pdfjs.ts), so no generated code is ever evaluated — the automated review still shows a "dynamic code execution" note because that code is present in the bundle.