riffaells874 downloadsLoad custom SVG icons from icons folder and restart plugins automatically.
A plugin for Obsidian that loads custom SVG icons from the icons folder and automatically restarts selected plugins. The icons folder can be located either in .obsidian or in the plugin root.
├── main.ts # Main plugin file
├── manifest.json # Plugin manifest
├── icons/ # SVG icons folder
│ └── example-icon.svg # Example icon
├── src/
│ ├── lang/ # Built-in translations
│ │ ├── en.ts # English translations
│ │ ├── ru.ts # Russian translations
│ │ └── index.ts # Translation exports
│ ├── types/
│ │ └── index.ts # TypeScript types and interfaces
│ ├── utils/
│ │ ├── constants.ts # Constants and default settings
│ │ └── helpers.ts # Helper functions
│ ├── services/
│ │ ├── IconLoader.ts # Icon loading service
│ │ ├── PluginManager.ts # Plugin management service
│ │ └── I18nService.ts # Localization service
│ └── ui/
│ └── SettingsTab.ts # Settings interface
└── autobuild.py # Development sync script
icons folder and loads all SVG filesicons folder in the plugin root or in the .obsidian folder# Install dependencies
npm install
# Build for development
npm run dev
# Build for production
npm run build
For convenient development, a Python auto-build script is included:
# Install Python dependencies
pip install watchdog rich
# Run auto-build
python autobuild.py --vault "path/to/obsidian/vault"
The script automatically monitors changes in main.js, styles.css, and manifest.json, copying them to the plugin folder in Obsidian.
The plugin is divided into logical modules:
The plugin uses a built-in translation system:
MIT License - see LICENSE file for details.