alberti424k downloadsImport and manage attachments by enabling moving and linking
Import Attachments+ is a plugin designed to enhance the attachment management experience in Obsidian. It allows you to import, organize, and handle attachments (like images, documents, and other files) seamlessly within your vault.
Features include:
Once enabled, the plugin will work automatically based on your configured preferences. You can adjust these settings through the plugin's settings tab under Settings > Import Attachments+.
When you split a note — by extracting a selection, merging notes, or simply cutting and pasting text — the attachments referenced by that text stay behind in the original note's attachment folder. The plugin moves them into the attachment folder of the note that now uses them, updating all links.
An attachment is only moved when the note it is currently filed under no longer references it; one that is still in use stays where it is, as does anything outside the attachment folders this plugin manages. This is controlled by the setting "Let attachments follow the text that uses them", which is enabled by default.
To tidy up a vault after the fact, or with that setting disabled, run the command Move stray attachments to their note's folder. It lists every attachment that is filed under one note but used by another, with a preview and a per-file confirmation, before moving anything.
| Command | Description |
|---|---|
| Move file to vault as linked attachment | Pick a file and move it into the vault, inserting a link. |
| Move file to vault as embedded attachment | As above, inserting an embed. |
| Copy file to vault as linked attachment | Pick a file and copy it into the vault, inserting a link. |
| Copy file to vault as embedded attachment | As above, inserting an embed. |
| Open attachments folder | Open the current note's attachment folder in the system file manager. |
| Move stray attachments to their note's folder | Review and relocate attachments that are filed under a note which no longer uses them. |
The plugin offers a comprehensive set of options for managing attachments.
Import Options:
Attachment Folder Configuration:
Attachment Opening:
Attachment Management:
Display of Attachment Folders:
Search for "Import Attachments+" in the Community plugins pane in Obsidian and click on the Install button.
main.js, manifest.json and styles.css files..obsidian/plugins/ directory (e.g., .obsidian/plugins/import-attachments-plus).Import Attachments+ in Obsidian via Settings > Community Plugins.Clone this repository or download the source code from the GitHub repository.
Run the following commands to install the necessary dependencies and build the plugin. The build process will generate the main.js and manifest.json files inside the /dist subfolder within the repository directory:
npm install
npm run build
I would be grateful for any donation to support the development of this plugin.
Feel free to contribute to the development of this plugin or report any issues in the GitHub repository.