Insert Multiple Attachments

approved

by Michael Naumov

Allows to insert multiple attachments at a time.

7 stars7,090 downloadsUpdated 19d agoMIT

Insert Multiple Attachments

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

Obsidian's built-in Insert attachment command opens a file picker that accepts exactly one file. Attaching six screenshots to a note therefore means running it six times, each with its own dialog.

This plugin adds a command that opens a multi-select picker instead: choose as many files as you like, and every one is saved as an attachment and embedded at the cursor in a single run.

Pick 4 files, get 4 attachments in one run

More screenshots
Or reach it from the editor right-click menu Pick 4 files, get 4 attachments in one run One command, and the phone picker takes it from there

Demo vault

The documentation is a demo vault. Every feature has a note that explains what it does and why you would want it, with sample files ready to insert.

Start reading here — it is plain markdown, so it works on GitHub with nothing installed.

A copy of the vault ships with every release. You can access it via any of the following:

  1. Running the Insert Multiple Attachments: Open demo vault command.
  2. Downloading insert-multiple-attachments-demo-vault.zip from the Releases. It unzips into a single insert-multiple-attachments-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • Insert many attachments at once, from the Command Palette, the ribbon paperclip, or the editor right-click menu — the last two switchable off if you do not want them. 01 Insert multiple attachments
  • Control the text around the links — a prefix, a delimiter between them, and a suffix — so six embeds can come out as a list, a gallery row, or whatever your note needs. 02 Link formatting
  • Every setting, by the key it is stored under. 03 Settings

Each file lands in your vault's own attachment folder, exactly as Obsidian's single-file command would put it there.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command in the DevTools Console:

window.DEBUG.enable('insert-multiple-attachments');

For more details, refer to the documentation.

Changelog

All notable changes to this project will be documented in the CHANGELOG.

Contributing

Contributions are welcome — see CONTRIBUTING to get set up.

Support

Buy Me A Coffee

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.