No description
Find a file
johnny1093 b05cb8c109 lint: move inline styles to CSS classes
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.
2026-07-11 09:58:41 -04:00
.github Update GitHub Sponsors username in FUNDING.yml 2026-04-21 10:51:54 -04:00
locale test: add vitest suite for macros, icons, modes, styles, and locales 2026-07-11 09:13:56 -04:00
scripts feat: remove text toolbar from Commander (extracted to standalone plugin) 2026-06-13 19:25:09 -04:00
src lint: move inline styles to CSS classes 2026-07-11 09:58:41 -04:00
.editorconfig feat: 🚧 Added initial plugin boilerplate 2022-04-21 21:00:51 +02:00
.gitignore feat: support new icon-set after obsidian 1.7.3 2024-10-11 08:47:06 +08:00
.npmrc feat: 🚧 Added initial plugin boilerplate 2022-04-21 21:00:51 +02:00
AGENTS.md feat: remove text toolbar from Commander (extracted to standalone plugin) 2026-06-13 19:25:09 -04:00
app.css feat: remove text toolbar from Commander (extracted to standalone plugin) 2026-06-13 19:25:09 -04:00
eslint.config.mts lint: scope Node/mobile-compat rules off test and config files, tidy up a few regressions 2026-07-11 09:55:13 -04:00
LICENSE.md Create LICENSE.md 2022-07-12 21:45:38 +02:00
manifest.json fix: bump minAppVersion to 1.4.4 to match actual API usage 2026-07-11 09:26:32 -04:00
package-lock.json Migrate ESLint to flat config with eslint-plugin-obsidianmd 2026-07-10 12:09:46 -04:00
package.json Migrate ESLint to flat config with eslint-plugin-obsidianmd 2026-07-10 12:09:46 -04:00
README.md Update README.md 2022-08-07 17:25:44 -04:00
tailwind.config.js feat: add tailwind support (hacky) 2022-11-29 20:17:13 +01:00
tsconfig.json deps: upgrade 2022-11-29 19:46:59 +01:00
versions.json chore: correct version to 0.5.6 2026-06-13 19:46:22 -04:00
vitest.config.ts lint: scope Node/mobile-compat rules off test and config files, tidy up a few regressions 2026-07-11 09:55:13 -04:00

commander cover (2) GitHub tag (Latest by date) GitHub all releases

Commander is a plugin for Obsidian which allows you to add commands to different parts of the user interface.

commander overview

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

Commander 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

Footer