mirror of
https://github.com/zackaryw/obsidian-image-inline.git
synced 2026-07-22 09:20:30 +00:00
Refactor editor and batch workflows for better performance, reliability, and observability. - Editor: collapse inline data URLs using viewport-scoped decoration building (only scan visibleRanges) and a compact widget; move detection into pure helpers for easier testing. - Cursor escape: replace polling with selectionchange and editor-change events and extract cursor/link bound helpers to src/coms/cursorEscapeHelpers.ts. - Batch convert/export: add scoped debug/warn/error logging, prepare deterministic replacement lists, and apply updates via the active editor when open or vault.process when closed to keep editor state in sync. - Export modal: accept ArrayBuffer for binary exports and improve duplicate-skip logic. - Docs/tests: rewrite README to reflect current features and add focused Node-based tests for antiLinkExpand and cursor escape helpers. - Tooling: bump plugin version to 4.0.0 and upgrade TypeScript/toolchain entries (package.json/package-lock.json, tsconfig updates). These changes target performance (avoid full-document scans), correctness (atomic editor/vault updates), and developer experience (structured logs and testable helpers). |
||
|---|---|---|
| .. | ||
| banner.png | ||