Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

T3 Attachment Tools

Tomas NilssonTomas Nilsson24 downloads

Context menu actions for attachments.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

Rename and move attachments in your Obsidian vault using configurable patterns.

Example

The note README.md embeds three attachments.

![](SCR-20261111-hti.png)
![](stockholm.png)
![](pdfs/Skåne.pdf)

Choose Rename All and select the pattern below to move the attachments beside the note.

{documentpath}/{documentname}-pic-{number}.{extension}

With numbers 1 through 3 available and automatic link updates enabled in Obsidian, the embeds can look like this.

![](README-pic-1.png)
![](README-pic-2.png)
![](README-pic-3.pdf)

Settings

It's possible to configure up to four patterns. These are the defaults:

  1. {documentpath}/{documentname}-pic-{number}.{extension}
  2. {documentpath}/pics/{documentname}-pic-{number}.{extension}
  3. {documentpath}/{lastmodified}_{documentname}.{extension}
  4. {documentpath}/{documentname:[a-zA-Z]}-{number}.{extension}

Supported tokens

Token Description
{name} Filename without extension (e.g. foo)
{name:[\p{L}\p{M} ]} Keep only letters from all languages, combining accents, and spaces (e.g. Åäö 123! → Åäö)
{extension} Original extension (e.g. png)
{filename} Full name with extension (e.g. foo.png)
{path} Full path to folder (e.g. Bar/Baz)
{fullpath} Full path including name (e.g. Bar/Baz/foo.png)
{directoryname} Only the folder name (e.g. Baz)
{parentdirectoryname} Grandparent folder name (e.g. Bar)
{number} Next available number, starting at 1
{date} Current date (YYYYMMDD)
{time} Current time (HHmmss)
{date:FORMAT} Custom date format (e.g. {date:YYYY-MM-DD})
{lastmodified} Modification time (YYYYMMDD_HHmmss)
{lastmodified:FORMAT} Modification time with custom format
{documentname} Active document name without extension
{documentname:[\p{L}\p{M} ]} Keep only letters from all languages, combining accents, and spaces (e.g. Notes 123! → Notes)
{documentextension} Active document extension only
{documentfullname} Active document including extension
{documentpath} Vault-relative folder containing the active document

Path resolution examples

The active note is Foo/Bar/Notes.md. The examples assume number 1 is available and the attachment was last modified in 2026.

Original Configured setting Result
Foo/Bar/file.png {filename} file.png
Foo/Bar/file.png Bar/{filename} Bar/file.png
Foo/Bar/file.png /Foo/Bar/{filename} Foo/Bar/file.png
Foo/Bar/Pictures/file.png {documentpath}/{documentname}-pic-{number}.{extension} Foo/Bar/Notes-pic-1.png
Foo/Bar/Pictures/file.png {documentpath}/Pictures/{lastmodified:YYYY}/{filename} Foo/Bar/Pictures/2026/file.png

Letter filtering

These patterns filter the name of the active note Foo/Bar/Åäö file with spaces and numbers123!!.md. Both examples use a PNG attachment and assume number 1 is available.

Input Result
{documentpath}/{documentname:[\p{L}\p{M} ]}-{number}.{extension} Foo/Bar/Åäö file with spaces and numbers-1.png
{documentpath}/{documentname:[a-zA-Z]}-{number}.{extension} Foo/Bar/filewithspacesandnumbers-1.png

Developer notes

  • Place this repo inside the .obsidian/plugins/pluginname folder
  • Inside Obsidian
    • Install the hot reload plugin https://github.com/shabegom/obsidian-hot-reload-mobile to get automatic reload when saving a .ts file
    • Enable both plugins in settings
  • Run npm run dev
  • See the top right notification inside Obsidian that the change was detected

Also, show the developer console inside obsidian to view console.log output :)

Ps. Obsidian loads the compiled main.js from this folder.

HealthExcellent
ReviewSatisfactory
About
Rename and move attachments using customizable filename patterns with tokens like document name, number, date, last modified, and folder paths to place files beside notes or into structured folders. Update links automatically and batch-apply up to four patterns to rename or relocate multiple attachments at once.
AttachmentsFilesLinks
Details
Current version
1.0.8
Last updated
6 days ago
Created
2 weeks ago
Updates
5 releases
Downloads
24
Compatible with
Obsidian 1.13.0+
Platforms
Desktop, Mobile
License
CC-BY-4.0
Report bugRequest featureReport plugin
Author
Tomas NilssonTomas Nilssont3
GitHubtomas-triplestepab
  1. Community
  2. Plugins
  3. Attachments
  4. T3 Attachment Tools

Related plugins

Custom Attachment Location

Customize attachment location with variables($filename, $data, etc) like Typora.

Advanced URI

Control everything with URI.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Consistent Attachments and Links

Move note attachments and update links automatically.

Pixel Perfect Image

Pixel perfect 100% image resizing, copy to clipboard, show image in Finder/Explorer, and much more.

Advanced Exclude

Enhances the Excluded files setting bringing gitignore syntax.

Note Refactor

Extract note content into new notes and split notes.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.