diff --git a/ScriptSupportPlan.md b/ScriptSupportPlan.md
index c26ac9e9..52095951 100644
--- a/ScriptSupportPlan.md
+++ b/ScriptSupportPlan.md
@@ -8,7 +8,7 @@ Scope summary:
- Keep [docs/AITrainingData](docs/AITrainingData) as the canonical output location.
- Keep [docs/AITrainingData/ExcalidrawAutomate full library for LLM training.md](docs/AITrainingData/ExcalidrawAutomate%20full%20library%20for%20LLM%20training.md) as a stable entrypoint, but curate it as a router to skill-first references.
- Use one unified generator behind `npm run doc`.
-- Keep [ea-scripts/script-store.json](ea-scripts/script-store.json) as the script-store metadata source of truth; generate the legacy [ea-scripts/index-new.md](ea-scripts/index-new.md) and [ea-scripts/directory-info.json](ea-scripts/directory-info.json) from it.
+- Keep [ea-scripts/script-store.json](ea-scripts/script-store.json) as the contributor-facing catalog; generate the legacy [ea-scripts/index-new.md](ea-scripts/index-new.md) catalog and targeted update metadata from it.
- Keep skill generation manually triggered by maintainer workflows (no automatic watcher/CI updates in this phase).
- Add strict naming rules for script preview images under [images](images).
@@ -23,10 +23,10 @@ Scope summary:
- It must warn AI tools that generated code quality may fail if linked skill/reference URLs are inaccessible (for example: URL access disabled in some chat tools).
3. Script library publishing guidance
-- [ea-scripts/script-store.json](ea-scripts/script-store.json) is the metadata source of truth.
+- [ea-scripts/script-store.json](ea-scripts/script-store.json) is the contributor-facing metadata source.
- Agents should be guided to open a proper PR for publishing scripts in this repository instead of trying to bypass the normal contribution workflow.
-- Each publishing PR adds or updates one catalog entry, then runs `npm run script-store:build` to regenerate the legacy index and timestamp metadata.
-- Current clients detect updates from GitHub file SHAs; [ea-scripts/directory-info.json](ea-scripts/directory-info.json) remains generated for older clients and as a fallback.
+- `npm run script-store:build` regenerates the legacy catalog and advances `directory-info.json` only for script/icon files that actually changed.
+- Historical `mtime` values must remain untouched; they are part of the plugin's backward-compatible update-detection contract.
4. Template repository direction
- A separate repository will be created first.
@@ -56,7 +56,7 @@ Target branch: `improved-scripting-skills`.
| Unify generator implementation behind `npm run doc` | Complete | Added shared generator core at [scripts/excalidraw-docs-generator-core.mjs](scripts/excalidraw-docs-generator-core.mjs); both [scripts/generate-script-library.mjs](scripts/generate-script-library.mjs) and [scripts/skill-builder.mjs](scripts/skill-builder.mjs) are thin wrappers over one code path |
| Ensure canonical pen type completeness in generated docs | Complete | Generated references now include canonical Obsidian pen stroke type definitions plus the full public `src/types` and `lib/types` declaration surface |
| Curate legacy training entrypoint warning and routing | Complete | Legacy training entrypoint now warns about inaccessible references, names the master repository, and routes agents to the curated skill/reference set with absolute GitHub URLs |
-| Add PR publishing workflow guidance for scripting agents | Complete | Generated skill guidance now directs script publishing through PRs, uses one `script-store.json` catalog entry, and generates the legacy index + timestamp metadata |
+| Add PR publishing workflow guidance for scripting agents | Complete | Generated skill guidance now directs script publishing through PRs, uses `script-store.json` as catalog metadata, and generates only targeted legacy mtime updates |
| Add strict image naming and validation | Complete | Generator now warns on non-conforming preview filenames and documents the `scripts-{slug}.{ext}` rule in generated publishing guidance |
| Optional template-repo sync from `npm run doc` | Complete | `npm run doc` now refreshes a co-located `ea-script-template` bootstrap under `.ai/excalidraw-automate/` when the sibling repo is present |
@@ -121,14 +121,14 @@ Objective:
Planned changes:
- Add concise maintainer-approved workflow guidance in skill docs:
- - add or update the script in [ea-scripts](ea-scripts)
- - add an optional preview image in [images](images)
- - add or update one entry in [ea-scripts/script-store.json](ea-scripts/script-store.json)
- - run `npm run script-store:build` to regenerate [ea-scripts/index-new.md](ea-scripts/index-new.md) and [ea-scripts/directory-info.json](ea-scripts/directory-info.json)
- - run `npm run script-store:check` before opening the PR
+ - add script to [ea-scripts](ea-scripts)
+ - add image to [images](images)
+ - add or update the entry in [ea-scripts/script-store.json](ea-scripts/script-store.json)
+ - run `npm run script-store:check` and `npm run script-store:build`
+ - allow the generator to advance only the changed script/icon `mtime` entry in [ea-scripts/directory-info.json](ea-scripts/directory-info.json)
- keep AI training material updates out of script publishing PRs
- open PR with focused diff and validation notes
-- Treat the legacy index and timestamp file as generated compatibility artifacts rather than contributor-authored metadata.
+- Treat `index-new.md` as a generated backward-compatibility catalog; never recalculate unrelated historical mtimes.
Acceptance:
- Publishing workflow appears in generated skill material.
@@ -136,7 +136,7 @@ Acceptance:
Status:
- Complete.
-- The generated skill file now includes a dedicated publishing workflow section with absolute repository links, PR-only guidance, one catalog entry per script, and generated legacy compatibility metadata.
+- The generated skill file now includes a dedicated publishing workflow section with absolute repository links, PR-only guidance, generated legacy catalog output and targeted `directory-info.json` updates.
### Checkpoint 5: Strict image naming convention and validator
Objective:
@@ -202,7 +202,7 @@ For each implementation checkpoint:
- Run `npm run doc` from repository root.
- Verify generated files changed only in intended outputs.
- For script/reference changes, inspect key generated artifacts manually.
-- Validate script-store changes with `npm run script-store:check`; regenerate the legacy compatibility files with `npm run script-store:build`.
+- Keep [ea-scripts/index-new.md](ea-scripts/index-new.md) untouched unless explicitly edited by maintainer.
## Risks and mitigations
@@ -229,5 +229,3 @@ Risk: template sync introduces hard dependency on external repo.
| 2026-08-29 | Implemented checkpoint 6 template bootstrap sync | `npm run doc` now refreshes a link-first bootstrap in the sibling `ea-script-template` workspace under `.ai/excalidraw-automate/` | `npm run doc` completed successfully and refreshed the sibling template bootstrap files |
| 2026-08-29 | Hardened checkpoint 6 for offline and advanced script authoring | Template sync now mirrors full generated references and script examples instead of only link stubs | `npm run doc` and `npm run sync-refs` now produce local skill + references + scripts snapshot in `.ai/excalidraw-automate/` |
| 2026-08-29 | Aligned template script extensions and build output | Template-only reference snapshots now use `.js` filenames with rewritten local links; the template build emits executable `.md` scripts with purpose metadata and editable configuration constants before the bundle | `npm run doc` preserves `.js` reference filenames; template `npm run build`, `npm run check`, and package validation pass on Node 22 |
-
-| 2026-09-18 | Reworked community script-store publishing metadata | Added `script-store.json` as the single contributor-facing catalog, a generator/check command for legacy compatibility artifacts, and SHA-based update detection guidance | `npm run script-store:check` validates the catalog; legacy `index-new.md` and `directory-info.json` remain supported |
diff --git a/docs/AITrainingData/excalidraw-automate/SKILL.md b/docs/AITrainingData/excalidraw-automate/SKILL.md
index 04036711..c1479e62 100644
--- a/docs/AITrainingData/excalidraw-automate/SKILL.md
+++ b/docs/AITrainingData/excalidraw-automate/SKILL.md
@@ -296,9 +296,9 @@ The AI training material is maintained independently from publishing PRs; do not
- Add or update the script under [ea-scripts](https://github.com/zsviczian/obsidian-excalidraw-plugin/tree/master/ea-scripts).
- Add or update the preview image under [images](https://github.com/zsviczian/obsidian-excalidraw-plugin/tree/master/images).
-- Add or update the script's single catalog entry in [ea-scripts/script-store.json](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/script-store.json).
-- Run `npm run script-store:build` to regenerate the backward-compatible [ea-scripts/index-new.md](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/index-new.md) and [ea-scripts/directory-info.json](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/directory-info.json). Do not hand-edit those generated compatibility files.
-- Run `npm run script-store:check` before opening the PR. The current plugin detects updates from GitHub file SHAs; `directory-info.json` is retained for older plugin versions and as a fallback.
+- Add or update the script's catalog entry in [ea-scripts/script-store.json](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/script-store.json).
+- Run `npm run script-store:check`, then `npm run script-store:build`. The build regenerates the backward-compatible `index-new.md` catalog and advances `directory-info.json` only for script/icon files that actually changed.
+- Do not hand-edit unrelated `mtime` values in [ea-scripts/directory-info.json](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/directory-info.json). Historical mtimes are part of the plugin's update-detection contract.
- Keep the PR focused on the script and its generated references.
### How to use the Script Examples
diff --git a/docs/ea-scripting.md b/docs/ea-scripting.md
new file mode 100644
index 00000000..20aa05f9
--- /dev/null
+++ b/docs/ea-scripting.md
@@ -0,0 +1,99 @@
+# Automate anything with Excalidraw
+
+
+
+Excalidraw Automate scripts are small programs that run inside the Obsidian Excalidraw plugin. They can automate repetitive drawing work, build custom tools and interfaces, work with files in your Obsidian vault, and combine several steps of a workflow into a single command.
+
+The useful question is no longer _“does a community script already exist for this?”_ but _“what would I like Excalidraw to do for me?”_
+
+## The easiest way to create your own script
+
+Use the **[ExcalidrawAutomate script workspace](https://github.com/zsviczian/ea-script-template)**. It is a GitHub template designed for developing one or many Excalidraw Automate scripts with modern tooling and AI coding agents.
+
+The repository already contains:
+
+- Excalidraw Automate API types and reference material for AI agents.
+- Agent instructions and practical API-usage examples.
+- Script scaffolding, linting, type checking, bundling, and preview support.
+- A clean source layout for keeping reusable helpers separate from individual scripts.
+- An update workflow so your script repository can receive improvements from the template without replacing your own scripts and guidance.
+
+### Quick start
+
+1. Open [zsviczian/ea-script-template](https://github.com/zsviczian/ea-script-template) and choose **Use this template → Create a new repository**.
+2. Clone your new repository and install its dependencies with Node 22.13 or newer.
+3. Create a script:
+
+ ```bash
+ npm install
+ npm run new-script -- --name "My Script"
+ ```
+
+4. Tell your AI coding agent what you want the script to accomplish. Describe the workflow, the user interaction, and what should happen on the Excalidraw canvas or in the Obsidian vault.
+5. Ask the agent to read the repository instructions and the bundled Excalidraw Automate references before implementing the script.
+6. Validate and build:
+
+ ```bash
+ npm run check
+ npm run build
+ ```
+
+7. Copy the generated `.md` script and its preview SVG from `build/` into the Script Engine folder configured in Excalidraw settings. Run the script from an Excalidraw drawing.
+
+The generated `.md` file contains executable JavaScript for the Excalidraw Script Engine; it is not an Obsidian plugin. If `.md` and `.js` versions with the same script name are both present, Excalidraw prefers the `.md` version.
+
+## Why AI agents work so well for scripting
+
+The workflow demonstrated in **[AI Scripting Superpowers](https://youtu.be/6BjhUyfS4iM)** is still the core idea:
+
+1. Give the AI accurate Excalidraw Automate API context.
+2. Describe a concrete problem and the behavior you want.
+3. Let the AI build a first version.
+4. Run it in Obsidian and report the exact error or behavior that needs improvement.
+5. Iterate until the workflow feels natural.
+
+The video builds a Layer Manager as an example: a purpose-built tool that did not already exist in the script library. The current script workspace takes this workflow further. Instead of manually feeding a large training document to an AI chat, the repository carries agent instructions, API references, types, examples, and validation tools alongside your source code.
+
+You do not need to start by knowing the Excalidraw Automate API. Start by knowing what you want to automate.
+
+## What can a script automate?
+
+Practically anything that Excalidraw Automate and Obsidian expose, for example:
+
+- Batch-format or rearrange selected elements.
+- Build specialized drawing, layout, connector, annotation, or image tools.
+- Create custom modals, controls, and persistent sidepanels.
+- Create, rename, link, embed, or update files in your vault.
+- Generate dashboards or drawings from vault data.
+- Add startup, drawing-load, or long-lived automation where appropriate.
+- Export drawings, images, or structured information.
+- Combine several repetitive actions into a single command tailored to your workflow.
+
+Browse the Community Script Store for examples and inspiration before starting from scratch.
+
+## A few authoring rules worth knowing
+
+The template's authoring guidance handles the details, but these principles matter:
+
+- Excalidraw scene elements are immutable; edit them through the Excalidraw Automate workbench and commit the result back to the view.
+- The Script Engine injects `ea` and `utils`. Runtime Obsidian APIs are available through `ea.obsidian`.
+- Scripts with UI or long-lived behavior need deliberate cleanup and lifecycle handling.
+- Test cancellation, empty selections, undo/save behavior, view changes, and any mobile-specific UI on a physical mobile device.
+- Run `npm run check` and `npm run build` before distributing a script.
+
+## Scripts are code
+
+A script can change your drawing and can also work with files in your vault. Treat scripts like any other code you install: use sources you trust, review unfamiliar scripts, keep backups, and test destructive workflows on disposable data first.
+
+## Share a script with the community
+
+Community scripts are maintained in the central [Obsidian Excalidraw repository](https://github.com/zsviczian/obsidian-excalidraw-plugin/tree/master/ea-scripts). If you build something broadly useful, open a focused pull request with the script, its icon/preview, and its Script Store catalog entry.
+
+For repository-specific publishing steps, see [ea-scripts/README.md](../ea-scripts/README.md).
+
+## More resources
+
+- [ExcalidrawAutomate script workspace](https://github.com/zsviczian/ea-script-template)
+- [AI Scripting Superpowers](https://youtu.be/6BjhUyfS4iM)
+- [Excalidraw Script Engine documentation](https://zsviczian.github.io/obsidian-excalidraw-plugin/ExcalidrawScriptsEngine.html)
+- [Excalidraw Automate API declaration](API/ExcalidrawAutomate.d.ts)
diff --git a/ea-scripts/README.md b/ea-scripts/README.md
index b152f7cd..cee2fd1f 100644
--- a/ea-scripts/README.md
+++ b/ea-scripts/README.md
@@ -11,18 +11,6 @@ Click to watch the intro video:
See the [Excalidraw Script Engine](https://zsviczian.github.io/obsidian-excalidraw-plugin/ExcalidrawScriptsEngine.html) documentation for more details.
-## Publishing a community script
-
-The community Script Store is driven by `script-store.json`. `index-new.md` and `directory-info.json` are backward-compatibility artifacts and should not be edited by hand.
-
-1. Add the script to `ea-scripts/`. The filename is the installed script name.
-2. Add a matching SVG icon when practical (`My Script.md` -> `My Script.svg`) and a preview image under `images/` when useful.
-3. Add one entry to `ea-scripts/script-store.json` with the author, description, categories, install/source URLs, and icon URL. Add `featuredRank` only for an **Editors Picks** entry.
-4. Run `npm run script-store:build` to validate the catalog and regenerate the legacy Markdown store and timestamp fallback.
-5. Run `npm run script-store:check`, `npm run code`, and the normal build before opening a pull request.
-
-The current plugin compares installed scripts with GitHub blob SHAs, so contributors no longer need to calculate or hand-edit modified timestamps. `directory-info.json` remains generated for older plugin versions and as a fallback.
-
## How to install scripts into your Obsidian Vault
To install one of the built-in scripts:
- Open up an excalidraw drawing in Obsidian
@@ -95,4 +83,18 @@ Open the script you are interested in and save it to your Obsidian Vault includi
|[Transfer TextElements to Excalidraw markdown metadata](Transfer%20TextElements%20to%20Excalidraw%20markdown%20metadata.md)|The script will delete the selected text elements from the canvas and will copy the text from these text elements into the Excalidraw markdown file as metadata. This means, that the text will no longer be visible in the drawing, however you will be able to search for the text in Obsidian and find the drawing containing this image.||[@zsviczian](https://github.com/zsviczian)|
|[Zoom to Fit Selected Elements](Zoom%20to%20Fit%20Selected%20Elements.md)|Similar to Excalidraw standard SHIFT+2 feature: Zoom to fit selected elements, but with the ability to zoom to 1000%. Inspiration: [#272](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/272)||[@zsviczian](https://github.com/zsviczian)|
|[Hardware Eraser Suppoer](Hardware%20Eraser%20Support.md)|Allows the use of pen inversion/hardware erasers on supported pens.|[@threethan](https://github.com/threethan)|
-|[Hardware Eraser Suppoer](Auto%20Draw%20for%20Pen.md)|Automatically switched from the Select tool to the Draw tool when a pen is hovered, and then back.|[@threethan](https://github.com/threethan)|
\ No newline at end of file
+|[Hardware Eraser Suppoer](Auto%20Draw%20for%20Pen.md)|Automatically switched from the Select tool to the Draw tool when a pen is hovered, and then back.|[@threethan](https://github.com/threethan)|
+## Publishing a community script
+
+The current Script Store reads metadata from `ea-scripts/script-store.json`. Add or update one catalog entry when publishing a script, plus the script file and its matching SVG icon/preview when applicable.
+
+Run:
+
+```bash
+npm run script-store:check
+npm run script-store:build
+```
+
+`script-store:build` regenerates the legacy `index-new.md` catalog for older plugin versions. It **does not recalculate historical timestamps** in `directory-info.json`. Only script or icon files that are actually modified/new in the current Git working tree receive a new `mtime`, and repeated builds preserve an already-updated value. When the repository was exported without `.git`, all existing mtimes are left untouched.
+
+Do not hand-edit unrelated `mtime` values. The plugin still uses these timestamps for backward-compatible script update detection.
diff --git a/ea-scripts/directory-info.json b/ea-scripts/directory-info.json
index d0722a8c..c3164032 100644
--- a/ea-scripts/directory-info.json
+++ b/ea-scripts/directory-info.json
@@ -1,15 +1,23 @@
[
+ {
+ "fname": "Mindmap connector.md",
+ "mtime": 1658686599427
+ },
+ {
+ "fname": "Mindmap connector.svg",
+ "mtime": 1658686599427
+ },
{
"fname": "Add Connector Point.md",
- "mtime": 1735420787000
+ "mtime": 1735420748564
},
{
"fname": "Add Connector Point.svg",
- "mtime": 1773336502000
+ "mtime": 1645944722000
},
{
"fname": "Add Link to Existing File and Open.md",
- "mtime": 1647807886000
+ "mtime": 1647807918345
},
{
"fname": "Add Link to Existing File and Open.svg",
@@ -17,7 +25,7 @@
},
{
"fname": "Add Link to New Page and Open.md",
- "mtime": 1654168998000
+ "mtime": 1654168862138
},
{
"fname": "Add Link to New Page and Open.svg",
@@ -25,28 +33,12 @@
},
{
"fname": "Add Next Step in Process.md",
- "mtime": 1688003685000
+ "mtime": 1688304760357
},
{
"fname": "Add Next Step in Process.svg",
"mtime": 1645960639000
},
- {
- "fname": "Auto Layout.md",
- "mtime": 1670300146000
- },
- {
- "fname": "Auto Layout.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Boolean Operations.md",
- "mtime": 1748278640000
- },
- {
- "fname": "Boolean Operations.svg",
- "mtime": 1773336502000
- },
{
"fname": "Box Each Selected Groups.md",
"mtime": 1645305706000
@@ -63,53 +55,13 @@
"fname": "Box Selected Elements.svg",
"mtime": 1645960639000
},
- {
- "fname": "Capture Note.md",
- "mtime": 1783058643000
- },
- {
- "fname": "Capture Note.svg",
- "mtime": 1780256523000
- },
{
"fname": "Change shape of selected elements.md",
- "mtime": 1652701147000
+ "mtime": 1652701169236
},
{
"fname": "Change shape of selected elements.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Color Scheme Manager.md",
- "mtime": 1781294259000
- },
- {
- "fname": "Color Scheme Manager.svg",
- "mtime": 1780595322000
- },
- {
- "fname": "Comic Strip Director.md",
- "mtime": 1785604853000
- },
- {
- "fname": "Comic Strip Director.svg",
- "mtime": 1783367127000
- },
- {
- "fname": "Comicbook Callout Editor.md",
- "mtime": 1783363786000
- },
- {
- "fname": "Comicbook Callout Editor.svg",
- "mtime": 1781961326000
- },
- {
- "fname": "Concatenate lines.md",
- "mtime": 1736073525000
- },
- {
- "fname": "Concatenate lines.svg",
- "mtime": 1773336502000
+ "mtime": 1645960775000
},
{
"fname": "Connect elements.md",
@@ -125,11 +77,11 @@
},
{
"fname": "Convert freedraw to line.svg",
- "mtime": 1773336502000
+ "mtime": 1645960639000
},
{
"fname": "Convert selected text elements to sticky notes.md",
- "mtime": 1670169630000
+ "mtime": 1670169501383
},
{
"fname": "Convert selected text elements to sticky notes.svg",
@@ -149,7 +101,7 @@
},
{
"fname": "Copy Selected Element Styles to Global.svg",
- "mtime": 1773336502000
+ "mtime": 1645960639000
},
{
"fname": "Create new markdown file and embed into active drawing.md",
@@ -159,90 +111,22 @@
"fname": "Create new markdown file and embed into active drawing.svg",
"mtime": 1645960639000
},
- {
- "fname": "Crop Vintage Mask.md",
- "mtime": 1706565327000
- },
- {
- "fname": "Crop Vintage Mask.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Custom Zoom.md",
- "mtime": 1710424719000
- },
- {
- "fname": "Custom Zoom.svg",
- "mtime": 1773336502000
- },
{
"fname": "Darken background color.md",
- "mtime": 1663058804000
+ "mtime": 1663059051059
},
{
"fname": "Darken background color.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Deconstruct selected elements into new drawing.md",
- "mtime": 1788542766000
- },
- {
- "fname": "Deconstruct selected elements into new drawing.svg",
- "mtime": 1668552170000
- },
- {
- "fname": "directory-info.json",
- "mtime": 1789791494000
+ "mtime": 1645960639000
},
{
"fname": "Elbow connectors.md",
- "mtime": 1670732358000
+ "mtime": 1671126911490
},
{
"fname": "Elbow connectors.svg",
"mtime": 1645960639000
},
- {
- "fname": "Ellipse Selected Elements.md",
- "mtime": 1690132035000
- },
- {
- "fname": "Ellipse Selected Elements.svg",
- "mtime": 1689252536000
- },
- {
- "fname": "ExcaliAI.md",
- "mtime": 1779380505000
- },
- {
- "fname": "ExcaliAI.svg",
- "mtime": 1701011215000
- },
- {
- "fname": "Excalidraw Collaboration Frame.md",
- "mtime": 1767538362000
- },
- {
- "fname": "Excalidraw Collaboration Frame.svg",
- "mtime": 1687881371000
- },
- {
- "fname": "Excalidraw Writing Machine.md",
- "mtime": 1769961173000
- },
- {
- "fname": "Excalidraw Writing Machine.svg",
- "mtime": 1724351760000
- },
- {
- "fname": "ExcaliMath.md",
- "mtime": 1783592713000
- },
- {
- "fname": "ExcaliMath.svg",
- "mtime": 1783592713000
- },
{
"fname": "Expand rectangles horizontally keep text centered.md",
"mtime": 1646563692000
@@ -269,7 +153,7 @@
},
{
"fname": "Expand rectangles vertically.md",
- "mtime": 1658652882000
+ "mtime": 1658686599427
},
{
"fname": "Expand rectangles vertically.svg",
@@ -315,121 +199,13 @@
"fname": "Fixed vertical distance.svg",
"mtime": 1645967510000
},
- {
- "fname": "Folder Note Core - Make Current Drawing a Folder.md",
- "mtime": 1678973680000
- },
- {
- "fname": "Folder Note Core - Make Current Drawing a Folder.svg",
- "mtime": 1678973680000
- },
- {
- "fname": "Full-Year Calendar Generator.md",
- "mtime": 1735460504000
- },
- {
- "fname": "Full-Year Calendar Generator.svg",
- "mtime": 1735460504000
- },
- {
- "fname": "Golden Ratio.md",
- "mtime": 1759608191000
- },
- {
- "fname": "Golden Ratio.svg",
- "mtime": 1702802214000
- },
- {
- "fname": "Grid Selected Images.md",
- "mtime": 1700836911000
- },
- {
- "fname": "Grid Selected Images.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Icon Library.md",
- "mtime": 1783853158000
- },
- {
- "fname": "Icon Library.svg",
- "mtime": 1783431573000
- },
- {
- "fname": "Image Occlusion.md",
- "mtime": 1779398015000
- },
- {
- "fname": "Image Occlusion.svg",
- "mtime": 1733541004000
- },
- {
- "fname": "index-new.md",
- "mtime": 1789791494000
- },
- {
- "fname": "Invert colors.md",
- "mtime": 1761230666000
- },
- {
- "fname": "Invert colors.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "LayerManager.md",
- "mtime": 1788863493000
- },
- {
- "fname": "LayerManager.svg",
- "mtime": 1788863493000
- },
{
"fname": "Lighten background color.md",
- "mtime": 1663058841000
+ "mtime": 1663059051059
},
{
"fname": "Lighten background color.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Linear Calendar Generator.md",
- "mtime": 1766386124000
- },
- {
- "fname": "Linear Calendar Generator.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Mindmap Builder.js",
- "mtime": 1778994100000
- },
- {
- "fname": "Mindmap Builder.js.md",
- "mtime": 1783873469000
- },
- {
- "fname": "Mindmap Builder.md",
- "mtime": 1785050294000
- },
- {
- "fname": "Mindmap Builder.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Mindmap connector.md",
- "mtime": 1658548715000
- },
- {
- "fname": "Mindmap connector.svg",
- "mtime": 1657957732000
- },
- {
- "fname": "Mindmap format.md",
- "mtime": 1684380803000
- },
- {
- "fname": "Mindmap format.svg",
- "mtime": 1673430604000
+ "mtime": 1645959546000
},
{
"fname": "Modify background color opacity.md",
@@ -441,103 +217,39 @@
},
{
"fname": "Normalize Selected Arrows.md",
- "mtime": 1670300146000
+ "mtime": 1670403743278
},
{
"fname": "Normalize Selected Arrows.svg",
"mtime": 1645960639000
},
- {
- "fname": "Organic Line Legacy.md",
- "mtime": 1690607495000
- },
- {
- "fname": "Organic Line Legacy.svg",
- "mtime": 1773336502000
- },
{
"fname": "Organic Line.md",
- "mtime": 1673003467000
+ "mtime": 1672920172531
},
{
"fname": "Organic Line.svg",
"mtime": 1645964261000
},
{
- "fname": "Palette loader.md",
- "mtime": 1759608191000
+ "fname": "Organic Line Legacy.md",
+ "mtime": 1690607372668
},
{
- "fname": "Palette loader.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Palm Guard.md",
- "mtime": 1773670392000
- },
- {
- "fname": "Palm Guard.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "PDF Page Text to Clipboard.md",
- "mtime": 1759608191000
- },
- {
- "fname": "PDF Page Text to Clipboard.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Printable Layout Wizard.md",
- "mtime": 1755349718000
- },
- {
- "fname": "Printable Layout Wizard.svg",
- "mtime": 1773336502000
+ "fname": "Organic Line Legacy.svg",
+ "mtime": 1690607372668
},
{
"fname": "README.md",
- "mtime": 1789791494000
- },
- {
- "fname": "Relative Font Size Cycle.md",
- "mtime": 1701973471000
- },
- {
- "fname": "Relative Font Size Cycle.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Rename Image.md",
- "mtime": 1663770322000
- },
- {
- "fname": "Rename Image.svg",
- "mtime": 1773336502000
+ "mtime": 1645175700000
},
{
"fname": "Repeat Elements.md",
- "mtime": 1663059026000
+ "mtime": 1663059051059
},
{
"fname": "Repeat Elements.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Repeat Texts.md",
- "mtime": 1699449115000
- },
- {
- "fname": "Repeat Texts.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Reset LaTeX Size.md",
- "mtime": 1725296529000
- },
- {
- "fname": "Reset LaTeX Size.svg",
- "mtime": 1725298245000
+ "mtime": 1645960639000
},
{
"fname": "Reverse arrows.md",
@@ -545,19 +257,15 @@
},
{
"fname": "Reverse arrows.svg",
- "mtime": 1773336502000
+ "mtime": 1645960639000
},
{
"fname": "Scribble Helper.md",
- "mtime": 1767300761000
+ "mtime": 1767536720161
},
{
"fname": "Scribble Helper.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "script-store.json",
- "mtime": 1789791494000
+ "mtime": 1645944722000
},
{
"fname": "Select Elements of Type.md",
@@ -567,29 +275,13 @@
"fname": "Select Elements of Type.svg",
"mtime": 1645960639000
},
- {
- "fname": "Select Similar Elements.md",
- "mtime": 1736077751000
- },
- {
- "fname": "Select Similar Elements.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Set background color of unclosed line object by adding a shadow clone.md",
- "mtime": 1681674596000
- },
- {
- "fname": "Set background color of unclosed line object by adding a shadow clone.svg",
- "mtime": 1773336502000
- },
{
"fname": "Set Dimensions.md",
"mtime": 1645305706000
},
{
"fname": "Set Dimensions.svg",
- "mtime": 1773336502000
+ "mtime": 1645944722000
},
{
"fname": "Set Font Family.md",
@@ -601,11 +293,11 @@
},
{
"fname": "Set Grid.md",
- "mtime": 1724500789000
+ "mtime": 1693725826368
},
{
"fname": "Set Grid.svg",
- "mtime": 1773336502000
+ "mtime": 1645960639000
},
{
"fname": "Set Link Alias.md",
@@ -613,15 +305,15 @@
},
{
"fname": "Set Link Alias.svg",
- "mtime": 1773336502000
+ "mtime": 1645960639000
},
{
"fname": "Set Stroke Width of Selected Elements.md",
- "mtime": 1735420787000
+ "mtime": 1748189277103
},
{
"fname": "Set Stroke Width of Selected Elements.svg",
- "mtime": 1773336502000
+ "mtime": 1645960639000
},
{
"fname": "Set Text Alignment.md",
@@ -629,102 +321,386 @@
},
{
"fname": "Set Text Alignment.svg",
- "mtime": 1773336502000
+ "mtime": 1645960639000
},
{
- "fname": "shade master.js",
- "mtime": 1779643064000
+ "fname": "Set background color of unclosed line object by adding a shadow clone.md",
+ "mtime": 1681665030892
},
{
- "fname": "Shade Master.md",
- "mtime": 1783421162000
- },
- {
- "fname": "Shade Master.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Slideshow.md",
- "mtime": 1789502538000
- },
- {
- "fname": "Slideshow.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Split Ellipse.md",
- "mtime": 1747468877000
- },
- {
- "fname": "Split Ellipse.svg",
- "mtime": 1773336502000
+ "fname": "Set background color of unclosed line object by adding a shadow clone.svg",
+ "mtime": 1645960639000
},
{
"fname": "Split text by lines.md",
- "mtime": 1773077037000
+ "mtime": 1773076990493
},
{
"fname": "Split text by lines.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Text Aura.md",
- "mtime": 1693731804000
- },
- {
- "fname": "Text Aura.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Text to Path.md",
- "mtime": 1775681025000
- },
- {
- "fname": "Text to Path.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Text to Sticky Notes.md",
- "mtime": 1678537751000
- },
- {
- "fname": "Text to Sticky Notes.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "To Line.md",
- "mtime": 1748193480000
- },
- {
- "fname": "Toggle Grid.md",
- "mtime": 1692125433000
- },
- {
- "fname": "Toggle Grid.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "Uniform size.md",
- "mtime": 1670180026000
- },
- {
- "fname": "Uniform size.svg",
- "mtime": 1773336502000
- },
- {
- "fname": "VoronoiDiagramGenerator.md",
- "mtime": 1785735098000
- },
- {
- "fname": "VoronoiDiagramGenerator.svg",
- "mtime": 1784354404000
+ "mtime": 1645944722000
},
{
"fname": "Zoom to Fit Selected Elements.md",
- "mtime": 1657263738000
+ "mtime": 1640770602000
},
{
"fname": "Zoom to Fit Selected Elements.svg",
- "mtime": 1773336502000
+ "mtime": 1645960639000
+ },
+ {
+ "fname": "directory-info.json",
+ "mtime": 1646583437000
+ },
+ {
+ "fname": "index-new.md",
+ "mtime": 1645986149000
+ },
+ {
+ "fname": "index.md",
+ "mtime": 1645175700000
+ },
+ {
+ "fname": "Grid Selected Images.md",
+ "mtime": 1701630797839
+ },
+ {
+ "fname": "Grid Selected Images.svg",
+ "mtime": 1649614401982
+ },
+ {
+ "fname": "Palette loader.md",
+ "mtime": 1686511890942
+ },
+ {
+ "fname": "Palette loader.svg",
+ "mtime": 1649614401982
+ },
+ {
+ "fname": "Rename Image.md",
+ "mtime": 1663678478785
+ },
+ {
+ "fname": "Rename Image.svg",
+ "mtime": 1663678478785
+ },
+ {
+ "fname": "Text to Path.md",
+ "mtime": 1775680971589
+ },
+ {
+ "fname": "Text to Path.svg",
+ "mtime": 1748193397572
+ },
+ {
+ "fname": "Deconstruct selected elements into new drawing.md",
+ "mtime": 1788542446871
+ },
+ {
+ "fname": "Deconstruct selected elements into new drawing.svg",
+ "mtime": 1668541145255
+ },
+ {
+ "fname": "Slideshow.md",
+ "mtime": 1789502464420
+ },
+ {
+ "fname": "Slideshow.svg",
+ "mtime": 1670017348333
+ },
+ {
+ "fname": "Auto Layout.md",
+ "mtime": 1670403743278
+ },
+ {
+ "fname": "Auto Layout.svg",
+ "mtime": 1670175947081
+ },
+ {
+ "fname": "Uniform size.md",
+ "mtime": 1670175947081
+ },
+ {
+ "fname": "Uniform size.svg",
+ "mtime": 1670175947081
+ },
+ {
+ "fname": "Mindmap format.md",
+ "mtime": 1684484694228
+ },
+ {
+ "fname": "Mindmap format.svg",
+ "mtime": 1674944958059
+ },
+ {
+ "fname": "Text to Sticky Notes.md",
+ "mtime": 1678537561724
+ },
+ {
+ "fname": "Text to Sticky Notes.svg",
+ "mtime": 1678537561724
+ },
+ {
+ "fname": "Folder Note Core - Make Current Drawing a Folder.md",
+ "mtime": 1678973697470
+ },
+ {
+ "fname": "Folder Note Core - Make Current Drawing a Folder.svg",
+ "mtime": 1678973697470
+ },
+ {
+ "fname": "Invert colors.md",
+ "mtime": 1761230648413
+ },
+ {
+ "fname": "Invert colors.svg",
+ "mtime": 1678973697470
+ },
+ {
+ "fname": "PDF Page Text to Clipboard.md",
+ "mtime": 1683984041712
+ },
+ {
+ "fname": "PDF Page Text to Clipboard.svg",
+ "mtime": 1680418321236
+ },
+ {
+ "fname": "Excalidraw Collaboration Frame.md",
+ "mtime": 1767536720161
+ },
+ {
+ "fname": "Excalidraw Collaboration Frame.svg",
+ "mtime": 1687881495985
+ },
+ {
+ "fname": "Ellipse Selected Elements.md",
+ "mtime": 1690131476331
+ },
+ {
+ "fname": "Ellipse Selected Elements.svg",
+ "mtime": 1690131476331
+ },
+ {
+ "fname": "Select Similar Elements.md",
+ "mtime": 1736077716908
+ },
+ {
+ "fname": "Select Similar Elements.svg",
+ "mtime": 1691270949338
+ },
+ {
+ "fname": "Toggle Grid.md",
+ "mtime": 1692125382945
+ },
+ {
+ "fname": "Toggle Grid.svg",
+ "mtime": 1692124753386
+ },
+ {
+ "fname": "Split Ellipse.md",
+ "mtime": 1747585400113
+ },
+ {
+ "fname": "Split Ellipse.svg",
+ "mtime": 1693134104356
+ },
+ {
+ "fname": "Text Aura.md",
+ "mtime": 1693731979540
+ },
+ {
+ "fname": "Text Aura.svg",
+ "mtime": 1693731979540
+ },
+ {
+ "fname": "Boolean Operations.md",
+ "mtime": 1748278607255
+ },
+ {
+ "fname": "Boolean Operations.svg",
+ "mtime": 1695746839537
+ },
+ {
+ "fname": "Concatenate lines.md",
+ "mtime": 1736073478644
+ },
+ {
+ "fname": "Concatenate lines.svg",
+ "mtime": 1696175301525
+ },
+ {
+ "fname": "GPT-Draw-a-UI.md",
+ "mtime": 1703324727900
+ },
+ {
+ "fname": "GPT-Draw-a-UI.svg",
+ "mtime": 1700511998048
+ },
+ {
+ "fname": "ExcaliAI.md",
+ "mtime": 1779295681335
+ },
+ {
+ "fname": "ExcaliAI.svg",
+ "mtime": 1701011028767
+ },
+ {
+ "fname": "Repeat Texts.md",
+ "mtime": 1701969627758
+ },
+ {
+ "fname": "Repeat Texts.svg",
+ "mtime": 1701969627758
+ },
+ {
+ "fname": "Relative Font Size Cycle.md",
+ "mtime": 1701969627758
+ },
+ {
+ "fname": "Relative Font Size Cycle.svg",
+ "mtime": 1701969627758
+ },
+ {
+ "fname": "Golden Ratio.md",
+ "mtime": 1725174200469
+ },
+ {
+ "fname": "Golden Ratio.svg",
+ "mtime": 1702812404286
+ },
+ {
+ "fname": "Crop Vintage Mask.md",
+ "mtime": 1706565166174
+ },
+ {
+ "fname": "Crop Vintage Mask.svg",
+ "mtime": 1705836797730
+ },
+ {
+ "fname": "Custom Zoom.md",
+ "mtime": 1710424027192
+ },
+ {
+ "fname": "Custom Zoom.svg",
+ "mtime": 1710424027192
+ },
+ {
+ "fname": "Excalidraw Writing Machine.md",
+ "mtime": 1769960863134
+ },
+ {
+ "fname": "Excalidraw Writing Machine.svg",
+ "mtime": 1724356709706
+ },
+ {
+ "fname": "Reset LaTeX Size.md",
+ "mtime": 1725296010813
+ },
+ {
+ "fname": "Reset LaTeX Size.svg",
+ "mtime": 1725296010813
+ },
+ {
+ "fname": "Shade Master.md",
+ "mtime": 1783421040970
+ },
+ {
+ "fname": "Shade Master.svg",
+ "mtime": 1735252821829
+ },
+ {
+ "fname": "Image Occlusion.md",
+ "mtime": 1779555635845
+ },
+ {
+ "fname": "Image Occlusion.svg",
+ "mtime": 1735465948353
+ },
+ {
+ "fname": "Full-Year Calendar Generator.md",
+ "mtime": 1735465948353
+ },
+ {
+ "fname": "Full-Year Calendar Generator.svg",
+ "mtime": 1735465948353
+ },
+ {
+ "fname": "Printable Layout Wizard.md",
+ "mtime": 1755349206019
+ },
+ {
+ "fname": "Printable Layout Wizard.svg",
+ "mtime": 1753293096307
+ },
+ {
+ "fname": "Palm Guard.md",
+ "mtime": 1773670411373
+ },
+ {
+ "fname": "Palm Guard.svg",
+ "mtime": 1754718656757
+ },
+ {
+ "fname": "Mindmap Builder.md",
+ "mtime": 1785045917003
+ },
+ {
+ "fname": "Mindmap Builder.svg",
+ "mtime": 1766352440627
+ },
+ {
+ "fname": "Linear Calendar Generator.md",
+ "mtime": 1766386098306
+ },
+ {
+ "fname": "Linear Calendar Generator.svg",
+ "mtime": 1766386098306
+ },
+ {
+ "fname": "Capture Note.md",
+ "mtime": 1783058611857
+ },
+ {
+ "fname": "Capture Note.svg",
+ "mtime": 1780256122182
+ },
+ {
+ "fname": "Color Scheme Manager.md",
+ "mtime": 1781294249453
+ },
+ {
+ "fname": "Color Scheme Manager.svg",
+ "mtime": 1780595297314
+ },
+ {
+ "fname": "Comicbook Callout Editor.md",
+ "mtime": 1783363763625
+ },
+ {
+ "fname": "Comicbook Callout Editor.svg",
+ "mtime": 1781961241320
+ },
+ {
+ "fname": "Comic Strip Director.md",
+ "mtime": 1785613946789
+ },
+ {
+ "fname": "Comic Strip Director.svg",
+ "mtime": 1783367471938
+ },
+ {
+ "fname": "Icon Library.md",
+ "mtime": 1783853129278
+ },
+ {
+ "fname": "Icon Library.svg",
+ "mtime": 1783432036549
+ },
+ {
+ "fname": "VoronoiDiagramGenerator.md",
+ "mtime": 1785733307861
+ },
+ {
+ "fname": "VoronoiDiagramGenerator.svg",
+ "mtime": 1785564296587
}
-]
+]
\ No newline at end of file
diff --git a/ea-scripts/index-new.md b/ea-scripts/index-new.md
index 06eec2bb..7622fc6c 100644
--- a/ea-scripts/index-new.md
+++ b/ea-scripts/index-new.md
@@ -1,756 +1,750 @@
-
-

-
-
-**It looks like you want to get more out of Excalidraw!**
-
-Scripts are a true superpower in Excalidraw. If you are ready to eliminate tool friction and build heavy-duty workflows, join [Excalidraw Mastery](https://community.sketch-your-mind.com/em). Master Excalidraw and Visual PKM alongside a supportive community of fellow visual thinkers in the [Sketch Your Mind Community](https://community.sketch-your-mind.com)!
-
----
-
-If you are enjoying the Excalidraw plugin then please support my work and enthusiasm by buying me a coffee on [https://ko-fi/zsolt](https://ko-fi.com/zsolt). [
](https://ko-fi.com/zsolt)
-
----
-
-Jump ahead to the [[#List of available scripts]]
-
-# Introducing Excalidraw Automate Script Engine
-
-
-Script Engine scripts are installed in the `Downloaded` subfolder of the `Excalidraw Automate script folder` specified in plugin settings.
-
-In the `Command Palette` installed scripts are prefixed with `Downloaded/`, thus you can always know if you are executing a local script of your own, or one that you have downloaded from GitHub.
-
-## Create Your Own Scripts with AI Superpowers
-
-You don't need to know how to code to build custom scripts! In this video, I show how to create powerful, custom Excalidraw scripts from scratch using the power of AI.
-
-Follow along as I generate a complete Layer Manager script for Excalidraw in Obsidian, allowing you to hide, show, lock, and manage elements on different layers. I'll walk you through the entire process, from using a custom training library for Excalidraw Automate to prompting Google's Gemini AI Studio to write the code for us. Discover how to unlock a true superpower for your Obsidian and Excalidraw workflow by generating any script you can imagine.
-
-
-

-
-
-## Attention developers and hobby hackers
-
-If you want to modify a downloaded script, move it to the `Excalidraw Automate script folder` or another subfolder first. Scripts in `Downloaded` are managed by the community library and can be overwritten when you install an update.
-
-I would love to include your contribution in the script library. If you have a script of your own that you would like to share with the community, please open a [PR](https://github.com/zsviczian/obsidian-excalidraw-plugin/pulls) on GitHub. Publishing is intentionally simple:
-- Add the [script file](https://github.com/zsviczian/obsidian-excalidraw-plugin/tree/master/ea-scripts) with a self-explanatory name. The filename becomes the script name in the Command Palette.
-- Add or update one entry in `ea-scripts/script-store.json` with the description, author, categories, and links.
-- Add a matching script icon and/or a preview image when useful.
-- Run `npm run script-store:build`. This regenerates this legacy index and `directory-info.json` for older plugin versions.
-
-The current community library detects updates by comparing the downloaded script with the GitHub version; `directory-info.json` remains only as a backward-compatible fallback.
----
-
-
-# List of available scripts
-
-## Editors Picks
-These are the scripts I use most often. I tried to order them by importance, but usefulness is situational—some days Crop Vintage Mask is as helpful as Deconstruct Selected Elements. I do deconstruct drawings daily; the entries lower in the Editors’ Picks list are still valuable, just needed less frequently.
-
-| | |
-|----|-----|
-||[[#Deconstruct selected elements into new drawing]]|
-||[[#Slideshow]]|
-||[[#Shade Master]]|
-||[[#Palette Loader]]|
-||[[#Palm Guard]]|
-||[[#Rename Image]]|
-||[[#Select Elements of Type]]|
-||[[#Select Similar Elements]]|
-||[[#Boolean Operations]]|
-||[[#Split Ellipse]]|
-||[[#Text to Path]]|
-||[[#Set Dimensions]]|
-||[[#Set Stroke Width of Selected Elements]]|
-||[[#Scribble Helper]]|
-||[[#Split text by lines]]|
-||[[#Text Aura]]|
-||[[#Golden Ratio]]|
-||[[#Printable Layout Wizard]]|
-||[[#Concatenate lines]]|
-||[[#Repeat Elements]]|
-||[[#Set background color of unclosed line object by adding a shadow clone]]|
-||[[#Excalidraw Writing Machine]]|
-||[[#Convert freedraw to line]]|
-||[[#Crop Vintage Mask]]|
-||[[#Mindmap Builder]]|
-||[[#Capture Note]]|
-||[[#Comicbook Callout Editor]]|
-||[[#Comic Strip Director]]|
-||[[#Icon Library]]|
-
-## Layout and Organization
-**Keywords**: Design, Placement, Arrangement, Structure, Formatting, Alignment
-
-| | |
-|----|-----|
-||[[#Auto Layout]]|
-||[[#Box Each Selected Groups]]|
-||[[#Box Selected Elements]]|
-||[[#Ellipse Selected Elements]]|
-||[[#Expand rectangles horizontally]]|
-||[[#Expand rectangles horizontally keep text centered]]|
-||[[#Expand rectangles vertically]]|
-||[[#Expand rectangles vertically keep text centered]]|
-||[[#Fixed horizontal distance between centers]]|
-||[[#Fixed inner distance]]|
-||[[#Fixed spacing]]|
-||[[#Fixed vertical distance]]|
-||[[#Fixed vertical distance between centers]]|
-||[[#Golden Ratio]]|
-||[[#Grid selected images]]|
-||[[#Mindmap Builder]]|
-||[[#Mindmap format]]|
-||[[#Printable Layout Wizard]]|
-||[[#Voronoi Diagram Generator]]|
-||[[#Zoom to Fit Selected Elements]]|
-
-## Connectors and Arrows
-**Keywords**: Links, Relations, Paths, Direction, Flow, Connections
-
-| | |
-|----|-----|
-||[[#Add Connector Point]]|
-||[[#Concatenate lines]]|
-||[[#Connect elements]]|
-||[[#Elbow connectors]]|
-||[[#Mindmap connector]]|
-||[[#Normalize Selected Arrows]]|
-||[[#Reverse arrows]]|
-
-## Text Manipulation
-**Keywords**: Editing, Font Control, Wording, Typography, Annotation, Modification
-
-| | |
-|----|-----|
-||[[#Comicbook Callout Editor]]|
-||[[#Convert selected text elements to sticky notes]]|
-||[[#Relative Font Size Cycle]]|
-||[[#Scribble Helper]]|
-||[[#Set Font Family]]|
-||[[#Set Text Alignment]]|
-||[[#Split text by lines]]|
-||[[#Text Aura]]|
-||[[#Text to Path]]|
-||[[#Text to Sticky Notes]]|
-
-## Styling and Appearance
-**Keywords**: Design, Look, Visuals, Graphics, Aesthetics, Presentation
-
-| | |
-|----|-----|
-||[[#Change shape of selected elements]]|
-||[[#Color Scheme Manager]]|
-||[[#Darken background color]]|
-||[[#Invert colors]]|
-||[[#Lighten background color]]|
-||[[#Modify background color opacity]]|
-||[[#Organic Line]]|
-||[[#Organic Line Legacy]]|
-||[[#Reset LaTeX Size]]|
-||[[#Set background color of unclosed line object by adding a shadow clone]]|
-||[[#Set Dimensions]]|
-||[[#Set Grid]]|
-||[[#Set Stroke Width of Selected Elements]]|
-||[[#Shade Master]]|
-||[[#Toggle Grid]]|
-||[[#Uniform Size]]|
-
-## Linking and Embedding
-**Keywords**: Attach, Incorporate, Integrate, Associate, Insert, Reference
-
-| | |
-|----|-----|
-||[[#Add Link to Existing File and Open]]|
-||[[#Add Link to New Page and Open]]|
-||[[#Capture Note]]|
-||[[#Convert text to link with folder and alias]]|
-||[[#Create new markdown file and embed into active drawing]]|
-||[[#Folder Note Core - Make Current Drawing a Folder]]|
-||[[#Set Link Alias]]|
-
-## Utilities and Tools
-**Keywords**: Functionalities, Instruments, Helpers, Aids, Features, Enhancements
-
-| | |
-|----|-----|
-||[[#Boolean Operations]]|
-||[[#Copy Selected Element Styles to Global]]|
-||[[#Custom Zoom]]|
-||[[#ExcaliAI]]|
-||[[#Excalidraw Writing Machine]]|
-||[[#Icon Library]]|
-||[[#Image Occlusion]]|
-||[[#Palette Loader]]|
-||[[#Palm Guard]]|
-||[[#PDF Page Text to Clipboard]]|
-||[[#Rename Image]]|
-||[[#Repeat Elements]]|
-||[[#Repeat Texts]]|
-||[[#Select Elements of Type]]|
-||[[#Select Similar Elements]]|
-||[[#Slideshow]]|
-||[[#Split Ellipse]]|
-
-## Collaboration and Export
-**Keywords**: Sharing, Teamwork, Exporting, Distribution, Cooperative, Publish
-
-| | |
-|----|-----|
-||[[#Excalidraw Collaboration Frame]]|
-
-## Conversation and Creation
-**Keywords**: Transform, Generate, Craft, Produce, Change, Originate
-
-| | |
-|----|-----|
-||[[#Add Next Step in Process]]|
-||[[#Comic Strip Director]]|
-||[[#Convert freedraw to line]]|
-||[[#Deconstruct selected elements into new drawing]]|
-||[[#Full-Year Calendar Generator]]|
-||[[#Linear Calendar Generator]]|
-
-## Masking and cropping
-**Keywords**: Crop, Mask, Transform images
-
-| | |
-|----|-----|
-||[[#Crop Vintage Mask]]|
-
----
-
-# Description and Installation
-
-## Add Connector Point
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Add%20Connector%20Point.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will add a small circle to the top left of each text element in the selection and add the text and the "connector point" to a group. You can use the connector points to link text elements with an arrow (in for example a Wardley Map).
 |
-
-## Add Link to Existing File and Open
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Add%20Link%20to%20Existing%20File%20and%20Open.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Prompts for a file from the vault. Adds a link to the selected element pointing to the selected file. You can control in settings to open the file in the current active pane or an adjacent pane.
 |
-
-## Add Link to New Page and Open
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Add%20Link%20to%20New%20Page%20and%20Open.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Prompts for filename. Offers option to create and open a new Markdown or Excalidraw document. Adds link pointing to the new file, to the selected objects in the drawing. You can control in settings to open the file in the current active pane or an adjacent pane.
 |
-
-## Add Next Step in Process
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Add%20Next%20Step%20in%20Process.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will prompt you for the title of the process step, then will create a stick note with the text. If an element is selected then the script will connect this new step with an arrow to the previous step (the selected element). If no element is selected, then the script assumes this is the first step in the process and will only output the sticky note with the text that was entered.
 |
-
-## Auto Layout
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Auto%20Layout.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script performs automatic layout for the selected top-level grouping objects. It is powered by elkjs and needs to be connected to the Internet.
 |
-
-## Boolean Operations
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Boolean%20Operations.md
-```
-| Author | @GColoy |
| Source | File on GitHub |
| Description | With This Script it is possible to make boolean Operations on Shapes. The style of the resulting shape will be the style of the highest ranking Element that was used. The ranking of the elements is based on their background. The "denser" the background, the higher the ranking (the order of backgroundstyles is shown below). If they have the same background the opacity will decide. If thats also the same its decided by the order they were created. The ranking is also important for the difference operation, so a transparent object for example will cut a hole into a solid object.

 |
-
-## Box Each Selected Groups
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Box%20Each%20Selected%20Groups.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script will add encapsulating boxes around each of the currently selected groups in Excalidraw.
 |
-
-## Box Selected Elements
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Box%20Selected%20Elements.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will add an encapsulating box around the currently selected elements in Excalidraw.
 |
-
-## Capture Note
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Capture%20Note.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script implements the unified "Capture Note" workflow, allowing users to select or search for note titles, automatically resolve their template and folder rules, and contextually back-embed visual frames or markdown sections.
 |
-
-## Change shape of selected elements
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Change%20shape%20of%20selected%20elements.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script allows you to change the shape and fill style of selected Rectangles, Diamonds, Ellipses, Lines, Arrows and Freedraw.
 |
-
-## Color Scheme Manager
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Color%20Scheme%20Manager.md
-```
-| Author | @iwanhoogendoorn |
| Source | File on GitHub |
| Description | Swap the entire Stroke and Background/Fill colour palettes between named, categorized themes (Cloud Providers, Code Editors, Tech Brands, Design Systems, Nature, and more) from a docked side panel. Applying a theme recolours your selection (or sets the active colour) and repaints the native picker — both the quick-pick rows and the extended 3×5 grid with shades. Create your own schemes, import from a flat hex list, a labelled STROKE/FILL text format, or a raw appState colorPalette JSON (paste or .txt/.json file), hand-pick a custom picker, and export the current palette. When the MindMap Builder script is installed, an optional toggle recolours mind maps branch-by-branch. The canvas background is always left white.
 |
-
-## Comic Strip Director
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Comic%20Strip%20Director.md
-```
-| Author | @iwanhoogendoorn |
| Source | File on GitHub |
| Description | Turn the canvas into a comic-strip studio: pick one of 30 page layouts (or generate one for any panel count — angled polygon panels included), split panels with action-beat cuts, then fill them from a who × costume × action character picker with real thumbnails. Painted POW!/BOOM!/ZAP! FX stamp straight into panels, and reserved callout zones hand off to the Comicbook Callout Editor for speech bubbles. A free 8-character starter cast (176 poses + 3 FX) installs with one click from inside the script; add-on packs import from .strippack files.
 |
-
-## Comicbook Callout Editor
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Comicbook%20Callout%20Editor.md
-```
-
-
-## Concatenate lines
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Concatenate%20lines.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will connect two objects with an arrow. If either of the objects are a set of grouped elements (e.g. a text element grouped with an encapsulating rectangle), the script will identify these groups, and connect the arrow to the largest object in the group (assuming you want to connect the arrow to the box around the text element).
 |
-
-## Connect elements
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Connect%20elements.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will connect two objects with an arrow. If either of the objects are a set of grouped elements (e.g. a text element grouped with an encapsulating rectangle), the script will identify these groups, and connect the arrow to the largest object in the group (assuming you want to connect the arrow to the box around the text element).
 |
-
-## Convert freedraw to line
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Convert%20freedraw%20to%20line.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Convert selected freedraw objects into editable lines. This will allow you to adjust your drawings by dragging line points and will also allow you to select shape fill in case of enclosed lines. You can adjust conversion point density in settings.
 |
-
-## Convert selected text elements to sticky notes
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Convert%20selected%20text%20elements%20to%20sticky%20notes.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts selected plain text elements to sticky notes with transparent background and transparent stroke color (default setting, can be changed in plugin settings). Essentially converts text element into a wrappable format.
 |
-
-## Convert text to link with folder and alias
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Convert%20text%20to%20link%20with%20folder%20and%20alias.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts text elements to links pointing to a file in a selected folder and with the alias set as the original text. The script will prompt the user to select an existing folder from the vault.
original text - [[selected folder/original text|original text]] |
-
-## Copy Selected Element Styles to Global
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Copy%20Selected%20Element%20Styles%20to%20Global.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script will copy styles of any selected element into Excalidraw's global styles.
 |
-
-## Create new markdown file and embed into active drawing
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Create%20new%20markdown%20file%20and%20embed%20into%20active%20drawing.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script will prompt you for a filename, then create a new markdown document with the file name provided, open the new markdown document in an adjacent pane, and embed the markdown document into the active Excalidraw drawing.
 |
-
-## Crop Vintage Mask
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Crop%20Vintage%20Mask.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Adds a rounded mask to the image by adding a full cover black mask and a rounded rectangle white mask. The script is also useful for adding just a black mask. In this case, run the script, then delete the white mask and add your custom white mask.
 |
-
-## Custom Zoom
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Custom%20Zoom.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | You can set a custom zoom level with this script. This allows you to set a zoom level below 10% or set the zoom level to a specific value. Note however, that Excalidraw has a bug under 10% zoom... a phantom copy of your image may appear on screen. If this happens, increase the zoom and the phantom should disappear, if it doesn't, then close and open the drawing. |
-
-## Darken background color
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Darken%20background%20color.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script darkens the background color of the selected element by 2% at a time. You can use this script several times until you are satisfied. It is recommended to set a shortcut key for this script so that you can quickly try to DARKEN and LIGHTEN the color effect. In contrast to the `Modify background color opacity` script, the advantage is that the background color of the element is not affected by the canvas color, and the color value does not appear in a strange rgba() form.
 |
-
-## Deconstruct selected elements into new drawing
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Deconstruct%20selected%20elements%20into%20new%20drawing.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Select some elements in the scene. The script will take these elements and move them into a new Excalidraw file, and open that file. The selected elements will also be replaced in your original drawing with the embedded Excalidraw file (the one that was just created). You will be prompted for the file name of the new deconstructed image. The script is useful if you want to break a larger drawing into smaller reusable parts that you want to reference in multiple drawings.

 |
-
-## Elbow connectors
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Elbow%20connectors.md
-```
-
-
-## Ellipse Selected Elements
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Ellipse%20Selected%20Elements.md
-```
-| Author | @mazurov |
| Source | File on GitHub |
| Description | This script will add an encapsulating ellipse around the currently selected elements in Excalidraw.
 |
-
-## ExcaliAI
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/ExcaliAI.md
-```
-
-
-## Excalidraw Collaboration Frame
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Excalidraw%20Collaboration%20Frame.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | Creates a new Excalidraw.com collaboration room and places the link to the room on the clipboard. |
-
-## Excalidraw Writing Machine
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Excalidraw%20Writing%20Machine.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Creates a hierarchical Markdown document out of a visual layout of an article that can be fed to Templater and converted into an article using AI for Templater. Watch this video to understand how the script is intended to work:
 You can download the sample Obsidian Templater file from here. You can download the demo PDF document showcased in the video from here. |
-
-## Expand rectangles horizontally
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Expand%20rectangles%20horizontally.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script expands the width of the selected rectangles until they are all the same width.
 |
-
-## Expand rectangles horizontally keep text centered
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Expand%20rectangles%20horizontally%20keep%20text%20centered.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script expands the width of the selected rectangles until they are all the same width and keep the text centered.
 |
-
-## Expand rectangles vertically
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Expand%20rectangles%20vertically.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script expands the height of the selected rectangles until they are all the same height.
 |
-
-## Expand rectangles vertically keep text centered
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Expand%20rectangles%20vertically%20keep%20text%20centered.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script expands the height of the selected rectangles until they are all the same height and keep the text centered.
 |
-
-## Fixed horizontal distance between centers
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20horizontal%20distance%20between%20centers.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script arranges the selected elements horizontally with a fixed center spacing.
 |
-
-## Fixed inner distance
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20inner%20distance.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script arranges selected elements and groups with a fixed inner distance.
 |
-
-## Fixed spacing
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20spacing.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | The script arranges the selected elements horizontally with a fixed spacing. When we create an architecture diagram or mind map, we often need to arrange a large number of elements in a fixed spacing. `Fixed spacing` and `Fixed vertical Distance` scripts can save us a lot of time.
 |
-
-## Fixed vertical distance
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20vertical%20distance.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | The script arranges the selected elements vertically with a fixed spacing. When we create an architecture diagram or mind map, we often need to arrange a large number of elements in a fixed spacing. `Fixed spacing` and `Fixed vertical Distance` scripts can save us a lot of time.
 |
-
-## Fixed vertical distance between centers
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20vertical%20distance%20between%20centers.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script arranges the selected elements vertically with a fixed center spacing.
 |
-
-## Folder Note Core - Make Current Drawing a Folder
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Folder%20Note%20Core%20-%20Make%20Current%20Drawing%20a%20Folder.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script adds the `Folder Note Core: Make current document folder note` function to Excalidraw drawings. Running this script will convert the active Excalidraw drawing into a folder note. If you already have embedded images in your drawing, those attachments will not be moved when the folder note is created. You need to take care of those attachments separately, or convert the drawing to a folder note prior to adding the attachments. The script requires the Folder Note Core plugin. |
-
-## Full-Year Calendar Generator
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Full-Year%20Calendar%20Generator.md
-```
-
-
-## Golden Ratio
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Golden%20Ratio.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script performs two different functions depending on the elements selected in the view.
-1) In case you select text elements, the script will cycle through a set of font scales. First the 2 larger fonts following the Fibonacci sequence (fontsize * φ; fonsize * φ^2), then the 2 smaller fonts (fontsize / φ; fontsize / φ^2), finally the original size, followed again by the 2 larger fonts. If you wait 2 seconds, the sequence clears and starts from which ever font size you are on. So if you want the 3rd larges font, then toggle twice, wait 2 sec, then toggle again.
-2) In case you select a single rectangle, the script will open the "Golden Grid", "Golden Spiral" window, where you can set up the type of grid or spiral you want to insert into the document.

 |
-
-## Grid selected images
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Grid%20Selected%20Images.md
-```
-| Author | @7flash |
| Source | File on GitHub |
| Description | This script arranges selected images into compact grid view, removing gaps in-between, resizing when necessary and breaking into multiple rows/columns.
 |
-
-## Icon Library
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Icon%20Library.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Adds a fast, searchable icon library to Excalidraw as a native side panel. Build your own library from Excalidraw drawings, SVGs, PNGs, JPGs, WebP images, and more. Automatically generate SVG thumbnails for Excalidraw files, organize icons using customizable regular-expression filters, search by keyword, and insert icons into Excalidraw or MindMap Builder with a single click. The panel supports lazy loading for large libraries, keyboard navigation, adjustable thumbnail sizes, configurable thumbnail backgrounds, and flexible insertion settings.
 |
-
-## Image Occlusion
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Image%20Occlusion.md
-```
-| Author | @TrillStones |
| Source | File on GitHub |
| Description | An Excalidraw script for creating Anki image occlusion cards in Obsidian, similar to Anki's Image Occlusion Enhanced add-on but integrated into your Obsidian workflow.
 |
-
-## Invert colors
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Invert%20colors.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script inverts the colors on the canvas including the color palette in Element Properties.
 |
-
-## Lighten background color
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Lighten%20background%20color.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script lightens the background color of the selected element by 2% at a time. You can use this script several times until you are satisfied. It is recommended to set a shortcut key for this script so that you can quickly try to DARKEN and LIGHTEN the color effect.In contrast to the `Modify background color opacity` script, the advantage is that the background color of the element is not affected by the canvas color, and the color value does not appear in a strange rgba() form.
 |
-
-## Linear Calendar Generator
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Linear%20Calendar%20Generator.md
-```
-
-
-## Mindmap Builder
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Mindmap%20Builder.md
-```
-
-
-## Mindmap connector
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Mindmap%20connector.md
-```
-| Author | @xllowl |
| Source | File on GitHub |
| Description | This script creates mindmap like lines (only right side and down available currently) for selected elements. The line will start according to the creation time of the elements. So you should create the header element first.
 |
-
-## Mindmap format
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Mindmap%20format.md
-```
-| Author | @pandoralink |
| Source | File on GitHub |
| Description | Automatically formats a mindmap from left to right based on the creation sequence of arrows.
 A mindmap is actually a tree, so you must have a root node. The script will determine the leftmost element of the selected element as the root element (the node must be a rectangle, diamond, ellipse, text, image, but it can't be an arrow, line, freedraw, or group) The element connecting node and node must be an arrow and have the correct direction, e.g. parent node -> child node. The order of nodes in the Y axis or vertical direction is determined by the creation time of the arrow connecting it.
 If you want to readjust the order, you can delete arrows and reconnect them. The script provides options to adjust the style of the mindmap. Options are at the bottom of excalidraw plugin options (Settings -> Community plugins -> Excalidraw -> drag to bottom). Since the start bingding and end bingding of the arrows are easily disconnected from the node, if there are unformatted parts, please check the connection and use the script to reformat. |
-
-## Modify background color opacity
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Modify%20background%20color%20opacity.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script changes the opacity of the background color of the selected boxes. The default background color in Excalidraw is so dark that the text is hard to read. You can lighten the color a bit by setting transparency. And you can tweak the transparency over and over again until you're happy with it. Although excalidraw has the opacity option in its native property Settings, it also changes the transparency of the border. Use this script to change only the opacity of the background color without affecting the border.
 |
-
-## Normalize Selected Arrows
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Normalize%20Selected%20Arrows.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script will reset the start and end positions of the selected arrows. The arrow will point to the center of the connected box and will have a gap of 8px from the box.
 |
-
-## Organic Line
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Organic%20Line.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts selected freedraw lines such that pencil pressure will decrease from maximum to minimum from the beginning of the line to its end. The resulting line is placed at the back of the layers, under all other items. Helpful when drawing organic mindmaps. The script has been superseded by Custom Pens that you can enable in plugin settings. Find out more by watching this video |
-
-## Organic Line Legacy
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Organic%20Line%20Legacy.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts selected freedraw lines such that pencil pressure will decrease from maximum to minimum from the beginning of the line to its end. The resulting line is placed at the back of the layers, under all other items. Helpful when drawing organic mindmaps. This is the old script from this video. Since it's release this has been superseded by custom pens that you can enable in plugin settings. For more on custom pens, watch this The benefit of the approach in this implementation of custom pens is that it will look the same on excalidraw.com when you copy your drawing over for sharing with non-Obsidian users. Otherwise custom pens are faster to use and much more configurable.
 |
-
-## Palette Loader
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Palette%20loader.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Design your palette at paletton.com Once you are happy with your colors, click Tables/Export in the bottom right of the screen. Then click "Color swatches/as Sketch Palette", and copy the contents of the page to a markdown file in the palette folder of your vault (default is Excalidraw/Palette)
 |
-
-## Palm Guard
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Palm%20Guard.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Mobile & desktop palm‑rejection and distraction‑free drawing mode: optionally enters fullscreen, hides ALL Excalidraw UI chrome (top toolbar, side / bottom bars, plugin panels) for a clean / zen / immersive / kiosk / focus mode canvas. Provides a tiny draggable micro toolbar (toggle visibility + exit) so you gain maximum drawing area while preventing accidental palm taps. Uses the hotkey you assign in Obsidian’s Hotkey settings for this script to instantly show / hide controls (if no hotkey is set, use the on‑screen toggle). Ideal for stylus sketching, presentations, screen recording, split‑view space saving, or anyone searching for: palm rejection, hide toolbar, hide UI controls, clean mode, distraction free Excalidraw.
 Link to video on YouTube |
-
-## PDF Page Text to Clipboard
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/PDF%20Page%20Text%20to%20Clipboard.md
-```
-
-
-## Printable Layout Wizard
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Printable%20Layout%20Wizard.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Export Excalidraw to PDF Pages: Define printable page areas using frames, then export each frame as a separate page in a multi-page PDF. Perfect for turning your Excalidraw drawings into printable notes, handouts, or booklets. Supports standard and custom page sizes, margins, and easy frame arrangement.
 Link to video on YouTube
 Link to video on YouTube

 |
-
-## Relative Font Size Cycle
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Relative%20Font%20Size%20Cycle.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script will cycle through S, M, L, XL font sizes scaled to the current canvas zoom. |
-
-## Rename Image
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Rename%20Image.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Select an image on the canvas and run the script. You will be prompted to provide a new filename / filepath. This cuts down the time to name images you paste from the web or drag and drop from your file system.
 |
-
-## Repeat Elements
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Repeat%20Elements.md
-```
-| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script will detect the difference between 2 selected elements, including position, size, angle, stroke and background color, and create several elements that repeat these differences based on the number of repetitions entered by the user.
 |
-
-## Repeat Texts
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Repeat%20Texts.md
-```
-| Author | @soraliu |
| Source | File on GitHub |
| Description | In the following script, we address the concept of repetition through the lens of numerical progression. As visualized by the image, where multiple circles each labeled with an even task number are being condensed into a linear sequence, our script will similarly iterate through a set of numbers |
-
-## Reset LaTeX Size
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Reset%20LaTeX%20Size.md
-```
-| Author | @firai |
| Source | File on GitHub |
| Description | Reset the sizes of embedded LaTeX equations to the default sizes or a multiple of the default sizes.
 |
-
-## Reverse arrows
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Reverse%20arrows.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Reverse the direction of **arrows** within the scope of selected elements.
 |
-
-## Scribble Helper
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Scribble%20Helper.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | iOS scribble helper for better handwriting experience with text elements. If no elements are selected then the creates a text element at pointer position and you can use the edit box to modify the text with scribble. If a text element is selected then opens the input prompt where you can modify this text with scribble.

 |
-
-## Select Elements of Type
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Select%20Elements%20of%20Type.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Prompts you with a list of the different element types in the active image. Only elements of the selected type will be selected on the canvas. If nothing is selected when running the script, then the script will process all the elements on the canvas. If some elements are selected when the script is executed, then the script will only process the selected elements. The script is useful when, for example, you want to bring to front all the arrows, or want to change the color of all the text elements, etc.
 |
-
-## Select Similar Elements
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Select%20Similar%20Elements.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script allows you to streamline your Obsidian-Excalidraw workflows by enabling the selection of elements based on similar properties. you can precisely define which attributes such as stroke color, fill style, font family, and more, should match for selection. It's perfect for large canvases where manual selection would be cumbersome. You can either run the script to find and select matching elements across the entire scene, or define a specific group of elements to apply the selection criteria within a defined timeframe.
 |
-
-## Set background color of unclosed line object by adding a shadow clone
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20background%20color%20of%20unclosed%20line%20object%20by%20adding%20a%20shadow%20clone.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Use this script to set the background color of unclosed (i.e. open) line and freedraw objects by creating a clone of the object. The script will set the stroke color of the clone to transparent and will add a straight line to close the object. Use settings to define the default background color, the fill style, and the strokeWidth of the clone. By default the clone will be grouped with the original object, you can disable this also in settings.
 |
-
-## Set Dimensions
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Dimensions.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Currently there is no way to specify the exact location and size of objects in Excalidraw. You can bridge this gap with the following simple script.
 |
-
-## Set Font Family
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Font%20Family.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Sets font family of the text block (Virgil, Helvetica, Cascadia). Useful if you want to set a keyboard shortcut for selecting font family.
 |
-
-## Set Grid
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Grid.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | The default grid size in Excalidraw is 20. Currently there is no way to change the grid size via the user interface. This script offers a way to bridge this gap.
 |
-
-## Set Link Alias
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Link%20Alias.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Iterates all of the links in the selected TextElements and prompts the user to set or modify the alias for each link found.
 |
-
-## Set Stroke Width of Selected Elements
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Stroke%20Width%20of%20Selected%20Elements.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will set the stroke width of selected elements. This is helpful, for example, when you scale freedraw sketches and want to reduce or increase their line width.
 |
-
-## Set Text Alignment
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Text%20Alignment.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Sets text alignment of text block (cetner, right, left). Useful if you want to set a keyboard shortcut for selecting text alignment.
 |
-
-## Shade Master
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Shade%20Master.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | You can modify the colors of SVG images, embedded files, and Excalidraw elements in a drawing by changing Hue, Saturation, Lightness and Transparency; and if only a single SVG or nested Excalidraw drawing is selected, then you can remap image colors.
 |
-
-## Slideshow
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Slideshow.md
-```
-
-
-## Split Ellipse
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Split%20Ellipse.md
-```
-| Author | @GColoy |
| Source | File on GitHub |
| Description | This script splits an ellipse at any point where a line intersects it. If no lines are selected, it will use every line that intersects the ellipse. Otherwise, it will only use the selected lines. If there is no intersecting line, the ellipse will be converted into a line object. There is also the option to close the object along the cut, which will close the cut in the shape of the line.

 Tip: To use an ellipse as the cutting object, you first have to use this script on it, since it will convert the ellipse into a line. |
-
-## Split text by lines
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Split%20text%20by%20lines.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Split lines of text into separate text elements for easier reorganization
 |
-
-## Text Aura
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Text%20Aura.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Select a single text element, or a text element in a container. The container must have a transparent background. The script will add an aura to the text by adding 4 copies of the text each with the inverted stroke color of the original text element and with a very small X and Y offset. The resulting 4 + 1 (original) text elements or containers will be grouped. If you copy a color string on the clipboard before running the script, the script will use that color instead of the inverted color.
 |
-
-## Text to Path
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Text%20to%20Path.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script allows you to fit a text element along a selected path: line, arrow, freedraw, ellipse, rectangle, or diamond. You can select either a path or a text element, or both:
-- If only a path is selected, you will be prompted to provide the text.
-- If only a text element is selected and it was previously fitted to a path, the script will use the original path if it is still present in the scene.
-- If both a text and a path are selected, the script will fit the text to the selected path.
-If the path is a perfect circle, you will be prompted to choose whether to fit the text above or below the circle.
-After fitting, the text will no longer be editable as a standard text element or function as a markdown link. Emojis are not supported.
- |
-
-## Text to Sticky Notes
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Text%20to%20Sticky%20Notes.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts selected plain text element to sticky notes by dividing the text element line by line into separate sticky notes. The color of the stikcy note as well as the arrangement of the grid can be configured in plugin settings.
 |
-
-## Toggle Grid
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Toggle%20Grid.md
-```
-| Author | @GColoy |
| Source | File on GitHub |
| Description | Toggles the grid on and off. Especially useful when drawing with just a pen without a mouse or keyboard, as toggling the grid by left-clicking with the pen is sometimes quite tedious. |
-
-## Uniform Size
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Uniform%20size.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description |  The script will standardize the sizes of rectangles, diamonds and ellipses adjusting all the elements to match the largest width and height within the group. |
-
-## Voronoi Diagram Generator
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/VoronoiDiagramGenerator.md
-```
-| Author | @FreeCutter |
| Source | File on GitHub |
| Description | This script generates a Voronoi diagram from selected elements on the drawing canvas.
-
-The following parameters can be set in 'Voronoi Settings' window pop-up once the script is started:
-- Frame width (default: 100)
-- Roughness (default: 0)
-- Stroke width (default: 2)
-- Grouping (default: checked)
-
-Setting parameters could be set back to default values by click on button 'Default'.
-
-See background information about [Voronoi diagram](https://en.wikipedia.org/wiki/Voronoi_diagram) at Wikipedia.
-
-Comments and discussion are welcomed in the [Sketch Your Mind Community](https://community.sketch-your-mind.com)
 |
-
-## Zoom to Fit Selected Elements
-```excalidraw-script-install
-https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Zoom%20to%20Fit%20Selected%20Elements.md
-```
-| Author | @zsviczian |
| Source | File on GitHub |
| Description | Similar to Excalidraw standard SHIFT+2 feature: Zoom to fit selected elements, but with the ability to zoom to 1000%. Inspiration: [#272](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/272) |
+
+

+
+
+**It looks like you want to get more out of Excalidraw!**
+
+Scripts are a true superpower in Excalidraw. If you are ready to eliminate tool friction and build heavy-duty workflows, join [Excalidraw Mastery](https://community.sketch-your-mind.com/em). Master Excalidraw and Visual PKM alongside a supportive community of fellow visual thinkers in the [Sketch Your Mind Community](https://community.sketch-your-mind.com)!
+
+---
+
+If you are enjoying the Excalidraw plugin then please support my work and enthusiasm by buying me a coffee on [https://ko-fi/zsolt](https://ko-fi.com/zsolt). [
](https://ko-fi.com/zsolt)
+
+---
+
+Jump ahead to the [[#List of available scripts]]
+
+# Introducing Excalidraw Automate Script Engine
+
+
+Script Engine scripts are installed in the `Downloaded` subfolder of the `Excalidraw Automate script folder` specified in plugin settings.
+
+In the `Command Palette` installed scripts are prefixed with `Downloaded/`, thus you can always know if you are executing a local script of your own, or one that you have downloaded from GitHub.
+
+## Create Your Own Scripts with AI Superpowers
+
+You don't need to know how to code to build custom scripts! In this video, I show how to create powerful, custom Excalidraw scripts from scratch using the power of AI.
+
+Follow along as I generate a complete Layer Manager script for Excalidraw in Obsidian, allowing you to hide, show, lock, and manage elements on different layers. I'll walk you through the entire process, from using a custom training library for Excalidraw Automate to prompting Google's Gemini AI Studio to write the code for us. Discover how to unlock a true superpower for your Obsidian and Excalidraw workflow by generating any script you can imagine.
+
+
+

+
+
+## Attention developers and hobby hackers
+
+If you want to modify a downloaded script, move it to the `Excalidraw Automate script folder` or another subfolder first. Scripts in `Downloaded` are managed by the community library and can be overwritten when you install an update.
+
+I would love to include your contribution in the script library. If you have a script of your own that you would like to share with the community, please open a [PR](https://github.com/zsviczian/obsidian-excalidraw-plugin/pulls) on GitHub. Add the script and its icon/preview, add or update its entry in `ea-scripts/script-store.json`, then run `npm run script-store:build`. The build regenerates this legacy catalog and only advances `directory-info.json` mtimes for script/icon files that actually changed.
+---
+
+
+# List of available scripts
+
+## Editors Picks
+These are the scripts I use most often. I tried to order them by importance, but usefulness is situational—some days Crop Vintage Mask is as helpful as Deconstruct Selected Elements. I do deconstruct drawings daily; the entries lower in the Editors’ Picks list are still valuable, just needed less frequently.
+
+| | |
+|----|-----|
+||[[#Deconstruct selected elements into new drawing]]|
+||[[#Slideshow]]|
+||[[#Shade Master]]|
+||[[#Palette Loader]]|
+||[[#Palm Guard]]|
+||[[#Rename Image]]|
+||[[#Select Elements of Type]]|
+||[[#Select Similar Elements]]|
+||[[#Boolean Operations]]|
+||[[#Split Ellipse]]|
+||[[#Text to Path]]|
+||[[#Set Dimensions]]|
+||[[#Set Stroke Width of Selected Elements]]|
+||[[#Scribble Helper]]|
+||[[#Split text by lines]]|
+||[[#Text Aura]]|
+||[[#Golden Ratio]]|
+||[[#Printable Layout Wizard]]|
+||[[#Concatenate lines]]|
+||[[#Repeat Elements]]|
+||[[#Set background color of unclosed line object by adding a shadow clone]]|
+||[[#Excalidraw Writing Machine]]|
+||[[#Convert freedraw to line]]|
+||[[#Crop Vintage Mask]]|
+||[[#Mindmap Builder]]|
+||[[#Capture Note]]|
+||[[#Comicbook Callout Editor]]|
+||[[#Comic Strip Director]]|
+||[[#Icon Library]]|
+
+## Layout and Organization
+**Keywords**: Design, Placement, Arrangement, Structure, Formatting, Alignment
+
+| | |
+|----|-----|
+||[[#Auto Layout]]|
+||[[#Box Each Selected Groups]]|
+||[[#Box Selected Elements]]|
+||[[#Ellipse Selected Elements]]|
+||[[#Expand rectangles horizontally]]|
+||[[#Expand rectangles horizontally keep text centered]]|
+||[[#Expand rectangles vertically]]|
+||[[#Expand rectangles vertically keep text centered]]|
+||[[#Fixed horizontal distance between centers]]|
+||[[#Fixed inner distance]]|
+||[[#Fixed spacing]]|
+||[[#Fixed vertical distance]]|
+||[[#Fixed vertical distance between centers]]|
+||[[#Golden Ratio]]|
+||[[#Grid selected images]]|
+||[[#Mindmap Builder]]|
+||[[#Mindmap format]]|
+||[[#Printable Layout Wizard]]|
+||[[#Voronoi Diagram Generator]]|
+||[[#Zoom to Fit Selected Elements]]|
+
+## Connectors and Arrows
+**Keywords**: Links, Relations, Paths, Direction, Flow, Connections
+
+| | |
+|----|-----|
+||[[#Add Connector Point]]|
+||[[#Concatenate lines]]|
+||[[#Connect elements]]|
+||[[#Elbow connectors]]|
+||[[#Mindmap connector]]|
+||[[#Normalize Selected Arrows]]|
+||[[#Reverse arrows]]|
+
+## Text Manipulation
+**Keywords**: Editing, Font Control, Wording, Typography, Annotation, Modification
+
+| | |
+|----|-----|
+||[[#Comicbook Callout Editor]]|
+||[[#Convert selected text elements to sticky notes]]|
+||[[#Relative Font Size Cycle]]|
+||[[#Scribble Helper]]|
+||[[#Set Font Family]]|
+||[[#Set Text Alignment]]|
+||[[#Split text by lines]]|
+||[[#Text Aura]]|
+||[[#Text to Path]]|
+||[[#Text to Sticky Notes]]|
+
+## Styling and Appearance
+**Keywords**: Design, Look, Visuals, Graphics, Aesthetics, Presentation
+
+| | |
+|----|-----|
+||[[#Change shape of selected elements]]|
+||[[#Color Scheme Manager]]|
+||[[#Darken background color]]|
+||[[#Invert colors]]|
+||[[#Lighten background color]]|
+||[[#Modify background color opacity]]|
+||[[#Organic Line]]|
+||[[#Organic Line Legacy]]|
+||[[#Reset LaTeX Size]]|
+||[[#Set background color of unclosed line object by adding a shadow clone]]|
+||[[#Set Dimensions]]|
+||[[#Set Grid]]|
+||[[#Set Stroke Width of Selected Elements]]|
+||[[#Shade Master]]|
+||[[#Toggle Grid]]|
+||[[#Uniform Size]]|
+
+## Linking and Embedding
+**Keywords**: Attach, Incorporate, Integrate, Associate, Insert, Reference
+
+| | |
+|----|-----|
+||[[#Add Link to Existing File and Open]]|
+||[[#Add Link to New Page and Open]]|
+||[[#Capture Note]]|
+||[[#Convert text to link with folder and alias]]|
+||[[#Create new markdown file and embed into active drawing]]|
+||[[#Folder Note Core - Make Current Drawing a Folder]]|
+||[[#Set Link Alias]]|
+
+## Utilities and Tools
+**Keywords**: Functionalities, Instruments, Helpers, Aids, Features, Enhancements
+
+| | |
+|----|-----|
+||[[#Boolean Operations]]|
+||[[#Copy Selected Element Styles to Global]]|
+||[[#Custom Zoom]]|
+||[[#ExcaliAI]]|
+||[[#Excalidraw Writing Machine]]|
+||[[#Icon Library]]|
+||[[#Image Occlusion]]|
+||[[#Palette Loader]]|
+||[[#Palm Guard]]|
+||[[#PDF Page Text to Clipboard]]|
+||[[#Rename Image]]|
+||[[#Repeat Elements]]|
+||[[#Repeat Texts]]|
+||[[#Select Elements of Type]]|
+||[[#Select Similar Elements]]|
+||[[#Slideshow]]|
+||[[#Split Ellipse]]|
+
+## Collaboration and Export
+**Keywords**: Sharing, Teamwork, Exporting, Distribution, Cooperative, Publish
+
+| | |
+|----|-----|
+||[[#Excalidraw Collaboration Frame]]|
+
+## Conversation and Creation
+**Keywords**: Transform, Generate, Craft, Produce, Change, Originate
+
+| | |
+|----|-----|
+||[[#Add Next Step in Process]]|
+||[[#Comic Strip Director]]|
+||[[#Convert freedraw to line]]|
+||[[#Deconstruct selected elements into new drawing]]|
+||[[#Full-Year Calendar Generator]]|
+||[[#Linear Calendar Generator]]|
+
+## Masking and cropping
+**Keywords**: Crop, Mask, Transform images
+
+| | |
+|----|-----|
+||[[#Crop Vintage Mask]]|
+
+---
+
+# Description and Installation
+
+## Add Connector Point
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Add%20Connector%20Point.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will add a small circle to the top left of each text element in the selection and add the text and the "connector point" to a group. You can use the connector points to link text elements with an arrow (in for example a Wardley Map).
 |
+
+## Add Link to Existing File and Open
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Add%20Link%20to%20Existing%20File%20and%20Open.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Prompts for a file from the vault. Adds a link to the selected element pointing to the selected file. You can control in settings to open the file in the current active pane or an adjacent pane.
 |
+
+## Add Link to New Page and Open
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Add%20Link%20to%20New%20Page%20and%20Open.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Prompts for filename. Offers option to create and open a new Markdown or Excalidraw document. Adds link pointing to the new file, to the selected objects in the drawing. You can control in settings to open the file in the current active pane or an adjacent pane.
 |
+
+## Add Next Step in Process
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Add%20Next%20Step%20in%20Process.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will prompt you for the title of the process step, then will create a stick note with the text. If an element is selected then the script will connect this new step with an arrow to the previous step (the selected element). If no element is selected, then the script assumes this is the first step in the process and will only output the sticky note with the text that was entered.
 |
+
+## Auto Layout
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Auto%20Layout.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script performs automatic layout for the selected top-level grouping objects. It is powered by elkjs and needs to be connected to the Internet.
 |
+
+## Boolean Operations
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Boolean%20Operations.md
+```
+| Author | @GColoy |
| Source | File on GitHub |
| Description | With This Script it is possible to make boolean Operations on Shapes. The style of the resulting shape will be the style of the highest ranking Element that was used. The ranking of the elements is based on their background. The "denser" the background, the higher the ranking (the order of backgroundstyles is shown below). If they have the same background the opacity will decide. If thats also the same its decided by the order they were created. The ranking is also important for the difference operation, so a transparent object for example will cut a hole into a solid object.

 |
+
+## Box Each Selected Groups
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Box%20Each%20Selected%20Groups.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script will add encapsulating boxes around each of the currently selected groups in Excalidraw.
 |
+
+## Box Selected Elements
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Box%20Selected%20Elements.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will add an encapsulating box around the currently selected elements in Excalidraw.
 |
+
+## Capture Note
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Capture%20Note.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script implements the unified "Capture Note" workflow, allowing users to select or search for note titles, automatically resolve their template and folder rules, and contextually back-embed visual frames or markdown sections.
 |
+
+## Change shape of selected elements
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Change%20shape%20of%20selected%20elements.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script allows you to change the shape and fill style of selected Rectangles, Diamonds, Ellipses, Lines, Arrows and Freedraw.
 |
+
+## Color Scheme Manager
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Color%20Scheme%20Manager.md
+```
+| Author | @iwanhoogendoorn |
| Source | File on GitHub |
| Description | Swap the entire Stroke and Background/Fill colour palettes between named, categorized themes (Cloud Providers, Code Editors, Tech Brands, Design Systems, Nature, and more) from a docked side panel. Applying a theme recolours your selection (or sets the active colour) and repaints the native picker — both the quick-pick rows and the extended 3×5 grid with shades. Create your own schemes, import from a flat hex list, a labelled STROKE/FILL text format, or a raw appState colorPalette JSON (paste or .txt/.json file), hand-pick a custom picker, and export the current palette. When the MindMap Builder script is installed, an optional toggle recolours mind maps branch-by-branch. The canvas background is always left white.
 |
+
+## Comic Strip Director
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Comic%20Strip%20Director.md
+```
+| Author | @iwanhoogendoorn |
| Source | File on GitHub |
| Description | Turn the canvas into a comic-strip studio: pick one of 30 page layouts (or generate one for any panel count — angled polygon panels included), split panels with action-beat cuts, then fill them from a who × costume × action character picker with real thumbnails. Painted POW!/BOOM!/ZAP! FX stamp straight into panels, and reserved callout zones hand off to the Comicbook Callout Editor for speech bubbles. A free 8-character starter cast (176 poses + 3 FX) installs with one click from inside the script; add-on packs import from .strippack files.
 |
+
+## Comicbook Callout Editor
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Comicbook%20Callout%20Editor.md
+```
+
+
+## Concatenate lines
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Concatenate%20lines.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will connect two objects with an arrow. If either of the objects are a set of grouped elements (e.g. a text element grouped with an encapsulating rectangle), the script will identify these groups, and connect the arrow to the largest object in the group (assuming you want to connect the arrow to the box around the text element).
 |
+
+## Connect elements
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Connect%20elements.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will connect two objects with an arrow. If either of the objects are a set of grouped elements (e.g. a text element grouped with an encapsulating rectangle), the script will identify these groups, and connect the arrow to the largest object in the group (assuming you want to connect the arrow to the box around the text element).
 |
+
+## Convert freedraw to line
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Convert%20freedraw%20to%20line.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Convert selected freedraw objects into editable lines. This will allow you to adjust your drawings by dragging line points and will also allow you to select shape fill in case of enclosed lines. You can adjust conversion point density in settings.
 |
+
+## Convert selected text elements to sticky notes
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Convert%20selected%20text%20elements%20to%20sticky%20notes.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts selected plain text elements to sticky notes with transparent background and transparent stroke color (default setting, can be changed in plugin settings). Essentially converts text element into a wrappable format.
 |
+
+## Convert text to link with folder and alias
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Convert%20text%20to%20link%20with%20folder%20and%20alias.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts text elements to links pointing to a file in a selected folder and with the alias set as the original text. The script will prompt the user to select an existing folder from the vault.
original text - [[selected folder/original text|original text]] |
+
+## Copy Selected Element Styles to Global
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Copy%20Selected%20Element%20Styles%20to%20Global.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script will copy styles of any selected element into Excalidraw's global styles.
 |
+
+## Create new markdown file and embed into active drawing
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Create%20new%20markdown%20file%20and%20embed%20into%20active%20drawing.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script will prompt you for a filename, then create a new markdown document with the file name provided, open the new markdown document in an adjacent pane, and embed the markdown document into the active Excalidraw drawing.
 |
+
+## Crop Vintage Mask
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Crop%20Vintage%20Mask.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Adds a rounded mask to the image by adding a full cover black mask and a rounded rectangle white mask. The script is also useful for adding just a black mask. In this case, run the script, then delete the white mask and add your custom white mask.
 |
+
+## Custom Zoom
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Custom%20Zoom.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | You can set a custom zoom level with this script. This allows you to set a zoom level below 10% or set the zoom level to a specific value. Note however, that Excalidraw has a bug under 10% zoom... a phantom copy of your image may appear on screen. If this happens, increase the zoom and the phantom should disappear, if it doesn't, then close and open the drawing. |
+
+## Darken background color
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Darken%20background%20color.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script darkens the background color of the selected element by 2% at a time. You can use this script several times until you are satisfied. It is recommended to set a shortcut key for this script so that you can quickly try to DARKEN and LIGHTEN the color effect. In contrast to the `Modify background color opacity` script, the advantage is that the background color of the element is not affected by the canvas color, and the color value does not appear in a strange rgba() form.
 |
+
+## Deconstruct selected elements into new drawing
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Deconstruct%20selected%20elements%20into%20new%20drawing.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Select some elements in the scene. The script will take these elements and move them into a new Excalidraw file, and open that file. The selected elements will also be replaced in your original drawing with the embedded Excalidraw file (the one that was just created). You will be prompted for the file name of the new deconstructed image. The script is useful if you want to break a larger drawing into smaller reusable parts that you want to reference in multiple drawings.

 |
+
+## Elbow connectors
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Elbow%20connectors.md
+```
+
+
+## Ellipse Selected Elements
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Ellipse%20Selected%20Elements.md
+```
+| Author | @mazurov |
| Source | File on GitHub |
| Description | This script will add an encapsulating ellipse around the currently selected elements in Excalidraw.
 |
+
+## ExcaliAI
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/ExcaliAI.md
+```
+
+
+## Excalidraw Collaboration Frame
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Excalidraw%20Collaboration%20Frame.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | Creates a new Excalidraw.com collaboration room and places the link to the room on the clipboard. |
+
+## Excalidraw Writing Machine
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Excalidraw%20Writing%20Machine.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Creates a hierarchical Markdown document out of a visual layout of an article that can be fed to Templater and converted into an article using AI for Templater. Watch this video to understand how the script is intended to work:
 You can download the sample Obsidian Templater file from here. You can download the demo PDF document showcased in the video from here. |
+
+## Expand rectangles horizontally
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Expand%20rectangles%20horizontally.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script expands the width of the selected rectangles until they are all the same width.
 |
+
+## Expand rectangles horizontally keep text centered
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Expand%20rectangles%20horizontally%20keep%20text%20centered.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script expands the width of the selected rectangles until they are all the same width and keep the text centered.
 |
+
+## Expand rectangles vertically
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Expand%20rectangles%20vertically.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script expands the height of the selected rectangles until they are all the same height.
 |
+
+## Expand rectangles vertically keep text centered
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Expand%20rectangles%20vertically%20keep%20text%20centered.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script expands the height of the selected rectangles until they are all the same height and keep the text centered.
 |
+
+## Fixed horizontal distance between centers
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20horizontal%20distance%20between%20centers.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script arranges the selected elements horizontally with a fixed center spacing.
 |
+
+## Fixed inner distance
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20inner%20distance.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script arranges selected elements and groups with a fixed inner distance.
 |
+
+## Fixed spacing
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20spacing.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | The script arranges the selected elements horizontally with a fixed spacing. When we create an architecture diagram or mind map, we often need to arrange a large number of elements in a fixed spacing. `Fixed spacing` and `Fixed vertical Distance` scripts can save us a lot of time.
 |
+
+## Fixed vertical distance
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20vertical%20distance.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | The script arranges the selected elements vertically with a fixed spacing. When we create an architecture diagram or mind map, we often need to arrange a large number of elements in a fixed spacing. `Fixed spacing` and `Fixed vertical Distance` scripts can save us a lot of time.
 |
+
+## Fixed vertical distance between centers
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Fixed%20vertical%20distance%20between%20centers.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script arranges the selected elements vertically with a fixed center spacing.
 |
+
+## Folder Note Core - Make Current Drawing a Folder
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Folder%20Note%20Core%20-%20Make%20Current%20Drawing%20a%20Folder.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script adds the `Folder Note Core: Make current document folder note` function to Excalidraw drawings. Running this script will convert the active Excalidraw drawing into a folder note. If you already have embedded images in your drawing, those attachments will not be moved when the folder note is created. You need to take care of those attachments separately, or convert the drawing to a folder note prior to adding the attachments. The script requires the Folder Note Core plugin. |
+
+## Full-Year Calendar Generator
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Full-Year%20Calendar%20Generator.md
+```
+
+
+## Golden Ratio
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Golden%20Ratio.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script performs two different functions depending on the elements selected in the view.
+1) In case you select text elements, the script will cycle through a set of font scales. First the 2 larger fonts following the Fibonacci sequence (fontsize * φ; fonsize * φ^2), then the 2 smaller fonts (fontsize / φ; fontsize / φ^2), finally the original size, followed again by the 2 larger fonts. If you wait 2 seconds, the sequence clears and starts from which ever font size you are on. So if you want the 3rd larges font, then toggle twice, wait 2 sec, then toggle again.
+2) In case you select a single rectangle, the script will open the "Golden Grid", "Golden Spiral" window, where you can set up the type of grid or spiral you want to insert into the document.

 |
+
+## Grid selected images
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Grid%20Selected%20Images.md
+```
+| Author | @7flash |
| Source | File on GitHub |
| Description | This script arranges selected images into compact grid view, removing gaps in-between, resizing when necessary and breaking into multiple rows/columns.
 |
+
+## Icon Library
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Icon%20Library.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Adds a fast, searchable icon library to Excalidraw as a native side panel. Build your own library from Excalidraw drawings, SVGs, PNGs, JPGs, WebP images, and more. Automatically generate SVG thumbnails for Excalidraw files, organize icons using customizable regular-expression filters, search by keyword, and insert icons into Excalidraw or MindMap Builder with a single click. The panel supports lazy loading for large libraries, keyboard navigation, adjustable thumbnail sizes, configurable thumbnail backgrounds, and flexible insertion settings.
 |
+
+## Image Occlusion
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Image%20Occlusion.md
+```
+| Author | @TrillStones |
| Source | File on GitHub |
| Description | An Excalidraw script for creating Anki image occlusion cards in Obsidian, similar to Anki's Image Occlusion Enhanced add-on but integrated into your Obsidian workflow.
 |
+
+## Invert colors
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Invert%20colors.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script inverts the colors on the canvas including the color palette in Element Properties.
 |
+
+## Lighten background color
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Lighten%20background%20color.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script lightens the background color of the selected element by 2% at a time. You can use this script several times until you are satisfied. It is recommended to set a shortcut key for this script so that you can quickly try to DARKEN and LIGHTEN the color effect.In contrast to the `Modify background color opacity` script, the advantage is that the background color of the element is not affected by the canvas color, and the color value does not appear in a strange rgba() form.
 |
+
+## Linear Calendar Generator
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Linear%20Calendar%20Generator.md
+```
+
+
+## Mindmap Builder
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Mindmap%20Builder.md
+```
+
+
+## Mindmap connector
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Mindmap%20connector.md
+```
+| Author | @xllowl |
| Source | File on GitHub |
| Description | This script creates mindmap like lines (only right side and down available currently) for selected elements. The line will start according to the creation time of the elements. So you should create the header element first.
 |
+
+## Mindmap format
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Mindmap%20format.md
+```
+| Author | @pandoralink |
| Source | File on GitHub |
| Description | Automatically formats a mindmap from left to right based on the creation sequence of arrows.
 A mindmap is actually a tree, so you must have a root node. The script will determine the leftmost element of the selected element as the root element (the node must be a rectangle, diamond, ellipse, text, image, but it can't be an arrow, line, freedraw, or group) The element connecting node and node must be an arrow and have the correct direction, e.g. parent node -> child node. The order of nodes in the Y axis or vertical direction is determined by the creation time of the arrow connecting it.
 If you want to readjust the order, you can delete arrows and reconnect them. The script provides options to adjust the style of the mindmap. Options are at the bottom of excalidraw plugin options (Settings -> Community plugins -> Excalidraw -> drag to bottom). Since the start bingding and end bingding of the arrows are easily disconnected from the node, if there are unformatted parts, please check the connection and use the script to reformat. |
+
+## Modify background color opacity
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Modify%20background%20color%20opacity.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script changes the opacity of the background color of the selected boxes. The default background color in Excalidraw is so dark that the text is hard to read. You can lighten the color a bit by setting transparency. And you can tweak the transparency over and over again until you're happy with it. Although excalidraw has the opacity option in its native property Settings, it also changes the transparency of the border. Use this script to change only the opacity of the background color without affecting the border.
 |
+
+## Normalize Selected Arrows
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Normalize%20Selected%20Arrows.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script will reset the start and end positions of the selected arrows. The arrow will point to the center of the connected box and will have a gap of 8px from the box.
 |
+
+## Organic Line
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Organic%20Line.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts selected freedraw lines such that pencil pressure will decrease from maximum to minimum from the beginning of the line to its end. The resulting line is placed at the back of the layers, under all other items. Helpful when drawing organic mindmaps. The script has been superseded by Custom Pens that you can enable in plugin settings. Find out more by watching this video |
+
+## Organic Line Legacy
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Organic%20Line%20Legacy.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts selected freedraw lines such that pencil pressure will decrease from maximum to minimum from the beginning of the line to its end. The resulting line is placed at the back of the layers, under all other items. Helpful when drawing organic mindmaps. This is the old script from this video. Since it's release this has been superseded by custom pens that you can enable in plugin settings. For more on custom pens, watch this The benefit of the approach in this implementation of custom pens is that it will look the same on excalidraw.com when you copy your drawing over for sharing with non-Obsidian users. Otherwise custom pens are faster to use and much more configurable.
 |
+
+## Palette Loader
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Palette%20loader.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Design your palette at paletton.com Once you are happy with your colors, click Tables/Export in the bottom right of the screen. Then click "Color swatches/as Sketch Palette", and copy the contents of the page to a markdown file in the palette folder of your vault (default is Excalidraw/Palette)
 |
+
+## Palm Guard
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Palm%20Guard.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Mobile & desktop palm‑rejection and distraction‑free drawing mode: optionally enters fullscreen, hides ALL Excalidraw UI chrome (top toolbar, side / bottom bars, plugin panels) for a clean / zen / immersive / kiosk / focus mode canvas. Provides a tiny draggable micro toolbar (toggle visibility + exit) so you gain maximum drawing area while preventing accidental palm taps. Uses the hotkey you assign in Obsidian’s Hotkey settings for this script to instantly show / hide controls (if no hotkey is set, use the on‑screen toggle). Ideal for stylus sketching, presentations, screen recording, split‑view space saving, or anyone searching for: palm rejection, hide toolbar, hide UI controls, clean mode, distraction free Excalidraw.
 Link to video on YouTube |
+
+## PDF Page Text to Clipboard
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/PDF%20Page%20Text%20to%20Clipboard.md
+```
+
+
+## Printable Layout Wizard
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Printable%20Layout%20Wizard.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Export Excalidraw to PDF Pages: Define printable page areas using frames, then export each frame as a separate page in a multi-page PDF. Perfect for turning your Excalidraw drawings into printable notes, handouts, or booklets. Supports standard and custom page sizes, margins, and easy frame arrangement.
 Link to video on YouTube
 Link to video on YouTube

 |
+
+## Relative Font Size Cycle
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Relative%20Font%20Size%20Cycle.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | The script will cycle through S, M, L, XL font sizes scaled to the current canvas zoom. |
+
+## Rename Image
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Rename%20Image.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Select an image on the canvas and run the script. You will be prompted to provide a new filename / filepath. This cuts down the time to name images you paste from the web or drag and drop from your file system.
 |
+
+## Repeat Elements
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Repeat%20Elements.md
+```
+| Author | @1-2-3 |
| Source | File on GitHub |
| Description | This script will detect the difference between 2 selected elements, including position, size, angle, stroke and background color, and create several elements that repeat these differences based on the number of repetitions entered by the user.
 |
+
+## Repeat Texts
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Repeat%20Texts.md
+```
+| Author | @soraliu |
| Source | File on GitHub |
| Description | In the following script, we address the concept of repetition through the lens of numerical progression. As visualized by the image, where multiple circles each labeled with an even task number are being condensed into a linear sequence, our script will similarly iterate through a set of numbers |
+
+## Reset LaTeX Size
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Reset%20LaTeX%20Size.md
+```
+| Author | @firai |
| Source | File on GitHub |
| Description | Reset the sizes of embedded LaTeX equations to the default sizes or a multiple of the default sizes.
 |
+
+## Reverse arrows
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Reverse%20arrows.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Reverse the direction of **arrows** within the scope of selected elements.
 |
+
+## Scribble Helper
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Scribble%20Helper.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | iOS scribble helper for better handwriting experience with text elements. If no elements are selected then the creates a text element at pointer position and you can use the edit box to modify the text with scribble. If a text element is selected then opens the input prompt where you can modify this text with scribble.

 |
+
+## Select Elements of Type
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Select%20Elements%20of%20Type.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Prompts you with a list of the different element types in the active image. Only elements of the selected type will be selected on the canvas. If nothing is selected when running the script, then the script will process all the elements on the canvas. If some elements are selected when the script is executed, then the script will only process the selected elements. The script is useful when, for example, you want to bring to front all the arrows, or want to change the color of all the text elements, etc.
 |
+
+## Select Similar Elements
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Select%20Similar%20Elements.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script allows you to streamline your Obsidian-Excalidraw workflows by enabling the selection of elements based on similar properties. you can precisely define which attributes such as stroke color, fill style, font family, and more, should match for selection. It's perfect for large canvases where manual selection would be cumbersome. You can either run the script to find and select matching elements across the entire scene, or define a specific group of elements to apply the selection criteria within a defined timeframe.
 |
+
+## Set background color of unclosed line object by adding a shadow clone
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20background%20color%20of%20unclosed%20line%20object%20by%20adding%20a%20shadow%20clone.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Use this script to set the background color of unclosed (i.e. open) line and freedraw objects by creating a clone of the object. The script will set the stroke color of the clone to transparent and will add a straight line to close the object. Use settings to define the default background color, the fill style, and the strokeWidth of the clone. By default the clone will be grouped with the original object, you can disable this also in settings.
 |
+
+## Set Dimensions
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Dimensions.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Currently there is no way to specify the exact location and size of objects in Excalidraw. You can bridge this gap with the following simple script.
 |
+
+## Set Font Family
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Font%20Family.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Sets font family of the text block (Virgil, Helvetica, Cascadia). Useful if you want to set a keyboard shortcut for selecting font family.
 |
+
+## Set Grid
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Grid.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | The default grid size in Excalidraw is 20. Currently there is no way to change the grid size via the user interface. This script offers a way to bridge this gap.
 |
+
+## Set Link Alias
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Link%20Alias.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Iterates all of the links in the selected TextElements and prompts the user to set or modify the alias for each link found.
 |
+
+## Set Stroke Width of Selected Elements
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Stroke%20Width%20of%20Selected%20Elements.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script will set the stroke width of selected elements. This is helpful, for example, when you scale freedraw sketches and want to reduce or increase their line width.
 |
+
+## Set Text Alignment
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Set%20Text%20Alignment.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Sets text alignment of text block (cetner, right, left). Useful if you want to set a keyboard shortcut for selecting text alignment.
 |
+
+## Shade Master
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Shade%20Master.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | You can modify the colors of SVG images, embedded files, and Excalidraw elements in a drawing by changing Hue, Saturation, Lightness and Transparency; and if only a single SVG or nested Excalidraw drawing is selected, then you can remap image colors.
 |
+
+## Slideshow
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Slideshow.md
+```
+
+
+## Split Ellipse
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Split%20Ellipse.md
+```
+| Author | @GColoy |
| Source | File on GitHub |
| Description | This script splits an ellipse at any point where a line intersects it. If no lines are selected, it will use every line that intersects the ellipse. Otherwise, it will only use the selected lines. If there is no intersecting line, the ellipse will be converted into a line object. There is also the option to close the object along the cut, which will close the cut in the shape of the line.

 Tip: To use an ellipse as the cutting object, you first have to use this script on it, since it will convert the ellipse into a line. |
+
+## Split text by lines
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Split%20text%20by%20lines.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Split lines of text into separate text elements for easier reorganization
 |
+
+## Text Aura
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Text%20Aura.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Select a single text element, or a text element in a container. The container must have a transparent background. The script will add an aura to the text by adding 4 copies of the text each with the inverted stroke color of the original text element and with a very small X and Y offset. The resulting 4 + 1 (original) text elements or containers will be grouped. If you copy a color string on the clipboard before running the script, the script will use that color instead of the inverted color.
 |
+
+## Text to Path
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Text%20to%20Path.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | This script allows you to fit a text element along a selected path: line, arrow, freedraw, ellipse, rectangle, or diamond. You can select either a path or a text element, or both:
+- If only a path is selected, you will be prompted to provide the text.
+- If only a text element is selected and it was previously fitted to a path, the script will use the original path if it is still present in the scene.
+- If both a text and a path are selected, the script will fit the text to the selected path.
+If the path is a perfect circle, you will be prompted to choose whether to fit the text above or below the circle.
+After fitting, the text will no longer be editable as a standard text element or function as a markdown link. Emojis are not supported.
+ |
+
+## Text to Sticky Notes
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Text%20to%20Sticky%20Notes.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Converts selected plain text element to sticky notes by dividing the text element line by line into separate sticky notes. The color of the stikcy note as well as the arrangement of the grid can be configured in plugin settings.
 |
+
+## Toggle Grid
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Toggle%20Grid.md
+```
+| Author | @GColoy |
| Source | File on GitHub |
| Description | Toggles the grid on and off. Especially useful when drawing with just a pen without a mouse or keyboard, as toggling the grid by left-clicking with the pen is sometimes quite tedious. |
+
+## Uniform Size
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Uniform%20size.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description |  The script will standardize the sizes of rectangles, diamonds and ellipses adjusting all the elements to match the largest width and height within the group. |
+
+## Voronoi Diagram Generator
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/VoronoiDiagramGenerator.md
+```
+| Author | @FreeCutter |
| Source | File on GitHub |
| Description | This script generates a Voronoi diagram from selected elements on the drawing canvas.
+
+The following parameters can be set in 'Voronoi Settings' window pop-up once the script is started:
+- Frame width (default: 100)
+- Roughness (default: 0)
+- Stroke width (default: 2)
+- Grouping (default: checked)
+
+Setting parameters could be set back to default values by click on button 'Default'.
+
+See background information about [Voronoi diagram](https://en.wikipedia.org/wiki/Voronoi_diagram) at Wikipedia.
+
+Comments and discussion are welcomed in the [Sketch Your Mind Community](https://community.sketch-your-mind.com)
 |
+
+## Zoom to Fit Selected Elements
+```excalidraw-script-install
+https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/Zoom%20to%20Fit%20Selected%20Elements.md
+```
+| Author | @zsviczian |
| Source | File on GitHub |
| Description | Similar to Excalidraw standard SHIFT+2 feature: Zoom to fit selected elements, but with the ability to zoom to 1000%. Inspiration: [#272](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/272) |
diff --git a/package.json b/package.json
index 77c47772..c822d75e 100644
--- a/package.json
+++ b/package.json
@@ -1,114 +1,114 @@
-{
- "name": "obsidian-excalidraw-plugin",
- "version": "2.2.5",
- "description": "This is an Obsidian.md plugin that lets you view and edit Excalidraw drawings",
- "main": "lib/index.js",
- "types": "lib/index.d.ts",
- "files": [
- "lib/**/*"
- ],
- "scripts": {
- "dev": "cross-env NODE_ENV=development rollup --config rollup.config.mjs",
- "build": "cross-env NODE_ENV=production rollup --config rollup.config.mjs",
- "lib": "cross-env NODE_ENV=lib rollup --config rollup.config.mjs",
- "code": "eslint --max-warnings=0 --ext .ts,.tsx ./src",
- "code:fix": "eslint --max-warnings=0 --ext .ts,.tsx ./src --fix",
- "code:unused": "eslint --max-warnings=0 --ext .ts,.tsx ./src --quiet --format json | node -e \"let d='';process.stdin.on('data',c=>d+=c).on('end',()=>{const r=JSON.parse(d);for(const f of r){for(const m of f.messages||[]){if(m.ruleId==='@typescript-eslint/no-unused-vars'||m.ruleId==='no-unused-vars'){console.log(f.filePath+':'+m.line+':'+m.column+' '+m.ruleId+' '+m.message);}}}})\"",
- "code:escape": "eslint --max-warnings=0 --ext .ts,.tsx ./src --quiet --format json | node -e \"let d='';process.stdin.on('data',c=>d+=c).on('end',()=>{const r=JSON.parse(d);for(const f of r){for(const m of f.messages||[]){if(m.ruleId==='no-useless-escape'){console.log(f.filePath+':'+m.line+':'+m.column+' '+m.ruleId+' '+m.message);}}}})\"",
- "madge": "madge --circular .",
- "doc": "npm run lib && node scripts/generate-script-library.mjs",
- "skill": "npm run lib && node scripts/skill-builder.mjs",
- "mindmap": "node scripts/deploy-mindmap-builder.mjs",
- "lint": "eslint .",
- "lint:fix": "npx prettier --write \"src/**/*.{ts,tsx}\" && eslint --max-warnings=0 --ext .ts,.tsx ./src --fix",
- "repo:export": "node scripts/generate-repository-zip.mjs",
- "repo:update": "node scripts/update-repository.mjs",
- "script-store:build": "node scripts/build-script-store.mjs",
- "script-store:check": "node scripts/build-script-store.mjs --check"
- },
- "keywords": [],
- "author": "",
- "license": "MIT",
- "dependencies": {
- "@lezer/lr": "^1.4.10",
- "@popperjs/core": "^2.11.8",
- "@radix-ui/number": "^1.1.2",
- "@zsviczian/colormaster": "^1.2.2",
- "@zsviczian/excalidraw": "0.18.137",
- "chroma-js": "^3.1.2",
- "clsx": "^2.0.0",
- "es6-promise-pool": "2.5.0",
- "gl-matrix": "^3.4.3",
- "lz-string": "^1.5.0",
- "monkey-around": "^2.3.0",
- "nanoid": "^5.1.16",
- "pako": "^2.1.0",
- "points-on-path": "^0.2.1",
- "polybooljs": "^1.2.0",
- "react": "19.2.8",
- "react-dom": "19.2.8",
- "roughjs": "^4.5.2"
- },
- "devDependencies": {
- "@babel/core": "^7.22.9",
- "@babel/preset-env": "^7.22.10",
- "@babel/preset-react": "^7.22.5",
- "@codemirror/commands": "6.8.1",
- "@codemirror/lang-css": "6.3.1",
- "@codemirror/language": "6.11.0",
- "@codemirror/search": "6.5.11",
- "@codemirror/state": "6.5.0",
- "@codemirror/view": "6.38.6",
- "@excalidraw/prettier-config": "^1.0.2",
- "@lezer/highlight": "1.2.3",
- "@rollup/plugin-babel": "^6.0.3",
- "@rollup/plugin-commonjs": "^29.0.3",
- "@rollup/plugin-json": "^6.1.0",
- "@rollup/plugin-node-resolve": "^15.2.3",
- "@rollup/plugin-replace": "^5.0.2",
- "@rollup/plugin-terser": "^0.4.4",
- "@rollup/plugin-typescript": "^12.1.2",
- "@types/chroma-js": "^3.1.1",
- "@types/js-beautify": "^1.14.0",
- "@types/node": "^22.19.19",
- "@types/react": "19.2.18",
- "@types/react-dom": "19.2.4",
- "@zsviczian/excalidraw-extras-api": "^0.1.1",
- "@zsviczian/rollup-plugin-postprocess": "^1.0.3",
- "cross-env": "^7.0.3",
- "cssnano": "^6.0.2",
- "eslint": "^9.39.4",
- "eslint-config-prettier": "^9.0.0",
- "eslint-plugin-obsidianmd": "^0.4.2",
- "eslint-plugin-prettier": "^5.0.0",
- "jiti": "^2.6.1",
- "obsidian": "1.8.7",
- "postcss": "^8.5.25",
- "prettier": "^3.0.1",
- "rollup": "^4.14.0",
- "rollup-plugin-copy": "^3.5.0",
- "rollup-plugin-visualizer": "^7.0.1",
- "tslib": "^2.8.1",
- "typescript": "5.9.3",
- "uglify-js": "^3.19.3"
- },
- "overrides": {
- "lodash": "^4.18.1",
- "lodash-es": "^4.18.1",
- "serialize-javascript": "^7.0.5",
- "nanoid": "^5.1.16",
- "dompurify": "^3.4.12",
- "fast-uri": "^3.1.4",
- "immutable": "^4.3.9",
- "js-yaml": "^4.3.0",
- "svgo": "^3.3.4"
- },
- "resolutions": {
- "strip-ansi": "^7.0.1"
- },
- "prettier": "@excalidraw/prettier-config",
- "engines": {
- "node": ">=22.0.0",
- "npm": ">=10.0.0"
- }
+{
+ "name": "obsidian-excalidraw-plugin",
+ "version": "2.2.5",
+ "description": "This is an Obsidian.md plugin that lets you view and edit Excalidraw drawings",
+ "main": "lib/index.js",
+ "types": "lib/index.d.ts",
+ "files": [
+ "lib/**/*"
+ ],
+ "scripts": {
+ "dev": "cross-env NODE_ENV=development rollup --config rollup.config.mjs",
+ "build": "cross-env NODE_ENV=production rollup --config rollup.config.mjs",
+ "lib": "cross-env NODE_ENV=lib rollup --config rollup.config.mjs",
+ "code": "eslint --max-warnings=0 --ext .ts,.tsx ./src",
+ "code:fix": "eslint --max-warnings=0 --ext .ts,.tsx ./src --fix",
+ "code:unused": "eslint --max-warnings=0 --ext .ts,.tsx ./src --quiet --format json | node -e \"let d='';process.stdin.on('data',c=>d+=c).on('end',()=>{const r=JSON.parse(d);for(const f of r){for(const m of f.messages||[]){if(m.ruleId==='@typescript-eslint/no-unused-vars'||m.ruleId==='no-unused-vars'){console.log(f.filePath+':'+m.line+':'+m.column+' '+m.ruleId+' '+m.message);}}}})\"",
+ "code:escape": "eslint --max-warnings=0 --ext .ts,.tsx ./src --quiet --format json | node -e \"let d='';process.stdin.on('data',c=>d+=c).on('end',()=>{const r=JSON.parse(d);for(const f of r){for(const m of f.messages||[]){if(m.ruleId==='no-useless-escape'){console.log(f.filePath+':'+m.line+':'+m.column+' '+m.ruleId+' '+m.message);}}}})\"",
+ "madge": "madge --circular .",
+ "doc": "npm run lib && node scripts/generate-script-library.mjs",
+ "skill": "npm run lib && node scripts/skill-builder.mjs",
+ "mindmap": "node scripts/deploy-mindmap-builder.mjs",
+ "lint": "eslint .",
+ "lint:fix": "npx prettier --write \"src/**/*.{ts,tsx}\" && eslint --max-warnings=0 --ext .ts,.tsx ./src --fix",
+ "repo:export": "node scripts/generate-repository-zip.mjs",
+ "repo:update": "node scripts/update-repository.mjs",
+ "script-store:build": "node scripts/build-script-store.mjs",
+ "script-store:check": "node scripts/build-script-store.mjs --check"
+ },
+ "keywords": [],
+ "author": "",
+ "license": "MIT",
+ "dependencies": {
+ "@lezer/lr": "^1.4.10",
+ "@popperjs/core": "^2.11.8",
+ "@radix-ui/number": "^1.1.2",
+ "@zsviczian/colormaster": "^1.2.2",
+ "@zsviczian/excalidraw": "0.18.137",
+ "chroma-js": "^3.1.2",
+ "clsx": "^2.0.0",
+ "es6-promise-pool": "2.5.0",
+ "gl-matrix": "^3.4.3",
+ "lz-string": "^1.5.0",
+ "monkey-around": "^2.3.0",
+ "nanoid": "^5.1.16",
+ "pako": "^2.1.0",
+ "points-on-path": "^0.2.1",
+ "polybooljs": "^1.2.0",
+ "react": "19.2.8",
+ "react-dom": "19.2.8",
+ "roughjs": "^4.5.2"
+ },
+ "devDependencies": {
+ "@babel/core": "^7.22.9",
+ "@babel/preset-env": "^7.22.10",
+ "@babel/preset-react": "^7.22.5",
+ "@codemirror/commands": "6.8.1",
+ "@codemirror/lang-css": "6.3.1",
+ "@codemirror/language": "6.11.0",
+ "@codemirror/search": "6.5.11",
+ "@codemirror/state": "6.5.0",
+ "@codemirror/view": "6.38.6",
+ "@excalidraw/prettier-config": "^1.0.2",
+ "@lezer/highlight": "1.2.3",
+ "@rollup/plugin-babel": "^6.0.3",
+ "@rollup/plugin-commonjs": "^29.0.3",
+ "@rollup/plugin-json": "^6.1.0",
+ "@rollup/plugin-node-resolve": "^15.2.3",
+ "@rollup/plugin-replace": "^5.0.2",
+ "@rollup/plugin-terser": "^0.4.4",
+ "@rollup/plugin-typescript": "^12.1.2",
+ "@types/chroma-js": "^3.1.1",
+ "@types/js-beautify": "^1.14.0",
+ "@types/node": "^22.19.19",
+ "@types/react": "19.2.18",
+ "@types/react-dom": "19.2.4",
+ "@zsviczian/excalidraw-extras-api": "^0.1.1",
+ "@zsviczian/rollup-plugin-postprocess": "^1.0.3",
+ "cross-env": "^7.0.3",
+ "cssnano": "^6.0.2",
+ "eslint": "^9.39.4",
+ "eslint-config-prettier": "^9.0.0",
+ "eslint-plugin-obsidianmd": "^0.4.2",
+ "eslint-plugin-prettier": "^5.0.0",
+ "jiti": "^2.6.1",
+ "obsidian": "1.8.7",
+ "postcss": "^8.5.25",
+ "prettier": "^3.0.1",
+ "rollup": "^4.14.0",
+ "rollup-plugin-copy": "^3.5.0",
+ "rollup-plugin-visualizer": "^7.0.1",
+ "tslib": "^2.8.1",
+ "typescript": "5.9.3",
+ "uglify-js": "^3.19.3"
+ },
+ "overrides": {
+ "lodash": "^4.18.1",
+ "lodash-es": "^4.18.1",
+ "serialize-javascript": "^7.0.5",
+ "nanoid": "^5.1.16",
+ "dompurify": "^3.4.12",
+ "fast-uri": "^3.1.4",
+ "immutable": "^4.3.9",
+ "js-yaml": "^4.3.0",
+ "svgo": "^3.3.4"
+ },
+ "resolutions": {
+ "strip-ansi": "^7.0.1"
+ },
+ "prettier": "@excalidraw/prettier-config",
+ "engines": {
+ "node": ">=22.0.0",
+ "npm": ">=10.0.0"
+ }
}
\ No newline at end of file
diff --git a/rollup.config.mjs b/rollup.config.mjs
index b86ffb3c..934bcf3c 100644
--- a/rollup.config.mjs
+++ b/rollup.config.mjs
@@ -1,4 +1,5 @@
import { nodeResolve } from '@rollup/plugin-node-resolve';
+import { execFileSync } from 'node:child_process';
import zlib from 'node:zlib';
import visualizer from 'rollup-plugin-visualizer';
import commonjs from '@rollup/plugin-commonjs';
@@ -32,7 +33,59 @@ const absolutePath = path.resolve(DIST_FOLDER);
fs.mkdirSync(absolutePath, { recursive: true });
const isProd = (process.env.NODE_ENV === "production");
const isLib = (process.env.NODE_ENV === "lib");
-console.log(`Running: ${process.env.NODE_ENV}; isProd: ${isProd}; isLib: ${isLib}`);
+
+const DEFAULT_PLUGIN_REPOSITORY = {
+ owner: "zsviczian",
+ name: "obsidian-excalidraw-plugin",
+ ref: "master",
+};
+
+const resolvePluginRepositoryContext = () => {
+ const repository = { ...DEFAULT_PLUGIN_REPOSITORY };
+
+ try {
+ const remoteUrl = execFileSync("git", ["remote", "get-url", "origin"], {
+ cwd: process.cwd(),
+ encoding: "utf8",
+ stdio: ["ignore", "pipe", "ignore"],
+ }).trim();
+ const match = remoteUrl.match(
+ /github\.com[:/]([^/]+)\/([^/]+?)(?:\.git)?$/i,
+ );
+ if (match) {
+ repository.owner = match[1];
+ repository.name = match[2];
+ }
+
+ const branch = execFileSync("git", ["branch", "--show-current"], {
+ cwd: process.cwd(),
+ encoding: "utf8",
+ stdio: ["ignore", "pipe", "ignore"],
+ }).trim();
+ if (branch) {
+ repository.ref = branch;
+ return repository;
+ }
+
+ const commit = execFileSync("git", ["rev-parse", "HEAD"], {
+ cwd: process.cwd(),
+ encoding: "utf8",
+ stdio: ["ignore", "pipe", "ignore"],
+ }).trim();
+ if (commit) {
+ repository.ref = commit;
+ }
+ } catch {
+ // Source archives do not include .git. Keep canonical release defaults.
+ }
+
+ return repository;
+};
+
+const pluginRepository = resolvePluginRepositoryContext();
+console.log(
+ `Running: ${process.env.NODE_ENV}; isProd: ${isProd}; isLib: ${isLib}; repository: ${pluginRepository.owner}/${pluginRepository.name}@${pluginRepository.ref}`,
+);
// Add non-English locales here to embed them as compressed payloads in main.js.
@@ -301,6 +354,9 @@ const getRollupPlugins = (tsconfig, ...plugins) => [
replace({
preventAssignment: true,
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV),
+ __PLUGIN_REPOSITORY_OWNER__: JSON.stringify(pluginRepository.owner),
+ __PLUGIN_REPOSITORY_NAME__: JSON.stringify(pluginRepository.name),
+ __PLUGIN_REPOSITORY_REF__: JSON.stringify(pluginRepository.ref),
}),
commonjs(),
nodeResolve({ browser: true, preferBuiltins: false }),
diff --git a/scripts/build-script-store.mjs b/scripts/build-script-store.mjs
index a7fe0c64..b74735a8 100644
--- a/scripts/build-script-store.mjs
+++ b/scripts/build-script-store.mjs
@@ -3,7 +3,6 @@ import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
-const log = (...args) => console.log(...args);
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const scriptsDir = path.join(root, "ea-scripts");
const catalogPath = path.join(scriptsDir, "script-store.json");
@@ -12,12 +11,12 @@ const directoryInfoPath = path.join(scriptsDir, "directory-info.json");
const checkOnly = process.argv.includes("--check");
const FEATURED_CATEGORY = "Editors Picks";
-const catalog = JSON.parse(fs.readFileSync(catalogPath, "utf8"));
-
const fail = (message) => {
throw new Error(`[script-store] ${message}`);
};
+const catalog = JSON.parse(fs.readFileSync(catalogPath, "utf8"));
+
const escapeHtml = (value) =>
String(value ?? "")
.replaceAll("&", "&")
@@ -34,35 +33,34 @@ const validateCatalog = () => {
fail("Catalog must contain categories[] and scripts[].");
}
- const categoryNames = new Set();
+ const categories = new Set();
for (const category of catalog.categories) {
- if (!category?.name || categoryNames.has(category.name)) {
+ if (!category?.name || categories.has(category.name)) {
fail(`Invalid or duplicate category: ${category?.name ?? ""}`);
}
- categoryNames.add(category.name);
+ categories.add(category.name);
}
- const scriptNames = new Set();
- const scriptFiles = new Set();
+ const names = new Set();
+ const files = new Set();
for (const script of catalog.scripts) {
if (!script?.name || !script?.file || !script?.installUrl) {
fail(`Script entry is missing name, file, or installUrl: ${JSON.stringify(script)}`);
}
- if (scriptNames.has(script.name)) {
+ if (names.has(script.name)) {
fail(`Duplicate script name: ${script.name}`);
}
- if (scriptFiles.has(script.file)) {
+ if (files.has(script.file)) {
fail(`Duplicate script file: ${script.file}`);
}
- scriptNames.add(script.name);
- scriptFiles.add(script.file);
+ names.add(script.name);
+ files.add(script.file);
- const filePath = path.join(scriptsDir, script.file);
- if (!fs.existsSync(filePath) || !fs.statSync(filePath).isFile()) {
+ if (!fs.existsSync(path.join(scriptsDir, script.file))) {
fail(`Missing script file: ea-scripts/${script.file}`);
}
for (const category of script.categories ?? []) {
- if (!categoryNames.has(category)) {
+ if (!categories.has(category)) {
fail(`Unknown category "${category}" on ${script.name}`);
}
}
@@ -92,20 +90,20 @@ const categoryScripts = (categoryName) =>
const generateLegacyIndex = () => {
const current = fs.readFileSync(legacyIndexPath, "utf8");
const newline = current.includes("\r\n") ? "\r\n" : "\n";
- const marker = "# List of available scripts";
+ const listMarker = "# List of available scripts";
const generatedMarker =
- "";
- const markerIndex = current.indexOf(marker);
- if (markerIndex < 0) {
- fail(`Could not find "${marker}" in ea-scripts/index-new.md`);
+ "";
+ const listIndex = current.indexOf(listMarker);
+ if (listIndex < 0) {
+ fail(`Could not find "${listMarker}" in ea-scripts/index-new.md`);
}
- const generatedMarkerIndex = current.indexOf(generatedMarker);
+ const existingGeneratedIndex = current.indexOf(generatedMarker);
const introEnd =
- generatedMarkerIndex >= 0 && generatedMarkerIndex < markerIndex
- ? generatedMarkerIndex
- : markerIndex;
+ existingGeneratedIndex >= 0 && existingGeneratedIndex < listIndex
+ ? existingGeneratedIndex
+ : listIndex;
const intro = current.slice(0, introEnd).trimEnd();
- const lines = [intro, "", generatedMarker, marker, ""];
+ const lines = [intro, "", generatedMarker, listMarker, ""];
for (const category of catalog.categories) {
lines.push(`## ${category.name}`);
@@ -137,76 +135,137 @@ const generateLegacyIndex = () => {
return `${lines.join(newline).trimEnd()}${newline}`;
};
-const getGitMtime = (relativePath, existingMtime) => {
+const getGitOutput = (args) => {
try {
- const status = execFileSync(
- "git",
- ["status", "--porcelain", "--", relativePath],
- { cwd: root, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] },
- ).trim();
- if (status) {
- return fs.statSync(path.join(root, relativePath)).mtimeMs;
- }
- const seconds = execFileSync(
- "git",
- ["log", "-1", "--format=%ct", "--", relativePath],
- { cwd: root, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] },
- ).trim();
- if (seconds) {
- return Number(seconds) * 1000;
- }
+ return execFileSync("git", args, {
+ cwd: root,
+ encoding: "utf8",
+ stdio: ["ignore", "pipe", "ignore"],
+ });
} catch {
- // Exported repository ZIPs do not contain .git. Preserve the existing
- // compatibility timestamp there; new files use their filesystem mtime.
+ return null;
}
- return existingMtime ?? fs.statSync(path.join(root, relativePath)).mtimeMs;
};
-const generateDirectoryInfo = () => {
- const existing = fs.existsSync(directoryInfoPath)
- ? JSON.parse(fs.readFileSync(directoryInfoPath, "utf8"))
- : [];
- const existingByName = new Map(existing.map((entry) => [entry.fname, entry.mtime]));
- const localFiles = fs
- .readdirSync(scriptsDir, { withFileTypes: true })
- .filter((entry) => entry.isFile())
- .map((entry) => entry.name);
+const getHeadDirectoryInfo = () => {
+ const source = getGitOutput(["show", "HEAD:ea-scripts/directory-info.json"]);
+ if (!source) {
+ return null;
+ }
+ try {
+ return JSON.parse(source);
+ } catch {
+ return null;
+ }
+};
- // Repository export ZIPs intentionally omit media such as script SVG icons.
- // Preserve their existing legacy metadata when .git is unavailable so a
- // maintainer can safely run this generator on an exported repository.
- const filenames = fs.existsSync(path.join(root, ".git"))
- ? localFiles
- : [...new Set([...localFiles, ...existingByName.keys()])];
+const getChangedManagedFiles = () => {
+ const status = getGitOutput([
+ "status",
+ "--porcelain=v1",
+ "--untracked-files=all",
+ "--",
+ "ea-scripts",
+ ]);
+ if (status === null) {
+ return null;
+ }
- return filenames
- .map((fname) => {
- const localPath = path.join(scriptsDir, fname);
- const mtime = fs.existsSync(localPath)
- ? getGitMtime(
- path.posix.join("ea-scripts", fname),
- existingByName.get(fname),
- )
- : existingByName.get(fname);
- return { fname, mtime: Math.round(mtime) };
- })
- .sort((a, b) => a.fname.localeCompare(b.fname));
+ const managed = new Set();
+ for (const script of catalog.scripts) {
+ managed.add(script.file);
+ managed.add(script.file.replace(/\.(?:md|js)$/i, ".svg"));
+ }
+
+ const changed = new Set();
+ for (const line of status.split(/\r?\n/)) {
+ if (line.length < 4) {
+ continue;
+ }
+ let filePath = line.slice(3).trim();
+ const renameSeparator = filePath.lastIndexOf(" -> ");
+ if (renameSeparator >= 0) {
+ filePath = filePath.slice(renameSeparator + 4);
+ }
+ if (filePath.startsWith('"') && filePath.endsWith('"')) {
+ filePath = filePath.slice(1, -1);
+ }
+ const prefix = "ea-scripts/";
+ if (!filePath.startsWith(prefix)) {
+ continue;
+ }
+ const filename = filePath.slice(prefix.length);
+ if (managed.has(filename)) {
+ changed.add(filename);
+ }
+ }
+ return changed;
+};
+
+const updateDirectoryInfoForChangedScripts = () => {
+ const existing = JSON.parse(fs.readFileSync(directoryInfoPath, "utf8"));
+ const changed = getChangedManagedFiles();
+ const headEntries = getHeadDirectoryInfo();
+
+ // Exported repository ZIPs do not contain .git. In that environment the
+ // historical mtimes are intentionally left completely untouched.
+ if (changed === null || headEntries === null || changed.size === 0) {
+ return null;
+ }
+
+ const headByName = new Map(headEntries.map((entry) => [entry.fname, entry.mtime]));
+ const currentByName = new Map(existing.map((entry) => [entry.fname, entry]));
+ let nextMtime = Date.now();
+
+ for (const filename of changed) {
+ const localPath = path.join(scriptsDir, filename);
+ if (!fs.existsSync(localPath)) {
+ continue;
+ }
+ const current = currentByName.get(filename);
+ const headMtime = headByName.get(filename);
+
+ // If this PR already changed the mtime, keep it. This makes repeated
+ // script-store:build runs idempotent and prevents timestamp churn.
+ if (current && headMtime !== undefined && current.mtime !== headMtime) {
+ continue;
+ }
+
+ const mtime = Math.max(nextMtime++, (current?.mtime ?? headMtime ?? 0) + 1);
+ if (current) {
+ current.mtime = mtime;
+ } else {
+ const entry = { fname: filename, mtime };
+ existing.push(entry);
+ currentByName.set(filename, entry);
+ }
+ }
+
+ return existing;
};
validateCatalog();
if (checkOnly) {
- log(
+ console.log(
`[script-store] Catalog OK: ${catalog.scripts.length} scripts in ${catalog.categories.length} categories.`,
);
process.exit(0);
}
-fs.writeFileSync(legacyIndexPath, generateLegacyIndex());
-fs.writeFileSync(
- directoryInfoPath,
- `${JSON.stringify(generateDirectoryInfo(), null, 2)}\n`,
-);
-log(
- `[script-store] Updated legacy index and directory-info.json from ${catalog.scripts.length} catalog entries.`,
+const legacyIndex = generateLegacyIndex();
+if (legacyIndex !== fs.readFileSync(legacyIndexPath, "utf8")) {
+ fs.writeFileSync(legacyIndexPath, legacyIndex);
+}
+
+const directoryInfo = updateDirectoryInfoForChangedScripts();
+if (directoryInfo) {
+ const directoryInfoSource = `${JSON.stringify(directoryInfo, null, 2)}\n`;
+ if (directoryInfoSource !== fs.readFileSync(directoryInfoPath, "utf8")) {
+ fs.writeFileSync(directoryInfoPath, directoryInfoSource);
+ }
+}
+
+console.log(
+ `[script-store] Generated legacy catalog metadata for ${catalog.scripts.length} scripts.`,
);
diff --git a/scripts/excalidraw-docs-generator-core.mjs b/scripts/excalidraw-docs-generator-core.mjs
index 634c8561..9e732037 100644
--- a/scripts/excalidraw-docs-generator-core.mjs
+++ b/scripts/excalidraw-docs-generator-core.mjs
@@ -924,9 +924,9 @@ The AI training material is maintained independently from publishing PRs; do not
- Add or update the script under [ea-scripts](https://github.com/zsviczian/obsidian-excalidraw-plugin/tree/master/ea-scripts).
- Add or update the preview image under [images](https://github.com/zsviczian/obsidian-excalidraw-plugin/tree/master/images).
-- Add or update the script's single catalog entry in [ea-scripts/script-store.json](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/script-store.json).
-- Run \`npm run script-store:build\` to regenerate the backward-compatible [ea-scripts/index-new.md](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/index-new.md) and [ea-scripts/directory-info.json](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/directory-info.json). Do not hand-edit those generated compatibility files.
-- Run \`npm run script-store:check\` before opening the PR. The current plugin detects updates from GitHub file SHAs; \`directory-info.json\` is retained for older plugin versions and as a fallback.
+- Add or update the script's catalog entry in [ea-scripts/script-store.json](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/script-store.json).
+- Run \`npm run script-store:check\`, then \`npm run script-store:build\`. The build regenerates the backward-compatible \`index-new.md\` catalog and advances \`directory-info.json\` only for script/icon files that actually changed.
+- Do not hand-edit unrelated \`mtime\` values in [ea-scripts/directory-info.json](https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/directory-info.json). Historical mtimes are part of the plugin's update-detection contract.
- Keep the PR focused on the script and its generated references.
### How to use the Script Examples
diff --git a/src/constants/safeUrls.ts b/src/constants/safeUrls.ts
index fe14251b..086e3f26 100644
--- a/src/constants/safeUrls.ts
+++ b/src/constants/safeUrls.ts
@@ -42,6 +42,47 @@ export function buildSafeUrl(
return `https://${domain}${path}`;
}
+// Replaced by Rollup from the checked-out Git repository and branch.
+declare const __PLUGIN_REPOSITORY_OWNER__: string;
+declare const __PLUGIN_REPOSITORY_NAME__: string;
+declare const __PLUGIN_REPOSITORY_REF__: string;
+
+export const PLUGIN_REPOSITORY_OWNER = __PLUGIN_REPOSITORY_OWNER__;
+export const PLUGIN_REPOSITORY_NAME = __PLUGIN_REPOSITORY_NAME__;
+export const PLUGIN_REPOSITORY_REF = __PLUGIN_REPOSITORY_REF__;
+
+const PLUGIN_REPOSITORY_PATH = [
+ PLUGIN_REPOSITORY_OWNER,
+ PLUGIN_REPOSITORY_NAME,
+] as const;
+
+const pathParts = (value: string): string[] =>
+ value
+ .split("/")
+ .filter(Boolean)
+ .map((part) => encodeURIComponent(part));
+
+export const getPluginRepositoryRawUrl = (repositoryPath: string): string =>
+ buildSafeUrl(
+ ["raw", "githubusercontent", "com"],
+ [
+ ...PLUGIN_REPOSITORY_PATH,
+ ...pathParts(PLUGIN_REPOSITORY_REF),
+ ...pathParts(repositoryPath),
+ ],
+ );
+
+export const getPluginRepositoryBlobUrl = (repositoryPath: string): string =>
+ buildSafeUrl(
+ ["github", "com"],
+ [
+ ...PLUGIN_REPOSITORY_PATH,
+ "blob",
+ ...pathParts(PLUGIN_REPOSITORY_REF),
+ ...pathParts(repositoryPath),
+ ],
+ );
+
// Helper to enforce type structure in the registry
const defineUrl = (url: string, purpose: string) => ({ url, purpose });
@@ -51,17 +92,22 @@ const defineUrl = (url: string, purpose: string) => ({ url, purpose });
export const URL_REGISTRY = {
RAW_GITHUBUSERCONTENT_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_MASTER_EA_SCRIPTS_DIRECTORY_INFO_JSON:
defineUrl(
- "https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/directory-info.json",
- UrlPurpose.APP_LOGIC,
- ),
- API_GITHUB_COM_REPOS_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_CONTENTS_EA_SCRIPTS:
- defineUrl(
- "https://api.github.com/repos/zsviczian/obsidian-excalidraw-plugin/contents/ea-scripts?ref=master",
+ getPluginRepositoryRawUrl("ea-scripts/directory-info.json"),
UrlPurpose.APP_LOGIC,
),
RAW_GITHUBUSERCONTENT_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_MASTER_EA_SCRIPTS_SCRIPT_STORE_JSON:
defineUrl(
- "https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/script-store.json",
+ getPluginRepositoryRawUrl("ea-scripts/script-store.json"),
+ UrlPurpose.APP_LOGIC,
+ ),
+ GITHUB_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_BLOB_MASTER_DOCS_EA_SCRIPTING_MD:
+ defineUrl(
+ getPluginRepositoryBlobUrl("docs/ea-scripting.md"),
+ UrlPurpose.DOCS,
+ ),
+ RAW_GITHUBUSERCONTENT_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_MASTER_IMAGE_BANNER_AUTOMATE_ANYTHING_PNG:
+ defineUrl(
+ getPluginRepositoryRawUrl("images/banner-automate-anything.png"),
UrlPurpose.APP_LOGIC,
),
API_GITHUB_COM_REPOS_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_RELEASES: defineUrl(
@@ -245,11 +291,6 @@ export const URL_REGISTRY = {
"https://github.com/zsviczian/obsidian-excalidraw-plugin/pull",
UrlPurpose.RELEASE_LOG,
),
- GITHUB_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_BLOB_MASTER_EA_SCRIPTS_README_MD:
- defineUrl(
- "https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/master/ea-scripts/README.md",
- UrlPurpose.DOCS,
- ),
GITHUB_COM_SREEDHARSREERAM: defineUrl(
"https://github.com/sreedharsreeram",
UrlPurpose.RELEASE_LOG,
@@ -290,7 +331,7 @@ export const URL_REGISTRY = {
),
RAW_GITHUBUSERCONTENT_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_MASTER_EA_SCRIPTS_INDEX_NEW_MD:
defineUrl(
- "https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/index-new.md",
+ getPluginRepositoryRawUrl("ea-scripts/index-new.md"),
UrlPurpose.APP_LOGIC,
),
WWW_W3SCHOOLS_COM_COLORS_DEFAULT_ASP: defineUrl(
diff --git a/src/lang/locale/en.ts b/src/lang/locale/en.ts
index e1e09833..d083b608 100644
--- a/src/lang/locale/en.ts
+++ b/src/lang/locale/en.ts
@@ -1524,25 +1524,21 @@ export default {
SCRIPT_INSTALL_ERROR_NOTICE: "Error installing script",
SCRIPT_STORE_TITLE: "Community scripts",
SCRIPT_STORE_LOADING: "Loading community scripts...",
- SCRIPT_STORE_AUTOMATE_TITLE: "Excalidraw Automate",
- SCRIPT_STORE_AUTOMATE_DESC:
- "Learn the scripting engine and turn repeated canvas work into one-click workflows.",
- SCRIPT_STORE_AUTOMATE_ACTION: "Watch the introduction",
- SCRIPT_STORE_AI_TITLE: "Create scripts with AI",
- SCRIPT_STORE_AI_DESC:
- "Use the Excalidraw Automate reference material with AI to build scripts for your own workflow.",
- SCRIPT_STORE_AI_ACTION: "Watch AI scripting superpowers",
- SCRIPT_STORE_PUBLISH_TITLE: "Share a script",
- SCRIPT_STORE_PUBLISH_DESC:
- "Community scripts live in one reviewed repository. Add your script and catalog entry in a focused pull request.",
- SCRIPT_STORE_PUBLISH_ACTION: "Publishing guide",
+ SCRIPT_STORE_MASTERY_TITLE: "Excalidraw Mastery",
+ SCRIPT_STORE_MASTERY_DESC: "Master Excalidraw and Visual PKM",
+ SCRIPT_STORE_COFFEE_TITLE: "Buy me a coffee",
+ SCRIPT_STORE_COFFEE_DESC: "Support continued Excalidraw development",
+ SCRIPT_STORE_SCRIPTING_BANNER_ALT: "Automate anything with Excalidraw scripts",
+ SCRIPT_STORE_SCRIPTING_BANNER_CAPTION:
+ "Create your own Excalidraw scripts. Click here to learn more.",
SCRIPT_STORE_UPDATES_TITLE: "Updates available",
SCRIPT_STORE_UPDATES_DESC:
"Update installed community scripts without hunting through the catalog.",
SCRIPT_STORE_UPDATE_ALL: "Update all",
SCRIPT_STORE_UPDATING: "Updating...",
SCRIPT_STORE_UPDATE_ALL_DONE: "All community scripts are up to date.",
- SCRIPT_STORE_UPDATE_ALL_PARTIAL: "Some scripts could not be updated. Failed:",
+ SCRIPT_STORE_UPDATE_ALL_PARTIAL:
+ "Some scripts could not be updated. Failed:",
SCRIPT_STORE_BROWSE_TITLE: "Browse scripts",
SCRIPT_STORE_BROWSE_DESC: "Search by name, author, description, or category.",
SCRIPT_STORE_SEARCH_PLACEHOLDER: "Search community scripts",
diff --git a/src/lang/locale/es.ts b/src/lang/locale/es.ts
index 3ea94415..3113b30b 100644
--- a/src/lang/locale/es.ts
+++ b/src/lang/locale/es.ts
@@ -1867,26 +1867,18 @@ Si quieres ver lo que ya es posible hoy, aquí tienes una presentación de las f
//carveout.ts
NEW_DRAWING_TIMEOUT:
"Archivo no encontrado. El nuevo dibujo de Excalidraw está tardando demasiado en crearse. Inténtelo de nuevo.",
-
SCRIPT_INSTALLED_NOTICE: "Instalado",
SCRIPT_INSTALL_ERROR_NOTICE: "Error al instalar el script",
SCRIPT_STORE_TITLE: "Scripts de la comunidad",
SCRIPT_STORE_LOADING: "Cargando scripts de la comunidad...",
- SCRIPT_STORE_AUTOMATE_TITLE: "Excalidraw Automate",
- SCRIPT_STORE_AUTOMATE_DESC:
- "Aprende el motor de scripts y convierte tareas repetitivas del lienzo en flujos de trabajo de un clic.",
- SCRIPT_STORE_AUTOMATE_ACTION: "Ver la introducción",
- SCRIPT_STORE_AI_TITLE: "Crea scripts con IA",
- SCRIPT_STORE_AI_DESC:
- "Usa el material de referencia de Excalidraw Automate con IA para crear scripts para tu propio flujo de trabajo.",
- SCRIPT_STORE_AI_ACTION: "Ver superpoderes de scripting con IA",
- SCRIPT_STORE_PUBLISH_TITLE: "Comparte un script",
- SCRIPT_STORE_PUBLISH_DESC:
- "Los scripts de la comunidad viven en un repositorio revisado. Añade tu script y su entrada de catálogo en un pull request enfocado.",
- SCRIPT_STORE_PUBLISH_ACTION: "Guía de publicación",
+ SCRIPT_STORE_MASTERY_TITLE: "Excalidraw Mastery",
+ SCRIPT_STORE_MASTERY_DESC: "Domina Excalidraw y Visual PKM",
+ SCRIPT_STORE_COFFEE_TITLE: "Invítame a un café",
+ SCRIPT_STORE_COFFEE_DESC: "Apoya el desarrollo continuo de Excalidraw",
+ SCRIPT_STORE_SCRIPTING_BANNER_ALT: "Automatiza cualquier cosa con scripts de Excalidraw",
+ SCRIPT_STORE_SCRIPTING_BANNER_CAPTION: "Crea tus propios scripts de Excalidraw. Haz clic aquí para saber más.",
SCRIPT_STORE_UPDATES_TITLE: "Actualizaciones disponibles",
- SCRIPT_STORE_UPDATES_DESC:
- "Actualiza los scripts instalados sin buscarlos por todo el catálogo.",
+ SCRIPT_STORE_UPDATES_DESC: "Actualiza los scripts instalados sin buscarlos por todo el catálogo.",
SCRIPT_STORE_UPDATE_ALL: "Actualizar todo",
SCRIPT_STORE_UPDATING: "Actualizando...",
SCRIPT_STORE_UPDATE_ALL_DONE: "Todos los scripts de la comunidad están actualizados.",
diff --git a/src/lang/locale/ru.ts b/src/lang/locale/ru.ts
index fca2e437..246068b4 100644
--- a/src/lang/locale/ru.ts
+++ b/src/lang/locale/ru.ts
@@ -1509,23 +1509,16 @@ export default {
//carveout.ts
NEW_DRAWING_TIMEOUT:
"Файл не найден. Создание нового рисунка Excalidraw занимает слишком много времени. Пожалуйста, попробуйте снова.",
-
SCRIPT_INSTALLED_NOTICE: "Установлено",
SCRIPT_INSTALL_ERROR_NOTICE: "Ошибка установки скрипта",
SCRIPT_STORE_TITLE: "Скрипты сообщества",
SCRIPT_STORE_LOADING: "Загрузка скриптов сообщества...",
- SCRIPT_STORE_AUTOMATE_TITLE: "Excalidraw Automate",
- SCRIPT_STORE_AUTOMATE_DESC:
- "Освойте движок скриптов и превратите повторяющиеся действия на холсте в сценарии одним нажатием.",
- SCRIPT_STORE_AUTOMATE_ACTION: "Смотреть введение",
- SCRIPT_STORE_AI_TITLE: "Создавайте скрипты с ИИ",
- SCRIPT_STORE_AI_DESC:
- "Используйте справочные материалы Excalidraw Automate вместе с ИИ для создания собственных скриптов.",
- SCRIPT_STORE_AI_ACTION: "Смотреть видео об ИИ-скриптинге",
- SCRIPT_STORE_PUBLISH_TITLE: "Поделиться скриптом",
- SCRIPT_STORE_PUBLISH_DESC:
- "Скрипты сообщества хранятся в одном проверяемом репозитории. Добавьте скрипт и запись каталога в отдельном pull request.",
- SCRIPT_STORE_PUBLISH_ACTION: "Руководство по публикации",
+ SCRIPT_STORE_MASTERY_TITLE: "Excalidraw Mastery",
+ SCRIPT_STORE_MASTERY_DESC: "Освойте Excalidraw и Visual PKM",
+ SCRIPT_STORE_COFFEE_TITLE: "Купить мне кофе",
+ SCRIPT_STORE_COFFEE_DESC: "Поддержать дальнейшую разработку Excalidraw",
+ SCRIPT_STORE_SCRIPTING_BANNER_ALT: "Автоматизируйте что угодно с помощью скриптов Excalidraw",
+ SCRIPT_STORE_SCRIPTING_BANNER_CAPTION: "Создавайте собственные скрипты Excalidraw. Нажмите, чтобы узнать больше.",
SCRIPT_STORE_UPDATES_TITLE: "Доступны обновления",
SCRIPT_STORE_UPDATES_DESC: "Обновляйте установленные скрипты без поиска по каталогу.",
SCRIPT_STORE_UPDATE_ALL: "Обновить все",
diff --git a/src/lang/locale/zh-cn.ts b/src/lang/locale/zh-cn.ts
index 710a9e49..43eb2196 100644
--- a/src/lang/locale/zh-cn.ts
+++ b/src/lang/locale/zh-cn.ts
@@ -1820,20 +1820,16 @@ Obsidian 的 Excalidraw 插件远不只是画图工具。由于它与 Obsidian
//carveout.ts
NEW_DRAWING_TIMEOUT: "未找到文件。新建 Excalidraw 绘图耗时过长。请重试。",
-
SCRIPT_INSTALLED_NOTICE: "已安装",
SCRIPT_INSTALL_ERROR_NOTICE: "脚本安装失败",
SCRIPT_STORE_TITLE: "社区脚本",
SCRIPT_STORE_LOADING: "正在加载社区脚本...",
- SCRIPT_STORE_AUTOMATE_TITLE: "Excalidraw Automate",
- SCRIPT_STORE_AUTOMATE_DESC: "学习脚本引擎,把重复的画布操作变成一键工作流。",
- SCRIPT_STORE_AUTOMATE_ACTION: "观看介绍",
- SCRIPT_STORE_AI_TITLE: "用 AI 创建脚本",
- SCRIPT_STORE_AI_DESC: "将 Excalidraw Automate 参考资料与 AI 配合使用,为自己的工作流创建脚本。",
- SCRIPT_STORE_AI_ACTION: "观看 AI 脚本超能力视频",
- SCRIPT_STORE_PUBLISH_TITLE: "分享脚本",
- SCRIPT_STORE_PUBLISH_DESC: "社区脚本集中在一个经过审核的仓库中。通过专注的拉取请求添加脚本和目录条目。",
- SCRIPT_STORE_PUBLISH_ACTION: "发布指南",
+ SCRIPT_STORE_MASTERY_TITLE: "Excalidraw Mastery",
+ SCRIPT_STORE_MASTERY_DESC: "掌握 Excalidraw 与 Visual PKM",
+ SCRIPT_STORE_COFFEE_TITLE: "请我喝杯咖啡",
+ SCRIPT_STORE_COFFEE_DESC: "支持 Excalidraw 持续开发",
+ SCRIPT_STORE_SCRIPTING_BANNER_ALT: "用 Excalidraw 脚本自动化任何事情",
+ SCRIPT_STORE_SCRIPTING_BANNER_CAPTION: "创建你自己的 Excalidraw 脚本。点击这里了解更多。",
SCRIPT_STORE_UPDATES_TITLE: "有可用更新",
SCRIPT_STORE_UPDATES_DESC: "无需在目录中逐个查找,即可更新已安装的社区脚本。",
SCRIPT_STORE_UPDATE_ALL: "全部更新",
diff --git a/src/lang/locale/zh-tw.ts b/src/lang/locale/zh-tw.ts
index 729f228c..1bab6536 100644
--- a/src/lang/locale/zh-tw.ts
+++ b/src/lang/locale/zh-tw.ts
@@ -1820,20 +1820,16 @@ Obsidian 的 Excalidraw 外掛遠不只是畫圖工具。由於它與 Obsidian
//carveout.ts
NEW_DRAWING_TIMEOUT: "找不到檔案。建立新的 Excalidraw 繪圖耗時過長。請重試。",
-
SCRIPT_INSTALLED_NOTICE: "已安裝",
SCRIPT_INSTALL_ERROR_NOTICE: "指令碼安裝失敗",
SCRIPT_STORE_TITLE: "社群指令碼",
SCRIPT_STORE_LOADING: "正在載入社群指令碼...",
- SCRIPT_STORE_AUTOMATE_TITLE: "Excalidraw Automate",
- SCRIPT_STORE_AUTOMATE_DESC: "學習指令碼引擎,把重複的畫布操作變成一鍵工作流程。",
- SCRIPT_STORE_AUTOMATE_ACTION: "觀看介紹",
- SCRIPT_STORE_AI_TITLE: "用 AI 建立指令碼",
- SCRIPT_STORE_AI_DESC: "將 Excalidraw Automate 參考資料與 AI 搭配使用,為自己的工作流程建立指令碼。",
- SCRIPT_STORE_AI_ACTION: "觀看 AI 指令碼超能力影片",
- SCRIPT_STORE_PUBLISH_TITLE: "分享指令碼",
- SCRIPT_STORE_PUBLISH_DESC: "社群指令碼集中在一個經過審核的儲存庫中。透過專注的拉取請求加入指令碼與目錄項目。",
- SCRIPT_STORE_PUBLISH_ACTION: "發佈指南",
+ SCRIPT_STORE_MASTERY_TITLE: "Excalidraw Mastery",
+ SCRIPT_STORE_MASTERY_DESC: "掌握 Excalidraw 與 Visual PKM",
+ SCRIPT_STORE_COFFEE_TITLE: "請我喝杯咖啡",
+ SCRIPT_STORE_COFFEE_DESC: "支持 Excalidraw 持續開發",
+ SCRIPT_STORE_SCRIPTING_BANNER_ALT: "用 Excalidraw 指令碼自動化任何事情",
+ SCRIPT_STORE_SCRIPTING_BANNER_CAPTION: "建立你自己的 Excalidraw 指令碼。點擊這裡了解更多。",
SCRIPT_STORE_UPDATES_TITLE: "有可用更新",
SCRIPT_STORE_UPDATES_DESC: "不必逐一翻找目錄,就能更新已安裝的社群指令碼。",
SCRIPT_STORE_UPDATE_ALL: "全部更新",
diff --git a/src/shared/Dialogs/Messages.ts b/src/shared/Dialogs/Messages.ts
index fac58d38..46ace747 100644
--- a/src/shared/Dialogs/Messages.ts
+++ b/src/shared/Dialogs/Messages.ts
@@ -19,7 +19,7 @@ I build this plugin as a labor of love. Curious about the philosophy behind it?
`,
"2.28.0": `
## New
-- The Community Script Store has been redesigned with searchable script cards, categories, installed-script filtering, richer script details, an updates section, and **Update all**. Update checks now compare downloaded scripts with GitHub file versions while retaining the legacy script index and timestamp metadata as fallbacks for backward compatibility. Publishing a community script now uses a single \`script-store.json\` catalog entry plus a generator for the legacy files.
+- The Community Script Store now has a searchable card-based library, a focused update section with **Update all**, and a compact top area for Excalidraw Mastery, support, and creating your own scripts. Script update detection keeps the existing \`directory-info.json\` modified-time contract.
- Copied Markdown image SVGs now replace embedded base64 images and fonts with short placeholders, making them smaller and easier to share with AI agents when developing custom CSS.
## New from Excalidraw.com
diff --git a/src/shared/Dialogs/ScriptInstallPrompt.ts b/src/shared/Dialogs/ScriptInstallPrompt.ts
index 360a9858..67185757 100644
--- a/src/shared/Dialogs/ScriptInstallPrompt.ts
+++ b/src/shared/Dialogs/ScriptInstallPrompt.ts
@@ -6,28 +6,26 @@ import {
request,
setIcon,
} from "obsidian";
-import ExcalidrawPlugin from "../../core/main";
-import { errorlog } from "../../utils/utils";
-import { log } from "src/utils/debugHelper";
-import { ContentSearcher } from "../components/ContentSearcher";
import {
- getYouTubeThumbnailUrl,
- getYouTubeUrl,
+ getPluginRepositoryBlobUrl,
+ getPluginRepositoryRawUrl,
URLs,
-} from "src/constants/safeUrls";
-import { t } from "src/lang/helpers";
+} from "../../constants/safeUrls";
+import { t } from "../../lang/helpers";
import type {
ScriptStoreCatalog,
ScriptStoreEntry,
ScriptStoreInstallState,
-} from "src/types/scriptStoreTypes";
-import type { GitHubRepositoryContentFile } from "src/types/githubTypes";
+} from "../../types/scriptStoreTypes";
+import { sanitizedFragment, setSanitizedHtml } from "../../utils/htmlUtils";
import {
- getRemoteScriptFiles,
getScriptInstallState,
installScript,
-} from "src/utils/scriptLibraryUtils";
-import { sanitizedFragment, setSanitizedHtml } from "src/utils/htmlUtils";
+ type ScriptLibraryPluginContext,
+} from "../../utils/scriptLibraryUtils";
+import { errorlog } from "../../utils/utils";
+import { log } from "../../utils/debugHelper";
+import { ContentSearcher } from "../components/ContentSearcher";
const LEGACY_URL =
URLs.RAW_GITHUBUSERCONTENT_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_MASTER_EA_SCRIPTS_INDEX_NEW_MD;
@@ -37,6 +35,84 @@ const FEATURED_CATEGORY = "Editors Picks";
type StoreView = "all" | "installed";
+const isRecord = (value: unknown): value is Record =>
+ typeof value === "object" && value !== null;
+
+const isUnknownArray = (value: unknown): value is unknown[] =>
+ Array.isArray(value);
+
+const isStringArray = (value: unknown): value is string[] =>
+ isUnknownArray(value) &&
+ value.every((item: unknown) => typeof item === "string");
+
+const isScriptStoreEntry = (value: unknown): value is ScriptStoreEntry =>
+ isRecord(value) &&
+ typeof value.name === "string" &&
+ typeof value.file === "string" &&
+ typeof value.installUrl === "string" &&
+ typeof value.iconUrl === "string" &&
+ typeof value.author === "string" &&
+ typeof value.authorUrl === "string" &&
+ typeof value.sourceUrl === "string" &&
+ typeof value.descriptionHtml === "string" &&
+ isStringArray(value.categories) &&
+ (value.featuredRank === undefined || typeof value.featuredRank === "number");
+
+const isScriptStoreCategory = (
+ value: unknown,
+): value is ScriptStoreCatalog["categories"][number] =>
+ isRecord(value) &&
+ typeof value.name === "string" &&
+ typeof value.description === "string";
+
+const parseScriptStoreCatalog = (source: string): ScriptStoreCatalog => {
+ const parsed: unknown = JSON.parse(source) as unknown;
+ if (
+ !isRecord(parsed) ||
+ parsed.version !== 1 ||
+ !isUnknownArray(parsed.scripts) ||
+ !parsed.scripts.every(isScriptStoreEntry) ||
+ !isUnknownArray(parsed.categories) ||
+ !parsed.categories.every(isScriptStoreCategory)
+ ) {
+ throw new Error("Unsupported script store catalog");
+ }
+ return {
+ version: parsed.version,
+ scripts: parsed.scripts,
+ categories: parsed.categories,
+ };
+};
+
+const getScriptInstallUrl = (entry: ScriptStoreEntry): string =>
+ getPluginRepositoryRawUrl(`ea-scripts/${entry.file}`);
+
+const getScriptIconUrl = (entry: ScriptStoreEntry): string =>
+ getPluginRepositoryRawUrl(
+ `ea-scripts/${entry.file.replace(/\.(?:md|js)$/i, ".svg")}`,
+ );
+
+const getScriptSourceUrl = (entry: ScriptStoreEntry): string =>
+ getPluginRepositoryBlobUrl(`ea-scripts/${entry.file}`);
+
+const rewriteLegacyInstallUrls = (source: string): string =>
+ source.replace(
+ /(```excalidraw-script-install\s*\r?\n)([^\r\n]+)(\r?\n```)/g,
+ (match, opening: string, installUrl: string, closing: string) => {
+ try {
+ const filename = decodeURIComponent(
+ new URL(installUrl.trim()).pathname.split("/").pop() ?? "",
+ );
+ if (!/\.(?:md|js)$/i.test(filename)) {
+ return match;
+ }
+ return `${opening}${getPluginRepositoryRawUrl(`ea-scripts/${filename}`)}${closing}`;
+ } catch {
+ return match;
+ }
+ },
+ );
+
export class ScriptInstallPrompt extends Modal {
private contentDiv: HTMLDivElement;
private renderComponent: Component;
@@ -45,9 +121,8 @@ export class ScriptInstallPrompt extends Modal {
private selectedCategory = "";
private searchQuery = "";
private storeView: StoreView = "all";
- private remoteFiles: Map | null = null;
- constructor(private plugin: ExcalidrawPlugin) {
+ constructor(private plugin: ScriptLibraryPluginContext) {
super(plugin.app);
}
@@ -55,10 +130,14 @@ export class ScriptInstallPrompt extends Modal {
this.titleEl.setText(t("SCRIPT_STORE_TITLE"));
this.renderComponent = new Component();
this.renderComponent.load();
- this.contentEl.addClass("excalidraw-scriptengine-install");
- this.contentEl.addClass("excalidraw-script-store");
- this.containerEl.addClass("excalidraw-scriptengine-install");
- this.containerEl.addClass("excalidraw-script-store");
+ this.contentEl.classList.add(
+ "excalidraw-scriptengine-install",
+ "excalidraw-script-store",
+ );
+ this.containerEl.classList.add(
+ "excalidraw-scriptengine-install",
+ "excalidraw-script-store",
+ );
this.contentDiv = this.contentEl.createDiv({
cls: "excalidraw-script-store__content",
});
@@ -67,7 +146,7 @@ export class ScriptInstallPrompt extends Modal {
}
private renderLoading(): void {
- this.contentDiv.empty();
+ this.contentDiv.replaceChildren();
const loading = this.contentDiv.createDiv({
cls: "excalidraw-script-store__loading",
});
@@ -80,20 +159,8 @@ export class ScriptInstallPrompt extends Modal {
private async loadStore(): Promise {
try {
- const [source, remoteFiles] = await Promise.all([
- request({ url: CATALOG_URL }),
- getRemoteScriptFiles(),
- ]);
- const catalog = JSON.parse(source) as ScriptStoreCatalog;
- if (
- catalog?.version !== 1 ||
- !Array.isArray(catalog.scripts) ||
- !Array.isArray(catalog.categories)
- ) {
- throw new Error("Unsupported script store catalog");
- }
- this.catalog = catalog;
- this.remoteFiles = remoteFiles;
+ const source = await request({ url: CATALOG_URL });
+ this.catalog = parseScriptStoreCatalog(source);
await this.refreshInstallStates();
this.renderStore();
} catch (error: unknown) {
@@ -107,14 +174,12 @@ export class ScriptInstallPrompt extends Modal {
return;
}
const stateEntries = await Promise.all(
- this.catalog.scripts.map(async (entry) => [
- entry.name,
- await getScriptInstallState(
- this.plugin,
- entry.installUrl,
- this.remoteFiles,
- ),
- ] as const),
+ this.catalog.scripts.map(async (entry) =>
+ [
+ entry.name,
+ await getScriptInstallState(this.plugin, getScriptInstallUrl(entry)),
+ ] as const,
+ ),
);
this.installStates = new Map(stateEntries);
}
@@ -123,90 +188,74 @@ export class ScriptInstallPrompt extends Modal {
if (!this.catalog) {
return;
}
- this.contentDiv.empty();
- this.renderIntro();
+ this.contentDiv.replaceChildren();
+ this.renderSupportBar();
+ this.renderScriptingBanner();
this.renderUpdates();
this.renderBrowseControls();
this.renderScriptGrid();
}
- private renderIntro(): void {
- const intro = this.contentDiv.createDiv({
- cls: "excalidraw-script-store__intro-grid",
+ private renderSupportBar(): void {
+ const support = this.contentDiv.createDiv({
+ cls: "excalidraw-script-store__support-bar",
});
- this.renderFeatureCard(
- intro,
- "wand-sparkles",
- t("SCRIPT_STORE_AUTOMATE_TITLE"),
- t("SCRIPT_STORE_AUTOMATE_DESC"),
- t("SCRIPT_STORE_AUTOMATE_ACTION"),
- getYouTubeUrl("hePJcObHIso"),
- );
- this.renderVideoFeatureCard(
- intro,
- getYouTubeThumbnailUrl("6BjhUyfS4iM"),
- t("SCRIPT_STORE_AI_TITLE"),
- t("SCRIPT_STORE_AI_DESC"),
- t("SCRIPT_STORE_AI_ACTION"),
- getYouTubeUrl("6BjhUyfS4iM"),
- );
- this.renderFeatureCard(
- intro,
- "git-pull-request",
- t("SCRIPT_STORE_PUBLISH_TITLE"),
- t("SCRIPT_STORE_PUBLISH_DESC"),
- t("SCRIPT_STORE_PUBLISH_ACTION"),
- URLs.GITHUB_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_BLOB_MASTER_EA_SCRIPTS_README_MD,
- );
+
+ const mastery = support.createEl("a", {
+ href: URLs.COMMUNITY_SKETCH_YOUR_MIND_COM_EM,
+ cls: "excalidraw-script-store__support-item",
+ attr: { target: "_blank", rel: "noopener noreferrer" },
+ });
+ mastery.createEl("img", {
+ cls: "excalidraw-script-store__support-logo",
+ attr: {
+ src: URLs.SKETCH_YOUR_MIND_COM_IMAGES_LOGO_EM_PNG,
+ alt: t("SCRIPT_STORE_MASTERY_TITLE"),
+ loading: "lazy",
+ },
+ });
+ const masteryText = mastery.createDiv({
+ cls: "excalidraw-script-store__support-text",
+ });
+ masteryText.createEl("strong", { text: t("SCRIPT_STORE_MASTERY_TITLE") });
+ masteryText.createSpan({ text: t("SCRIPT_STORE_MASTERY_DESC") });
+
+ const coffee = support.createEl("a", {
+ href: URLs.KO_FI_COM_ZSOLT,
+ cls: "excalidraw-script-store__support-item",
+ attr: { target: "_blank", rel: "noopener noreferrer" },
+ });
+ const coffeeIcon = coffee.createSpan({
+ cls: "excalidraw-script-store__support-icon",
+ });
+ setIcon(coffeeIcon, "coffee");
+ const coffeeText = coffee.createDiv({
+ cls: "excalidraw-script-store__support-text",
+ });
+ coffeeText.createEl("strong", { text: t("SCRIPT_STORE_COFFEE_TITLE") });
+ coffeeText.createSpan({ text: t("SCRIPT_STORE_COFFEE_DESC") });
}
- private renderFeatureCard(
- parent: HTMLElement,
- iconName: string,
- title: string,
- description: string,
- action: string,
- href: string,
- ): void {
- const card = parent.createDiv({ cls: "excalidraw-script-store__feature" });
- const icon = card.createDiv({ cls: "excalidraw-script-store__feature-icon" });
- setIcon(icon, iconName);
- card.createEl("h3", { text: title });
- card.createEl("p", { text: description });
- card.createEl("a", {
- text: action,
- href,
- cls: "excalidraw-script-store__feature-link",
+ private renderScriptingBanner(): void {
+ const section = this.contentDiv.createDiv({
+ cls: "excalidraw-script-store__scripting-promo",
+ });
+ const link = section.createEl("a", {
+ href: URLs.GITHUB_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_BLOB_MASTER_DOCS_EA_SCRIPTING_MD,
+ cls: "excalidraw-script-store__scripting-link",
attr: { target: "_blank", rel: "noopener noreferrer" },
});
- }
-
- private renderVideoFeatureCard(
- parent: HTMLElement,
- imageUrl: string,
- title: string,
- description: string,
- action: string,
- href: string,
- ): void {
- const card = parent.createDiv({
- cls: ["excalidraw-script-store__feature", "is-video"],
+ link.createEl("img", {
+ cls: "excalidraw-script-store__scripting-banner",
+ attr: {
+ src: URLs.RAW_GITHUBUSERCONTENT_COM_ZSVICZIAN_OBSIDIAN_EXCALIDRAW_PLUGIN_MASTER_IMAGE_BANNER_AUTOMATE_ANYTHING_PNG,
+ alt: t("SCRIPT_STORE_SCRIPTING_BANNER_ALT"),
+ loading: "lazy",
+ },
});
- const imageLink = card.createEl("a", {
- href,
- cls: "excalidraw-script-store__feature-image-link",
- attr: { target: "_blank", rel: "noopener noreferrer" },
- });
- imageLink.createEl("img", {
- attr: { src: imageUrl, alt: title, loading: "lazy" },
- });
- card.createEl("h3", { text: title });
- card.createEl("p", { text: description });
- card.createEl("a", {
- text: action,
- href,
- cls: "excalidraw-script-store__feature-link",
- attr: { target: "_blank", rel: "noopener noreferrer" },
+ link.createDiv({
+ cls: "excalidraw-script-store__scripting-caption",
+ text: t("SCRIPT_STORE_SCRIPTING_BANNER_CAPTION"),
});
}
@@ -233,7 +282,9 @@ export class ScriptInstallPrompt extends Modal {
const title = titleWrap.createEl("h2", {
text: `${t("SCRIPT_STORE_UPDATES_TITLE")} (${updates.length})`,
});
- const icon = title.createSpan({ cls: "excalidraw-script-store__inline-icon" });
+ const icon = title.createSpan({
+ cls: "excalidraw-script-store__inline-icon",
+ });
setIcon(icon, "circle-arrow-up");
titleWrap.createEl("p", { text: t("SCRIPT_STORE_UPDATES_DESC") });
@@ -242,18 +293,20 @@ export class ScriptInstallPrompt extends Modal {
cls: "mod-cta",
type: "button",
});
- updateAll.onClickEvent(() => {
+ updateAll.addEventListener("click", () => {
void this.updateAll(updateAll);
});
- const list = section.createDiv({ cls: "excalidraw-script-store__update-list" });
+ const list = section.createDiv({
+ cls: "excalidraw-script-store__update-list",
+ });
updates.forEach((entry) => {
const button = list.createEl("button", {
text: entry.name,
cls: "excalidraw-script-store__update-chip",
type: "button",
});
- button.onClickEvent(() => this.renderDetail(entry));
+ button.addEventListener("click", () => this.renderDetail(entry));
});
}
@@ -267,7 +320,7 @@ export class ScriptInstallPrompt extends Modal {
let failures = 0;
for (const entry of updates) {
try {
- await installScript(this.plugin, entry.installUrl, false);
+ await installScript(this.plugin, getScriptInstallUrl(entry), false);
this.installStates.set(entry.name, "up-to-date");
} catch {
failures += 1;
@@ -349,10 +402,10 @@ export class ScriptInstallPrompt extends Modal {
cls: this.storeView === view ? "is-active" : undefined,
type: "button",
});
- button.onClickEvent(() => {
+ button.addEventListener("click", () => {
this.storeView = view;
parent.querySelectorAll("button").forEach((item) => {
- item.toggleClass("is-active", item === button);
+ item.classList.toggle("is-active", item === button);
});
this.renderScriptGrid();
});
@@ -367,10 +420,10 @@ export class ScriptInstallPrompt extends Modal {
cls: "excalidraw-script-store__results",
});
const entries = this.getFilteredEntries();
- const summary = results.createDiv({
+ results.createDiv({
cls: "excalidraw-script-store__result-summary",
+ text: `${entries.length} ${t("SCRIPT_STORE_RESULTS")}`,
});
- summary.setText(`${entries.length} ${t("SCRIPT_STORE_RESULTS")}`);
if (entries.length === 0) {
const empty = results.createDiv({
cls: "excalidraw-script-store__empty",
@@ -393,7 +446,10 @@ export class ScriptInstallPrompt extends Modal {
const featuredRank = new Map(
this.catalog.scripts
.filter((entry) => entry.categories.includes(FEATURED_CATEGORY))
- .map((entry) => [entry.name, entry.featuredRank ?? Number.MAX_SAFE_INTEGER]),
+ .map((entry) => [
+ entry.name,
+ entry.featuredRank ?? Number.MAX_SAFE_INTEGER,
+ ]),
);
return this.catalog.scripts
.filter((entry) => {
@@ -440,14 +496,14 @@ export class ScriptInstallPrompt extends Modal {
const state = this.installStates.get(entry.name) ?? "error";
const card = parent.createDiv({ cls: "excalidraw-script-store__card" });
if (state === "update") {
- card.addClass("has-update");
+ card.classList.add("has-update");
}
const main = card.createEl("button", {
cls: "excalidraw-script-store__card-main",
type: "button",
attr: { "aria-label": `${t("SCRIPT_STORE_DETAILS")}: ${entry.name}` },
});
- main.onClickEvent(() => this.renderDetail(entry));
+ main.addEventListener("click", () => this.renderDetail(entry));
const iconWrap = main.createDiv({ cls: "excalidraw-script-store__icon" });
const fallback = iconWrap.createSpan({
@@ -455,14 +511,21 @@ export class ScriptInstallPrompt extends Modal {
});
setIcon(fallback, "scroll-text");
const image = iconWrap.createEl("img", {
- attr: { src: entry.iconUrl, alt: "", loading: "lazy" },
- });
- image.addEventListener("error", () => image.addClass("is-hidden"), {
- once: true,
+ attr: { src: getScriptIconUrl(entry), alt: "", loading: "lazy" },
});
+ image.addEventListener(
+ "error",
+ () => {
+ image.classList.add("is-hidden");
+ fallback.classList.add("is-visible");
+ },
+ { once: true },
+ );
const text = main.createDiv({ cls: "excalidraw-script-store__card-text" });
- const titleRow = text.createDiv({ cls: "excalidraw-script-store__title-row" });
+ const titleRow = text.createDiv({
+ cls: "excalidraw-script-store__title-row",
+ });
titleRow.createEl("h3", { text: entry.name });
this.renderStateBadge(titleRow, state);
if (entry.categories.includes(FEATURED_CATEGORY)) {
@@ -479,9 +542,11 @@ export class ScriptInstallPrompt extends Modal {
text: `${t("SCRIPT_STORE_BY")} ${entry.author}`,
});
}
- text.createEl("p", { text: this.getDescriptionSnippet(entry) });
+ text.createEl("p", { text: this.getDescription(entry) });
- const footer = card.createDiv({ cls: "excalidraw-script-store__card-footer" });
+ const footer = card.createDiv({
+ cls: "excalidraw-script-store__card-footer",
+ });
const categoryText = entry.categories
.filter((name) => name !== FEATURED_CATEGORY)
.slice(0, 2)
@@ -493,7 +558,7 @@ export class ScriptInstallPrompt extends Modal {
cls: state === "update" ? "mod-cta" : undefined,
});
action.disabled = state === "up-to-date";
- action.onClickEvent((event) => {
+ action.addEventListener("click", (event) => {
event.stopPropagation();
void this.installEntry(entry, action);
});
@@ -522,14 +587,10 @@ export class ScriptInstallPrompt extends Modal {
setIcon(icon, state === "update" ? "circle-arrow-up" : "check");
}
- private getDescriptionSnippet(entry: ScriptStoreEntry): string {
- const text = (sanitizedFragment(entry.descriptionHtml).textContent ?? "")
+ private getDescription(entry: ScriptStoreEntry): string {
+ return (sanitizedFragment(entry.descriptionHtml).textContent ?? "")
.replace(/\s+/g, " ")
.trim();
- if (text.length <= 180) {
- return text;
- }
- return `${text.substring(0, 177).trimEnd()}…`;
}
private getActionLabel(state: ScriptStoreInstallState): string {
@@ -552,7 +613,7 @@ export class ScriptInstallPrompt extends Modal {
button.disabled = true;
button.setText(t("SCRIPT_STORE_UPDATING"));
try {
- await installScript(this.plugin, entry.installUrl, false);
+ await installScript(this.plugin, getScriptInstallUrl(entry), false);
this.installStates.set(entry.name, "up-to-date");
new Notice(`${t("SCRIPT_INSTALLED_NOTICE")}: ${entry.name}`);
this.renderStore();
@@ -566,7 +627,7 @@ export class ScriptInstallPrompt extends Modal {
private renderDetail(entry: ScriptStoreEntry): void {
const state = this.installStates.get(entry.name) ?? "error";
- this.contentDiv.empty();
+ this.contentDiv.replaceChildren();
const back = this.contentDiv.createEl("button", {
text: t("SCRIPT_STORE_BACK"),
cls: "excalidraw-script-store__back",
@@ -574,26 +635,41 @@ export class ScriptInstallPrompt extends Modal {
});
const backIcon = back.createSpan();
setIcon(backIcon, "arrow-left");
- back.onClickEvent(() => this.renderStore());
+ back.addEventListener("click", () => this.renderStore());
const detail = this.contentDiv.createDiv({
cls: "excalidraw-script-store__detail",
});
- const hero = detail.createDiv({ cls: "excalidraw-script-store__detail-hero" });
- const iconWrap = hero.createDiv({ cls: "excalidraw-script-store__detail-icon" });
- const fallback = iconWrap.createSpan();
+ const hero = detail.createDiv({
+ cls: "excalidraw-script-store__detail-hero",
+ });
+ const iconWrap = hero.createDiv({
+ cls: "excalidraw-script-store__detail-icon",
+ });
+ const fallback = iconWrap.createSpan({
+ cls: "excalidraw-script-store__detail-icon-fallback",
+ });
setIcon(fallback, "scroll-text");
const image = iconWrap.createEl("img", {
- attr: { src: entry.iconUrl, alt: "", loading: "lazy" },
- });
- image.addEventListener("error", () => image.addClass("is-hidden"), {
- once: true,
+ attr: { src: getScriptIconUrl(entry), alt: "", loading: "lazy" },
});
+ image.addEventListener(
+ "error",
+ () => {
+ image.classList.add("is-hidden");
+ fallback.classList.add("is-visible");
+ },
+ { once: true },
+ );
- const title = hero.createDiv({ cls: "excalidraw-script-store__detail-title" });
+ const title = hero.createDiv({
+ cls: "excalidraw-script-store__detail-title",
+ });
title.createEl("h1", { text: entry.name });
if (entry.author) {
- const byline = title.createDiv({ cls: "excalidraw-script-store__detail-byline" });
+ const byline = title.createDiv({
+ cls: "excalidraw-script-store__detail-byline",
+ });
byline.append(`${t("SCRIPT_STORE_BY")} `);
if (entry.authorUrl) {
byline.createEl("a", {
@@ -605,21 +681,28 @@ export class ScriptInstallPrompt extends Modal {
byline.append(entry.author);
}
}
- const tags = title.createDiv({ cls: "excalidraw-script-store__detail-tags" });
+ const tags = title.createDiv({
+ cls: "excalidraw-script-store__detail-tags",
+ });
entry.categories.forEach((category) =>
tags.createSpan({ text: category, cls: "excalidraw-script-store__tag" }),
);
- const actions = title.createDiv({ cls: "excalidraw-script-store__detail-actions" });
+ const actions = title.createDiv({
+ cls: "excalidraw-script-store__detail-actions",
+ });
const install = actions.createEl("button", {
text: this.getActionLabel(state),
type: "button",
cls: state === "update" || state === "install" ? "mod-cta" : undefined,
});
- install.onClickEvent(() => void this.installEntry(entry, install));
+ install.disabled = state === "up-to-date";
+ install.addEventListener("click", () => {
+ void this.installEntry(entry, install);
+ });
actions.createEl("a", {
text: t("SCRIPT_STORE_VIEW_SOURCE"),
- href: entry.sourceUrl,
+ href: getScriptSourceUrl(entry),
cls: "excalidraw-script-store__source-link",
attr: { target: "_blank", rel: "noopener noreferrer" },
});
@@ -643,11 +726,11 @@ export class ScriptInstallPrompt extends Modal {
this.close();
return;
}
- this.contentDiv.empty();
+ this.contentDiv.replaceChildren();
new ContentSearcher(this.contentDiv);
await MarkdownRenderer.render(
this.plugin.app,
- source,
+ rewriteLegacyInstallUrls(source),
this.contentDiv,
"",
this.renderComponent,
@@ -668,7 +751,7 @@ export class ScriptInstallPrompt extends Modal {
}
onClose(): void {
- this.contentEl.empty();
+ this.contentEl.replaceChildren();
this.renderComponent.unload();
}
}
diff --git a/src/utils/scriptLibraryUtils.ts b/src/utils/scriptLibraryUtils.ts
index 9e7aa8cd..8200df9c 100644
--- a/src/utils/scriptLibraryUtils.ts
+++ b/src/utils/scriptLibraryUtils.ts
@@ -1,12 +1,8 @@
-import { Notice, request, TFile } from "obsidian";
+import { Notice, request, TFile, type App } from "obsidian";
import { SCRIPT_INSTALL_FOLDER } from "src/constants/constants";
import { URLs } from "src/constants/safeUrls";
import { t } from "src/lang/helpers";
-import type ExcalidrawPlugin from "src/core/main";
-import type {
- GitHubRepositoryContentFile,
- RemoteDirectoryInfo,
-} from "src/types/githubTypes";
+import type { RemoteDirectoryInfo } from "src/types/githubTypes";
import type { ScriptStoreInstallState } from "src/types/scriptStoreTypes";
import { ExcalidrawSidepanelView } from "src/view/sidepanel/Sidepanel";
import { errorlog } from "./coreUtils";
@@ -19,16 +15,39 @@ import {
} from "./scriptFileUtils";
import { hideElement, setButtonBgColor, showElement } from "./styleUtils";
-const REMOTE_METADATA_CACHE_TTL = 15 * 60 * 1000;
-let remoteScriptFilesPromise: Promise<
- Map | null
-> | null = null;
-let remoteScriptFilesFetchedAt = 0;
-let legacyDirectoryInfoPromise: Promise