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>
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>
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>