Simple Track Changes

by Oivánngí
5
4
3
2
1
Score: 50/100

Description

Reviews

No reviews yet.

Stats

0
stars
10
downloads
0
forks
3
days
3
days
3
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
4
commits

Latest Version

3 days ago

Changelog

Initial release of Simple Track Changes for Obsidian Live Preview & Source Mode.

README file from

Github

Track Changes (追蹤修訂) for Obsidian

Track Changes mode for Obsidian Live Preview and Source Mode using ++additions++ (or <ins>additions</ins> fallback) and %%~~deletions~~%%.

Addition Syntax & Dependency

  • ++...++ syntax depends on Extended Markdown Syntax (extended-markdown-syntax).
  • Automatic <ins> fallback: When Extended Markdown Syntax is not installed or enabled, Track Changes automatically falls back to native HTML <ins>...</ins> tags so additions still render properly in Live Preview and Reading View.
  • You can also override this behavior in plugin settings (Auto, Force ++...++, or Force <ins>...</ins>). Both ++...++ and <ins>...</ins> are recognized uniformly for decorations, boundary protection, and Accept/Reject actions.

Features

  • Mode-aware: Active only in editing modes (Live Preview and Source Mode), automatically paused in Reading View.
  • Floating Indicator: Prominent 「追蹤修訂中」 floating pill with quick navigation (↑ / ↓), accept (✓), reject (✕), and close controls.
  • Additions (++...++ / <ins>...</ins>): Typed or pasted text is wrapped automatically (unless already inside ++...++, <ins>...</ins>, or %%...%%).
  • Deletions (%%~~...~~%%): Deleted text is preserved and wrapped with %%~~...~~%% (unless deleting inside existing addition or comment markup).
  • IME Safe: Defers wrapping during CJK / IME composition (input.type.compose) until compositionend, preserving candidate windows.
  • Smart Merging & Boundary Protection: Merges consecutive additions/deletions and protects delimiters from accidental corruption on Backspace/Delete.
  • Review Commands: Accept/Reject change at cursor, Accept/Reject all changes, Jump to next/previous change.

Development

npm install
npm run build