Diff and Patch Viewer

by Viggo Meesters
5
4
3
2
1
Score: 35/100
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. Read-only viewer for .diff and .patch files with file, hunk, and additions/deletions summaries.

Reviews

No reviews yet.

Stats

stars
8
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Diff and Patch Viewer

Read-only Obsidian viewer for .diff and .patch files.

Scope

This plugin only renders diff and patch files. It does not apply patches, call git, modify files, or bundle unrelated Git Viewer behavior.

Features

  • opens .diff and .patch through a custom read-only view;
  • shows file list and per-file stats;
  • shows hunk headers;
  • highlights additions and deletions;
  • falls back to raw read-only text when no unified diff hunk is detected.

Development

npm install
npm run lint
npm run typecheck
npm test
npm run build
npm run sync:test-vault
npm run smoke:cdp

npm run sync:test-vault copies only main.js, manifest.json, and styles.css to:

/mnt/c/Users/viggo/github/obsidian-test-vault/.obsidian/plugins/diff-patch-viewer

The sync script refuses Syncthing/vault targets.