MCPcopy Index your code
hub / github.com/chenfeicqq/obsidian-attachment-manager

github.com/chenfeicqq/obsidian-attachment-manager @1.2.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.2 ↗ · + Follow
67 symbols 123 edges 16 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

English | 中文

Attachment Manager

Attachment Manager: Attachment folder name binding note name, automatically rename, automatically delete, show/hide.

Features

  • Attachment folder name binding note name
  • Download current open (md or canvas) note's remote image to attachment folder
  • Automatically rename 'Pasted Image'
  • Automatically rename attachment folder
  • Automatically rename attachment files
  • Automatically delete attachment folder
  • Hide/show attachment folder
  • Aero attachment folder

⚠️ IMPORTANT: This plugin will overwrite the following two settings and restore them when the plugin is disabled. * "Files & Links -> New link format for generating md links. * "Files & Links -> Default location for new attachments" for custom attachment folder.

How to use

Plugin Manager

  • Install via the Community plugins setting. Search for Attachment Manager.
  • Activate the plugin in the settings.

Manual Install

  1. Download main.js, styles.css, manifest.json in the Git releases.
  2. Create the plugin directory obsidian-attachment-manager in the vault plugins directory VaultFolder/.obsidian/plugins.
  3. Copy main.js, styles.css, manifest.json to obsidian-attachment-manager directory.
  4. Enable plugin in Obsidian setting.

Screenshots

Extension points exported contracts — how you extend this code

Settings (Interface)
(no doc)
src/Settings.ts

Core symbols most depended-on inside this repo

saveSettings
called by 10
src/Plugin.ts
buildFolderName
called by 6
src/Settings.ts
refresh
called by 4
src/components/HideFolder.ts
build
called by 4
src/handler/CreateHandler.ts
encode
called by 3
src/Settings.ts
buildPastedImageNameWithMoment
called by 3
src/Settings.ts
containsFilenameOrNotename
called by 2
src/Settings.ts
update
called by 2
src/components/VaultAttachmentConfiguration.ts

Shape

Method 39
Class 20
Function 7
Interface 1

Languages

TypeScript100%

Modules by API surface

src/components/LocalizationAttachments.ts13 symbols
src/handler/RenameHandler.ts7 symbols
src/handler/CreateHandler.ts7 symbols
src/components/HideFolder.ts7 symbols
src/Settings.ts7 symbols
src/components/VaultAttachmentConfiguration.ts6 symbols
src/handler/FileOpenHandler.ts5 symbols
src/handler/DeleteHandler.ts5 symbols
src/Plugin.ts5 symbols
src/SettingTab.ts4 symbols
src/lang/index.ts1 symbols

For agents

$ claude mcp add obsidian-attachment-manager \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page