阅读便签
unlistedby Charlie Su
读 PDF / 资料时浮一个便签大小的小窗随手记阅读笔记:自动带页码锚点、存成 Markdown 便签、点便签跳回那一页。
Reading Sticky
A sticky-note-sized floating panel for Obsidian that lets you take reading notes while a PDF is open — every note carries the page number it belongs to, and everything is saved as plain Markdown inside your vault.
中文说明见文末 简体中文。
What it does
When you read a PDF in Obsidian, the panel floats above the reading view. Type a note, hit save, and it is appended to a Markdown file next to the source document with the current page as an anchor:
- Page anchors are automatic. The panel reads the current page from Obsidian's built-in PDF viewer (as you scroll, not only when you stop) and stamps every note with
p.12, orp.12–13when the note spans a range. - Notes are grouped by page. The list tab groups every note of the current document by page; click one and Obsidian jumps back to that page and flashes the passage.
- Drafts never get lost. Every draft is kept per source document and restored when you switch files or close the panel.
- Quote from the PDF. Select text in the PDF, press
引原文, and the selection is carried into the note as a block quote. - Search inside your reading notes. The list tab filters by page, text, or tag.
- Edits stay contained. Editing or deleting a note rewrites only that note's block; anything you wrote by hand elsewhere in the same file is left untouched.
- Collapse to a pill. Drag it away, resize it, or collapse it into a small pill when you need the screen.
Requirements
| Obsidian | 1.4.0 or newer |
| Platform | Desktop only (Windows / macOS / Linux). The panel reads the PDF viewer DOM, so mobile is not supported. |
| Source format | PDFs opened in Obsidian's built-in PDF viewer. Markdown notes also work, but only PDFs produce page anchors. |
Compatibility note
Page detection reads the PDF viewer's DOM (the pdf.js viewer inside Obsidian's PDF view) and falls back to the viewer's page input. That is how it stays accurate while you scroll, but it is not a public API: an Obsidian release that changes the PDF view internals can break the page anchor until the plugin is updated. Everything else — notes, tags, drafts, files — keeps working in that case, only the page number degrades to 无页码 (no page).
Install
The plugin is not in the community plugin list yet. Install it manually:
- Download
main.js,manifest.json, andstyles.cssfrom this repository (or from a release, once one is published). - Put them in
<your-vault>/.obsidian/plugins/reading-sticky/. - In Obsidian: Settings → Community plugins → Reload plugins, then enable 阅读便签.
Usage
| Action | How |
|---|---|
| Open / close the panel | Alt+B, the sticky-note ribbon icon, or the command palette |
| Save the note | Ctrl+Enter (or the save button) |
| Jump to a page | Click any note in the list tab |
| Quote the PDF selection | Select text in the PDF, then press 引原文 |
| Search notes | The search box in the list tab |
| Reset the panel position | Settings → Reading Sticky → 小窗位置 → 复位 |
Commands
| Command | Default hotkey |
|---|---|
| 打开 / 关闭阅读便签窗 (toggle panel) | Alt+B |
| 把便签窗里的内容存成便签 (save note) | — |
| 聚焦阅读便签输入框 (focus the editor) | — |
Settings
| Setting | Meaning |
|---|---|
| 便签文件存哪 | sidecar: save next to the source document. folder: save every note file into one folder. |
| 指定文件夹 | Folder used in folder mode, relative to the vault root. |
| 标签 | Tag buttons shown in the panel, comma separated. Leave empty to only see tags you already used. |
| 小窗位置 | Moves the panel back to the top-right corner of the screen. |
Where notes are saved
With the default sidecar mode, a PDF at Papers/Attention.pdf produces Papers/Attention · 阅读便签.md:
---
title: "Attention · 阅读便签"
source: "Papers/Attention.pdf"
type: 阅读便签
created: 2026-10-21
---
# Attention · 阅读便签
## p.12 · 2026-10-21 12:41 · #概念 #疑问
> 摘录:The dominant sequence transduction models are based on complex recurrent…
Attention replaces recurrence entirely; check whether the complexity claim holds for long inputs.
---
The file is a normal Markdown file: you can open it in Obsidian, link it, or paste it elsewhere. Notes are delimited by ## <page> · <date time> · #tags headings and a trailing ---, which is what lets the plugin safely rewrite a single note without touching the rest of the file.
Language
The panel UI is Simplified Chinese for now, and so is the note file naming (<source name> · 阅读便签.md). An English UI is on the roadmap; the notes themselves are plain Markdown and language-neutral.
Roadmap
- English UI strings (i18n)
- Split the single-file
main.jsinto modules - GitHub Actions: manifest / syntax check on every PR
- Release workflow and community plugin submission
Development
The plugin is a single file, main.js, with no third-party dependencies — it uses the public Obsidian API only. There is no build step: edit main.js, copy the three files into a test vault's plugin folder, and reload Obsidian.
Static files that ship with a release are main.js, manifest.json, and styles.css.
Contributing
Issues and pull requests are welcome. Please keep changes focused: this plugin deliberately stays small, has no dependencies, and does not build a UI framework on top of Obsidian's own elements.
License
简体中文
阅读便签:读 PDF 时浮一个便签大小的小窗,随手记阅读笔记。
- 自动读取当前 PDF 页码,每条便签带
p.12锚点;按页分组,点一条就跳回那一页并闪一下。 - 存成知识库里普通的 Markdown 文件:默认与资料同目录(
<资料名> · 阅读便签.md),也可统一存到指定文件夹。 - 草稿按资料自动保存,换笔记、关小窗都不丢;支持引原文、标签、按页/文字/标签搜索。
- 编辑或删除单条便签只改那一条,不碰你在同一文件里手写的其他内容。
安装:把 main.js、manifest.json、styles.css 放进 <你的库>/.obsidian/plugins/reading-sticky/,在「设置 → 第三方插件」里重载并启用。
快捷键:Alt+B 开 / 关小窗,Ctrl+Enter 存便签。
要求:Obsidian 1.4.0+,仅桌面端(需要读 PDF 阅读视图的 DOM)。
协议:MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.