by ke xue
Annotate selected text and whole notes with local discussion threads, replies, and reactions in a sidebar.
Selection Comments · 选区评论
Annotate a passage or an entire Markdown note in Obsidian. A sidebar keeps the quotation, discussion, replies, and resolution status together. Comments are stored locally, so the original Markdown stays intact.
The plugin runs on desktop. The interface is in Simplified Chinese.
使用方法
- 在编辑视图中拖选文字,点击浮出的「评论」。也可以按 ⌘ Shift M(Windows/Linux 使用 Ctrl Shift M)评论选区或光标所在段落。给整篇笔记写评论时,点击评论栏的「添加页面评论」。
- 从右侧对话气泡标签查看当前笔记的讨论。点击黄色标记打开对应讨论,点击侧栏中的引用跳回原文。关闭标签后,可以从命令面板运行「打开右侧评论栏」。
- 每条评论和回复都可以编辑、添加表情或删除。用「解决讨论」收起处理完的话题,切换到「已解决」可重新打开。删除首评时会保留它下面的回复。
- 在评论输入框里点「引用笔记」可以插入笔记链接。「复制讨论链接」可生成一个在本仓库打开该讨论的链接。
Installation
Download main.js, manifest.json, and styles.css from the release. Put them in <vault>/.obsidian/plugins/selection-comments/, reload Obsidian, and enable Selection Comments under Settings → Community plugins. The plugin runs directly from the JavaScript source. There is no build step.
Storage and anchoring
Back up the plugin's data.json alongside your vault. It contains the quoted text, surrounding context, note paths, comments, and replies. The plugin works offline and does not send this data to a server. It is designed for personal use.
Anchors use quoted text and nearby words to find a passage again after edits. When a quote is removed, rewritten, or ambiguous, the discussion stays accessible in the sidebar. Reading view supports selections that can be matched to their Markdown source. Use editing view for generated content or ambiguous passages.
License
MIT © 2026 Ke Xue.
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.