File Bundles

approvedunreviewed

by Michael Naumov

Declare which files and folders a file depends on, and move, rename, duplicate or delete them as one locked bundle.

↓ 112 downloadsUpdated 25d agoMIT

File Bundles

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

An HTML page and the assets it loads, a note and the images pasted into it, a scanned invoice and the note describing it — these are one thing to you and several files to Obsidian. Move the main file and the rest stay behind. Delete it and they are orphaned. This plugin lets a file declare which files and folders belong with it, and then treats them as one bundle: what happens to the main file happens to the whole thing.

8 files on disk, 4 rows in the explorer

More screenshots
Unlock a bundle and its dependents come back, dimmed A file declares what belongs with it, in its own frontmatter A sidecar bundles a file that cannot carry frontmatter Move the main file and the whole bundle moves with it A locked bundle hides the files it declares Unlock a bundle and its dependents come back, dimmed Move the main file and the whole bundle moves with it A file declares what belongs with it, in its own frontmatter

Demo vault

The documentation is a demo vault. Every feature has a note that explains what it does, with a worked example you can search yourself.

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 File Bundles: Open demo vault command.
  2. Downloading file-bundles-demo-vault.zip from the Releases. It unzips into a single file-bundles-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • A bundle is declared, not inferred from a naming convention. A file-bundles key in the main file's own frontmatter says which files and folders belong with it, whatever they are called: see Declaring a bundle.
  • Any file can be a main file. An HTML file, a PDF or an image gets a sidecar note that declares the bundle on its behalf: see Bundles.
  • A locked bundle moves, renames and deletes as one. Its dependents are hidden in the File Explorer (display only, so they stay linkable) and follow the main file wherever you drag it; unlocking splits them back into independent files: see Locking and unlocking.
  • A bundle duplicates as one. The copy gets its own dependents and a declaration that names them, unlike Obsidian's Make a copy: see Bundles.
  • A shared file is never deleted with one of the bundles declaring it.
  • Settings choose the frontmatter key, excluded paths, and what a locked bundle does: see Settings.

Declaring a bundle

---
file-bundles:
  main: "[[./report.html]]"   # omit when this note is itself the main file
  files:
    - "[[./report-styles.css]]"
    - "[[/shared/logo.png]]"
  folders:
    - ./report-images
---

Every path is explicitly relative (./, travels with the main file) or rooted (/, stays put). The keys and rules are in Declaring a bundle.

Usage

Moving and renaming need no command: a bundle follows its main file. Four commands cover the rest, with locking and deleting also on the File Explorer's context menu:

  • File Bundles: Show the bundle the active file belongs to
  • File Bundles: Lock or unlock the bundle the active file belongs to
  • File Bundles: Delete the bundle the active file belongs to
  • File Bundles: Duplicate the bundle the active file belongs to

See also

My other Obsidian resources

PluginFeaturesHow File Bundles differs
Att Meta MapAttachment companion notes; file-metadata properties; source-property mappingDifferent scope: bundle file operations and locked visibility; no metadata extraction
Custom Attachment Location (my plugin)Per-note attachment destination; folder follows noteBroader grouping: any file can declare any set of files/folders
DependsFrontmatter note dependencies; graph linksDifferent effect: moves and deletes the declared files themselves
Documents BundleNote-as-folder bundles; assets directory; captures attachments; folder follows noteBroader grouping: arbitrary declared files/folders; no fixed layout or new-attachment capture
Media Sidecar ToolsCtrl-click media sidecars; optional explorer hidingDifferent grouping: declares existing files; no note creation; file operations act on the group
Nested NotesDrag-and-drop note nesting in a dedicated viewAlternative UI: keeps File Explorer; declared grouping controls its rows
SidecarsUnlisted; companion notes for attachments; orphan cleanup; explorer hidingAlternative grouping: declarations, not matching names; any number of files/folders

Last searched for similar plugins on 2026-10-26.

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 (id: file-bundles) are hidden.

If you need to enable them 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

Filing an issue (for AI agents and humans)

Open issues through the issue forms, not as blank issues.

To report a bug from inside Obsidian, run the File Bundles: Report a bug command. It opens the bug form with the plugin version, the Obsidian version and your operating system already filled in.

Filing from the CLI or the API (gh issue create --body, or an AI agent filing for you) skips the form, and gh issue create --template cannot load an issue form. In that case, open the matching form in .github/ISSUE_TEMPLATE/, copy every field as a ### <label> heading in the form's order, and fill in each one. Always state the plugin version, the Obsidian version and your operating system.

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.