$ a plugin for Obsidian.md
This is a plugin for Obsidian MD that I created to help with managing attachments. I created this plugin out of a personal need for a better way to manage attachments in my own Obsidian vault.
The plugin works by allowing users to define placement rules for new attachments based on the location they are working in. More on this below.
The plugin is officially published on the Obsidian community plugins list, and it is available for anyone to install and use.
This plugin is designed to make attachment and resource placement inside your vault much more flexible. Instead of forcing every new file into a single global folder, resources can be organized based on where you are currently working.
When a new resource is created, the plugin walks up the folder tree and looks for the first placement rule that applies. This allows different areas of a vault to keep their own attachment locations without requiring manual sorting.
The main goal is to make workflows like copy-pasting images, screenshots, or other resources feel natural while still keeping everything neatly organized behind the scenes.
It’s a small quality-of-life plugin, but it can make larger vaults significantly easier to manage.
The plugin determines where to place new resources by walking up the folder tree from the file you are currently working in until it finds a placement rule.
For example, imagine the following vault structure:
/
├── attachments/
│ ├── school/
│ ├── journal/
│ └── videogames/
├── journal/
├── league-of-legends/
├── dragon-age-origins/
└── school/
└── math/
├── factoring.md
└── addition.md
If you are currently editing addition.md, the plugin will first check the math/ folder for a placement rule. If none exists, it will check school/, then continue moving upward until a rule is found or the root folder is reached.
Once a rule is found, the resource will be placed in the configured location, such as attachments/school/. If no rule exists anywhere in the hierarchy, the plugin will fall back to the default attachment location defined in the settings.