mirror of
https://github.com/jsmorabito/obsidian-commander.git
synced 2026-07-22 06:40:31 +00:00
No description
Node.prototype.createEl() auto-appends the created element to the
node it's called on (per its own JSDoc: "Create an element and
append it to this node"). Calling activeDocument.createEl("canvas")
tried to append the new canvas directly to the document itself,
which isn't valid DOM structure (only one root element allowed) and
throws - silently breaking the rest of showConfetti() every time,
since the explicit activeDocument.body.appendChild() line right
after never got a chance to matter. Confirmed broken after testing
(confetti stopped firing entirely).
Use the bare global createEl() instead, which creates a detached
element without auto-appending anywhere, matching what
activeDocument.createElement() did originally and leaving the
explicit appendChild() as the only place it actually gets inserted.
|
||
|---|---|---|
| .github | ||
| locale | ||
| scripts | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| .npmrc | ||
| AGENTS.md | ||
| app.css | ||
| eslint.config.mts | ||
| LICENSE.md | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| versions.json | ||
| vitest.config.ts | ||
Commander is a plugin for Obsidian which allows you to add commands to different parts of the user interface.
Features
- add commands
- remove commands
- re order commands (via plugin settings menu)
- edit commands
- hide commands added by Obsidian or other plugins
- choose which devices commands appear on (for sync users)
Demo
How you can improve this Plugin
Feedback
Share feedback, issues, and ideas on Github, with our Commander feedback form, or tag the authors on Discord!
Adding translations
If you want to help and translate this Plugin to new languages, see locale/. Copy the English (en.json) File to your language file and start changing the sentences on the right.
Credits
- This plugin is being designed by Johnny ✨ and developed by phibr0
- Thank you to Kometenstaub and kzhovn for giving us permission to use the code from their plugins Customizable Page Header and Titlebar and Customizable Menu
- All designs for Commander were created using Penpot
