v1.5.0 — bundle hotfix (#2) + name template (F13)
Important release. v1.3.0 and v1.4.0 users — please upgrade.
🚨 Fixed
[#2] Empty panel since v1.3.0
The v1.3.0 modular refactor introduced a regression: in Eagle 4.x, relative require('./lib/xxx') calls in scripts loaded via <script src> throw, so window.ClipboardWatcher was never set up and the UI rendered as a blank panel with only "未运行" (HTML-residue text) visible.
Fix: new local bundler build/bundle.js concatenates all js/lib/*.js + js/plugin.js + js/ui.js in dependency order into a single js/bundle.js. At runtime, index.html loads only this one file — no require calls in the webview.
- Source code stays modular (developer experience preserved)
- Shipping artifact is a single file (works around the Eagle webview limitation)
npm run buildregenerates the bundle;npm run packbuilds before zipping- Pack output dropped from 30.7 KB → 25.3 KB (deduplicated)
✨ Added
Customizable item name template (F13)
You can now decide how saved items are named. Default template {source} {dims} {timestamp} preserves v1.4 behavior.
Available tokens:
| Token | Means |
|---|---|
{source} |
Screenshot or Clipboard |
{dims} |
1920x1080 (empty when unknown) |
{timestamp} |
2026-06-03 02:30:00 |
{date} |
2026-06-03 |
{time} |
02:30:00 |
{hostname} |
your machine name |
{count} |
today's save count (after this save) |
{lifetime} |
lifetime count (after this save) |
- Lives in Advanced settings with live preview + "Restore default" link
- Multi-file batch imports do not use the template — they keep using the original filename
- Empty template falls back to the default automatically
Upgrade
Just install .eagleplugin over your existing version. Your settings persist in localStorage and are not lost.
If you still see a blank panel after upgrading, please leave a comment in #2 with any [bundle]-prefixed errors from the Eagle log panel.
Full notes: docs/CHANGELOG.md