Contributing
Contributions are welcome! If you want to build the plugin locally or contribute code, follow these steps.
Development Setup
-
Clone the repository:
git clone https://github.com/phibr0/obsidian-commander.git cd obsidian-commander -
Install dependencies:
npm install
Build Scripts
The project uses npm scripts defined in package.json:
npm run dev: Starts the build process in watch mode. Useful for development.npm run build: Builds the production version ofmain.jsandstyles.cssusingesbuildandtailwindcss.npm run version: Bumps the version number.
Project Structure
src/main.ts: Entry point of the plugin.src/manager/: Logic for handling different UI locations (Ribbon, Menu, etc.).src/ui/: React/Preact components for the settings tab and modals.src/styles/: SCSS and Tailwind CSS files.
Technologies
- TypeScript: Main language.
- Preact: Used for rendering the Settings UI.
- TailwindCSS: Used for styling.
- Esbuild: Used for bundling.
Translations
Translations are located in the locale/ folder. To add a language:
- Copy
en.json. - Rename it to your language code (e.g.,
de.json). - Translate the values.
- Submit a Pull Request.