Jonathan Sanchez35 downloadsAdd inline comments to your notes with threaded replies, resolve/unresolve, and a sidebar panel.
Comment on your Obsidian notes the way you would on a shared document.
Threaded replies, resolve and reopen, and a panel for every conversation. Your Markdown stays untouched.
Comment on a line or on a few words |
Talk it through in threads |
See every conversation in one panel |
Read without losing the thread |
Markers stay visible without hover, controls are sized for a thumb, and threads open in a sheet at the bottom of the screen. Colours come from your theme, light or dark.
main.js, manifest.json and styles.css from the latest release.<your vault>/.obsidian/plugins/margin-comments/ and copy the three files into it.Open Settings → Margin Comments.
| Setting | Default | What it does |
|---|---|---|
| Author name | empty | The name stamped on comments you write from now on. |
| Gutter icons | on | Shows the markers in the left margin. Without them, add comments with the Add comment to selection command. |
| Comment count | on | Badges a marker with the number of open threads on its line, when there is more than one. |
| Highlight commented lines | on | Tints lines that carry an open comment, in editing and reading mode. |
| Follow the theme accent | on | Takes the highlight color from your theme. |
| Highlight color | none | Appears when Follow the theme accent is off. The color used in every theme. |
| Fuzzy matching tolerance | 0.3 | How far edited text may drift before a comment stops finding it. |
| When a note is deleted | Delete its comments | Deleted comments are held on disk and come back whenever the note does, including after a restart or a rename made outside Obsidian. Kept comments stay readable in the all-notes view. |
| Side | Right | Which sidebar the panel opens in. |
| Sort order | Document order | Document order, date created, or last activity. |
None has a default hotkey. Bind the ones you use in Settings → Hotkeys.
| Command | What it does |
|---|---|
| Add comment to selection | Comments on the selected text, or on the line holding the cursor. |
| Toggle comments panel | Opens or closes the panel. |
| Go to next comment | Moves the cursor to the next commented line. |
| Go to previous comment | Moves the cursor to the previous commented line. |
| Resolve all comments in this note | Resolves every open thread in the note, after confirming. |
Comments live as JSON files in .margin-comments/ at the root of your vault: one file per commented note, plus an index. Your Markdown files are never modified.
Each comment remembers the words it was made on and the text around them, not a line number. It follows those words as you edit, and moves with the note when you rename it or move its folder. A comment whose words are gone is kept and shown as orphaned.
A damaged comment file is set aside and reported, never overwritten.
Syncing. Git, iCloud and Dropbox sync the folder like any other. Obsidian Sync skips folders that start with a dot, so with Obsidian Sync your comments stay on the device where you wrote them.
Large notes. The panel draws every thread it shows. A note with a thousand comments takes about a quarter of a second to draw, and scrolling stays smooth.
Each comment file is plain, unencrypted JSON. For every comment it stores the note's path, the commented words with about 50 characters on either side, the comment itself, the author name from settings, and timestamps.
Because the folder holds excerpts of your notes, treat it as part of your vault:
To keep comments out of Git, add .margin-comments/ to .gitignore.
Bug reports and pull requests are welcome. See CONTRIBUTING.md for the development setup.