Commit graph

5 commits

Author SHA1 Message Date
Ali Irani
928caa7449 release 0.1.2: drop async onload + remove fetch-based blob preload
ObsidianReviewBot flags on PR #12468:
- onload was async with no await; dropped the modifier
- preloadImageBlob used fetch (forbidden in plugins; should use
  requestUrl). Removed the preload optimization entirely — the
  vault-read path on copy is fast enough on its own.
- catch (e) bindings tightened.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 18:25:39 -07:00
Ali Irani
e370f9a5da docs: add demo gif 2026-05-01 17:27:38 -07:00
Ali Irani
11758374b8 chore: release 0.1.1 with full plugin logic 2026-05-01 16:06:52 -07:00
Ali Irani
e6896099ad fix: restore full plugin logic in src/main.ts
The initial scaffold imported a stale src/main.ts that was missing
~30% of the working code: click-tracking with blob preloading
(_selectedImg, _cachedBlob), the keydown Cmd+C handler that copies a
clicked image instantly via cached fetch result, and the isVaultImage
helper. Source has been re-derived from the working main.js bundle
shipped in the vault.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 15:38:40 -07:00
Ali Irani
8808b4851f initial commit: scaffold plugin from obsidian-sample-plugin
Copy Image Hotkey 1.0.0 — Cmd+C copies the actual image when an image
embed is selected in source mode. Built off the official sample-plugin
template; source is in src/main.ts, builds main.js via esbuild.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 15:12:26 -07:00