mirror of
https://github.com/jsmorabito/obsidian-commander.git
synced 2026-07-22 06:40:31 +00:00
No description
Replaces direct element.style.* assignments with addClass/removeClass
against new dedicated classes in styles.scss:
- menuManager: .cmdr-menu-item for the constant display:flex, and an
.is-visible modifier on .cmdr-menu-more-options replacing the
display none/block toggle (same show-on-hover behavior).
- confirmDeleteModal: .cmdr-confirm-delete-modal for the modal's
z-index.
- chooseCustomNameModal: .cmdr-hide-suggestions and
.cmdr-name-input-wrapper-parent for the two constant display
overrides.
- util.tsx's confetti canvas: all seven style properties were static
(never computed), so they become one .cmdr-confetti-canvas class;
also switched activeDocument.createElement("canvas") to
activeDocument.createEl("canvas", { cls }) since it needed a class
anyway, resolving the prefer-create-el warning on the same line.
Same visual result, just class-driven instead of inline. Worth a
manual check: right-click a command in a context menu (hover reveal
of the "more options" gear), delete a command with confirmation
enabled, use the custom-name modal when adding a command, and trigger
the feedback/donate button confetti in the About tab.
|
||
|---|---|---|
| .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
