Commit Graph
596 Commits
Author SHA1 Message Date
dawn 0b11364697 Fix Markdown image canvas size after content edits 2026-10-26 12:07:36 +01:00
zsviczian 89e1b4670e Merge remote-tracking branch 'origin/master' into fix/pr-3006-json-semantics 2026-10-21 18:47:31 +02:00
The.D 16e0fa353c Merge upstream/master: resolve package.json scripts, dedupe 2.29.1 Fixed section 2026-10-19 14:40:51 +08:00
zsviczian abf35c06de Fix image-heavy CLI revisions and add bounded image previews 2026-10-15 06:17:18 +02:00
The.D 6b6cd06586 fix(settings): address review — queue-safe suppression, force repair, JSON semantics
Review feedback on the first revision:

1. Queued A -> B -> A could lose the final A: the unchanged-write check
   ran at request time, before preceding writes settled. The comparison
   now happens inside the serialized queue, after all earlier writes
   complete, against the cache value at execution time.
2. The suppression cache could block corruption recovery: repairing an
   invalid externally synchronized data.json with content equal to the
   cache was skipped. persistSnapshot() gained a force path used by the
   invalid-data write-back and the startup recovery choice.
3. Canonicalization now preserves native JSON.stringify value semantics:
   toJSON results are serialized instead of the source object (Date ->
   ISO string), and objects accumulate into a null-prototype map so an
   own __proto__ key stays data instead of hitting the prototype setter.
4. Added committed regression tests (npm run test:settings): key-order
   equivalence, array order, Date/toJSON, __proto__ safety, unchanged
   skip, queued A -> B -> A, failed-write retry, force repair, cache
   seeding.
5. Restored the 2.29.1 release-note line about script input suggesters
   that the previous revision dropped.

The canonical serializer moved into SerializedSettingsWriter.ts so the
node:test suite can import one module without bundler resolution.
2026-10-15 10:49:39 +08:00
zsviczian 60af5d5cb8 cleanup message UX 2026-10-14 08:24:06 +02:00
The.D 995fd11a1f fix(settings): canonical key order and skip unchanged writes
data.json was rewritten in an endless loop when two persistence paths
serialized the same settings with different key orders: the load-time
drift check compared JSON.stringify outputs, which are sensitive to key
order, so every incoming shape was classified as drift and re-persisted,
and each write re-triggered the counterpart. Vaults tracked with Obsidian
Git accumulated hundreds of no-change backup commits per day.

- serialize settings with recursively sorted object keys so the byte
  form is a pure function of the settings value
- skip persistence when the canonical form matches the last persisted
  payload; seed that cache from the on-disk payload after a clean load
