by mmc
A simple version control plugin for Obsidian. Save, manage, compare and restore file versions with an intuitive interface.
Version View for Obsidian
Note: This community-maintained rebuild is based on the original Version View plugin by joeytoday. The original repository was missing
main.js, so this implementation was rebuilt using AI. The maintained repository, releases, and issue tracker are at maoqingwei/obsidian-version-view.
A simple version control plugin for Obsidian. Save, manage, compare and restore file versions with an intuitive interface.
Language
The interface follows Obsidian’s language setting: Chinese (zh, including regional variants) uses Simplified Chinese; other languages use English. Automatic language detection uses the public API available in Obsidian 1.8.7 and later; older versions fall back to English. After changing the app language, restart Obsidian to refresh all labels. Saved version names, descriptions, and note content are preserved.
English translations adapted from ThisIsKenta’s contribution in PR #2.
Features
- Save Version Snapshots - Save current file version with optional name
- Visual Version Comparison - Side-by-side diff with line numbers, highlighting added (green) and removed (red) content
- One-Click Restore - Revert to any previous version instantly
- Edit Version Info - Update version name and description
- Compare Any Two Versions - Select two versions to compare, or compare with current document
- Fullscreen Diff View - Toggle fullscreen mode for better readability
- Show Only Differences - Filter to show only changed lines
- Frontmatter-Aware Diff - YAML frontmatter is visually distinguished for cleaner comparison
- Configurable Settings - Set version storage folder and maximum version count
Installation
Community Plugin Store (Recommended)
- Open Settings → Community plugins
- Click Browse and search for "Version View"
- Click Install, then Enable
Manual Installation
- Download
main.js,styles.css, andmanifest.jsonfrom the latest release - Create a folder
version-viewin your vault's.obsidian/plugins/directory - Copy the downloaded files into the
version-viewfolder - Enable the plugin in Settings → Community plugins
BRAT Installation
- Install the BRAT plugin
- Add this repository:
https://github.com/maoqingwei/obsidian-version-view
Usage
- Open any note
- Click the clock icon 🕐 in the ribbon, or run the command "Toggle Version View"
- Enter a version name (optional) and click "Save version"
- Each card shows its version number, full name, and a compact timestamp (hover for the full date and time).
- Click Compare with Current Version to inspect changes. Open More actions (⋯) to edit, restore, or delete a version.
- Select two versions with checkboxes to compare them directly; the selection hint shows progress.
- Press Enter in the version name field to save. Confirming text with an input method does not trigger saving.
Saving, comparing, and restoring
- The sidebar identifies the active note. While a version is being saved, the save button shows “Saving…” and ignores repeated clicks.
- Comparisons always show the older version on the left and the newer version on the right, with names and timestamps. Comparing against the current note always puts the current note on the right. Red indicates removed content and green indicates added content from older to newer.
- Before restoring, the plugin saves the current note as a “Before restore” version. If the backup fails, the note is not replaced.
- Use Undo restore in the sidebar to undo the most recent restore for that note during the current plugin session. If you have edited the note since restoring, undo leaves those edits intact; compare with the backup to recover earlier content. The saved backup remains in the version list after restarting Obsidian.
Settings
- Version Storage Folder - Where version files are stored (default:
res/versions) - Maximum Versions - Auto-delete old versions when exceeding this limit (default: 50)
License
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.