Utility add-on for Obsidian knowledge base.
*Keep your Obsidian vaults tidy with the Find Orphaned Images plugin!*
Find Orphaned Images is an Obsidian plugin designed to help you keep your vault clean and organized by identifying and managing images that are not linked anywhere in your notes. With this plugin, you can:
- Generate a note with a report of all the orphaned (not linked) images in your vault.
- Delete all the orphaned images in your vault.
- Identify Orphaned Images: Scan your vault to find images that are not linked in any note.
- Generate Reports: Create a report listing all orphaned images, with options to display images directly or link to them.
- Delete Orphaned Images: Remove orphaned images.
- Customizable Settings: Define which image extensions to look for and set a maximum number of images to delete.
- Sidebar Button: Access the plugin's features using the sidebar button or with the slash command.
-
Download the Plugin: You can download the latest release from the GitHub Releases page.
-
Extract the Files: Extract the downloaded zip file and copy the files into your Obsidian vault's plugins directory:
.obsidian/plugins/find-orphaned-images/
. -
Enable the Plugin: In Obsidian, go to Settings -> Community plugins, disable safe mode if it's enabled, and then search for "Find Orphaned Images". Enable it to start using the plugin.
-
Configure Settings: Go to Settings -> Find or Delete Orphaned Images to configure your preferences.
- Enable Sidebar Button: Ensure the sidebar button is enabled in the plugin settings.
- Click the Button: Click the button in the sidebar to open the options modal. From here, you can choose to create a report, view images, or delete orphaned images.
You can also access the plugin's features via commands:
- Find Orphaned Images: Use the Command Palette (
Ctrl+P
orCmd+P
) and typeFind Orphaned Images
to open the options modal. Alternativelly, use the slash command.
- Image Extensions: Specify which image file extensions to search for. Default:
png, jpg, jpeg, gif, svg, bmp
. - Max Delete Count: Set a limit on how many images can be deleted in one operation. Use
-1
for no limit. - Show Sidebar Button: Toggle the sidebar button on or off for quick access to the plugin's features.
Contributions are welcome! If you have suggestions for new features or find a bug, please open an issue or submit a pull request.
-
Fork the Repository: Click the "Fork" button at the top right of this page to fork this repository.
-
Clone Your Fork: Use the command
git clone https://github.com/yourusername/find-orphaned-images.git
to clone your forked repository. -
Create a Branch: Use
git checkout -b your-feature-branch
to create a branch for your feature or bug fix. -
Make Changes: Make your changes and commit them with a descriptive message.
-
Push to Your Fork: Use
git push origin your-feature-branch
to push your changes. -
Open a Pull Request: Navigate to your fork on GitHub and click the "New pull request" button.
This project is licensed under the GPL-3. See the LICENSE file for more information.
- Thanks to the Obsidian Community for their support and feedback.
- Inspired by the need to keep vaults organized and efficient.