- compare drift canonically in the loadSettings write-back check
2026-10-14 12:05:08 +08:00
zsviczian b365a35f09 Wrap reported drawing load errors within the dialog 2026-10-13 19:34:54 +02:00
zsviczian cb0e2913d8 Identify drawing load failures and add read-only details (#2995) 2026-10-13 18:42:59 +02:00
zsviczian b0b8a2b039 deploying mindmap builder and fixing inline link suggester keyboard event handler getting stuck 2026-10-13 17:31:24 +02:00
zsviczian 5023a771a3 update CLI instructions 2026-10-12 21:20:27 +02:00
zsviczian 2f12588d99 docs: streamline Excalidraw 2.29.0 release notes and add video 2026-10-12 20:00:06 +02:00
zsviczian 769d58ea45 Merge remote-tracking branch 'origin/master' into 2026-10-11-obsidian-excalidraw-cli
# Conflicts:
#	docs/OBSIDIAN_RUNTIME_TESTING.md
#	scripts/testing/host/verify.mjs
2026-10-11 21:48:58 +02:00
zsviczian 41072f2929 feat: add native Excalidraw CLI with gated Obsidian API support 2026-10-11 21:48:32 +02:00
zsviczian 07dec1218c Fix LaTeX editor input in popout windows (#2970) (#2991)
* docs: prepare focused LaTeX popout input handoff for #2970

* Fix LaTeX editor input in popout windows
2026-10-11 20:40:40 +02:00
zsviczian d39bfa9c6d Merge current master and document test CLI security boundary 2026-10-11 16:59:49 +02:00
zsviczian 5e2bb7719f Fix relative image and nested Markdown-side embeds (#2979) 2026-10-11 16:20:16 +02:00
zsviczian f0dd5cb7ca fix: select grouped members before modifier-click navigation 2026-10-11 16:05:13 +02:00
zsviczian 8a9f33a33f Fix Markdown embed rendering across temporary detachment (#2953) 2026-10-11 15:11:35 +02:00
zsviczian 3551b706a8 fix: preserve restored text when editing after undo or redo 2026-10-11 14:29:51 +02:00
zsviczian f30b4c5d3d updated messages 2026-10-03 13:16:44 +02:00
zsviczian 593ad99bab Merge PR #2959 with mount lifecycle fixes and 2.29.0 release note 2026-10-03 13:10:05 +02:00
Michael Naumov 9cf33817b7 Save pasted and dropped images through app.saveAttachment
When the drawing is the active file and no onImageFilePathHook is set, an
imported image is saved the way Obsidian saves one pasted or dropped into a
markdown note, so attachment-management plugins apply their naming and
location rules to it. A generated paste name follows Obsidian's own
"Pasted image YYYYMMDDHHmmss" in that case. Every other caller keeps the
existing path.
2026-09-29 14:31:31 -06:00
zsviczian 128a9ef47b 2.28.1 2026-09-29 20:52:23 +02:00
zsviczian 96bd2212c2 2.28.0 2026-09-29 19:30:31 +02:00
askalf c3955cad5f Merge remote-tracking branch 'upstream/master' into fix/back-of-note-embeddable-canvas-node-race
# Conflicts:
#	src/view/managers/CanvasNodeFactory.ts
2026-09-28 19:42:42 +00:00
zsviczian 2d39586865 implemented toggleViewMode 2026-09-28 19:50:45 +02:00
zsviczian 038384ce2a linkclick hook, zoom to fit view 2026-09-28 12:12:22 +02:00
zsviczian 7f16448595 save fontTopPicks to file 2026-09-26 10:31:31 +02:00
askalf ac359575f6 fix back-of-the-note embeddable initializing as the full drawing
A subpath embeddable can mount before CanvasNodeFactory has finished its
asynchronous initialization on layout ready. The mount check treated an
uninitialized factory the same as an absent subpath and fell through to a
workspace leaf, which renders the whole file - for a hybrid drawing, the
entire drawing - and cannot be edited. Wait for the factory instead, with a
timeout so the leaf fallback still applies when it never initializes.

[#2931](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/2931)
2026-09-20 11:19:18 +00:00
zsviczian 718f671109 ExcaliBrain patch compatiblity 2026-09-20 12:27:17 +02:00
zsviczian 6294305dd8 script store optimization, legacy script store removal 2026-09-20 06:38:53 +02:00
zsviczian 74d1529dcb Merge remote-tracking branch 'origin/master' into reimagine-scriptstore 2026-09-19 16:21:26 +02:00
zsviczian 1bab2536d6 updated messages 2026-09-19 15:39:35 +02:00
zsviczian 287f6a1cc6 manage script groups, open script, fixed script discover to use Excalidraw/Scripts/Downloaded folder, added reinstall, and uninstall 2026-09-19 13:57:16 +02:00
zsviczian bf93306fbd restored directory-info.json and updated header 2026-09-19 11:28:42 +02:00
zsviczian abebbc22fd updated AI skill generation 2026-09-19 10:31:23 +02:00
zsviczian 9b11d9e79f initial scriptstore commit 2026-09-19 06:18:14 +02:00
zsviczian 7e6fd737d6 updated addArrow to fix null error 2026-09-18 21:25:42 +02:00
zsviczian 8ab48bba05 fixed markdown image editing when obsidian default is preview mode 2026-09-17 19:28:11 +02:00
zsviczian e81d90f0e9 edited messages 2026-09-17 17:57:21 +02:00
zsviczian f265b64ca0 Merge pull request #2936 from bluechallenge/fix/hybrid-note-pdf-image-embed-blank
Fix blank sections in Hybrid Note PDF export when Markdown side has an image embed
2026-09-17 17:51:14 +02:00
zsviczian a01e337336 Fix exponential nested dependency traversal 2026-09-17 17:44:05 +02:00
bluechallenge ab1131a950 Merge upstream/master to resolve conflict in Messages.ts
# Conflicts:
#	src/shared/Dialogs/Messages.ts
2026-09-17 06:41:41 +04:00
zsviczian b905ff7001 improved messages 2026-09-16 22:29:51 +02:00
zsviczian 63a466afbd 2.28.0-beta.1 - removed Miro style panning setting (it is not built in by default) 2026-09-16 22:20:21 +02:00
zsviczian ba77c36585 fixes #2940 2026-09-16 17:07:14 +02:00
zsviczian 4948e4e347 fix 2929 2026-09-16 09:42:14 +02:00
bluechallengeandClaude Sonnet 5 2580ab8495 Fix blank sections in Hybrid Note PDF export when Markdown side has an image embed
Obsidian's Export to PDF renders the document in its own window (often a
popout), but markdownPostProcessor's isPrinting check only ever looked at
mainDocument's body for the .print marker, so it silently stayed false for
these exports. That caused any section containing a real embed (e.g. a
plain image in a hybrid note's markdown side) to hit the "hide non-preview
excalidraw content" branch and render blank, since none of
isPreview/isMarkdownReadingMode/isPrinting were true.

- Detect isPrinting via the print owner document, not always mainDocument.
- Only route a section through tmpObsidianWYSIWYG's frontmatter/area-ref
  handling when it has no real embeds of its own; sections with embeds
  fall through to processReadingMode, same as the non-print path.
- processInternalEmbed/tmpObsidianWYSIWYG now resolve an internal-embed's
  actual link target via getFirstLinkpathDest instead of assuming it's
  always the containing Excalidraw file, so embedding a different drawing
  in a hybrid note's markdown side renders correctly too.

Fixes #2292

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-15 22:31:28 +04:00
zsviczian d491996112 fix: align settings path warnings 2026-09-15 19:48:12 +02:00