Beppe120 downloadsCompare the working version of a note with any past Git commit, side by side with inline diff highlighting.
Chapter Diff shows exactly what changed between the note you are editing and any earlier version saved in Git. The past revision appears on the left, the live note appears on the right, and additions and removals are highlighted inline.
It is designed for long-form writing: choose the version you want on the left, then continue drafting directly in the editable Working Tree on the right. You can also keep the note open in a normal editor tab; the comparison stays in sync.

Chapter Diff writes only the note you edit in its right-hand pane. It never stages, commits, pushes, switches branches, or rewrites Git history.
Chapter Diff does not assign a default hotkey, so it cannot overwrite an existing shortcut. Open Settings → Hotkeys, search for Chapter Diff, and assign the shortcut if you want it.
| Command | What it does | Suggested macOS hotkey |
|---|---|---|
| Compare current file with a past revision | Opens the commit picker for the active note, then replaces its tab with an editable split diff. | ⌥⇧⌘D |
git installed and available on your system PATH. Chapter Diff shells
out to your system Git; it does not bundle or depend on obsidian-git's
internals.child_process,
which is not available on mobile.The Obsidian Git plugin is optional. It is a convenient way to create and sync commits, but Chapter Diff talks directly to the Git installation on your computer and does not depend on Obsidian Git.
beppepic/chapter-diff.You can also run BRAT: Plugins: Add a beta plugin for testing from the Command Palette and enter the same repository identifier.
After installation, open a note with Git history and run Chapter Diff: Compare current file with a past revision from the Command Palette.
Chapter Diff reads Git history with git log and git show; it never stages,
commits, or pushes anything. The "current" side of the comparison is the
actual note in the Obsidian vault. Editing the right-hand column updates that
note, so Git sees the result as an ordinary Working Tree change.
pnpm install
pnpm dev # watch build
pnpm build # type-check + production build
pnpm test # unit tests
pnpm lint # eslint
Symlink (or copy) main.js, manifest.json, and styles.css into
<vault>/.obsidian/plugins/chapter-diff/ to test in a real vault.
Download main.js, manifest.json, and styles.css from the
latest release.
Place them in <vault>/.obsidian/plugins/chapter-diff/, reload Obsidian, and
enable Chapter Diff under Settings → Community plugins.