mirror of
https://github.com/jsmorabito/obsidian-commander.git
synced 2026-07-22 06:40:31 +00:00
No description
Preact discards onClick's return value at runtime (unlike React's
synthetic events), so the dozens of existing async onClick={...}
handlers throughout this codebase have always been safe despite
technically mismatching the () => void type React-oriented tooling
expects. Rather than wrap every one in a sync closure, scope
no-misused-promises's checksVoidReturn off for JSX attributes only -
it still catches genuine misuse in forEach/addEventListener/promise
executors, which is where it already caught real issues in the
previous commit.
Fixes the remaining no-floating-promises sites the same way as the
manager files: await inside already-async handlers (confirmDelete
confirmation, settingTab's page-header toggle, commandViewer's
reorder/rename/recolor/mode-change handlers), void for genuine
fire-and-forget (confetti animation, macro command callback,
MacroViewer's save-then-continue calls, sync drag-reorder handlers).
|
||
|---|---|---|
| .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
