by martingryner
Compare the active note with the text on the clipboard in the Diff Anything app on Mac.
Diff Anything Compare
Compare the note you are editing with the text on your clipboard, side by side, in Diff Anything, a comparison app for Mac.
Typical uses: check what changed between your note and a version someone sent you by email or chat, compare a draft with text copied from a web page, or see what an edited paragraph changed before you paste it in.
Use
- Open a note.
- Copy the other text.
- Run Diff Anything Compare: Compare active note with clipboard from the command palette, or give it a hotkey in Settings, Hotkeys.
Diff Anything opens with the note on the left as the original and the clipboard text on the right, and lists each changed, added and removed line.
Requirements
- Obsidian on a Mac. The plugin is desktop-only and works on Mac only for now; on other systems the command says so and does nothing.
- Diff Anything 1.8 or later from the Mac App Store. If it is not installed, the command explains what is missing and links to it.
The plugin itself is free and has no settings. Diff Anything is free to download; its free version compares files up to 5 MB each and up to 10 comparisons a day, and a one-time Pro purchase in the app removes these limits. Each comparison the plugin opens counts toward that daily limit. The texts it sends are at most 1 MB each, the most Diff Anything accepts from another app, so the size limit never gets in the way.
Limits
- Each text can be at most 1 MB (UTF-8). A longer note or clipboard text is refused with a message, and nothing opens.
- The clipboard must hold text. An empty clipboard is refused with a message.
- Diff Anything picks the comparison type from the text. Ordinary notes open as Markdown text; a note made only of "key: value" lines may open as YAML. Choose Text in Diff Anything's comparison type menu to compare it line by line.
Privacy
- The plugin reads the active note and the clipboard only when you run the command. It never writes to your vault.
- Both texts go straight to Diff Anything on your Mac through its
diffanything://compare-textlink. Nothing is sent over the network, there is no telemetry, and no AI is involved, in the plugin or in Diff Anything.
Source
main.js is the complete plugin source: plain JavaScript with no build step or dependencies.
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.