haperone20 downloadsExclude vault folders from automatic attachment renaming by Paste image rename.
An add-on for Paste image rename that adds folder exclusions. Choose the folders where Paste image rename must not automatically rename attachments or show rename prompts. It continues working as usual everywhere else.
Paste image rename must be installed and enabled separately. Folder Guard needs it to work.
Click a chip to remove its exclusion. To exclude a folder that does not exist yet, enter its full path relative to the vault and click Add folder.
No folders are excluded by default. Changes apply immediately and are saved automatically. Removing all chips clears all exclusions.
For example, exclude Telegram to keep the original names of attachments created by Telegram Sync, while Paste image rename continues handling attachments in other folders.
Telegram/ protects Telegram/photo.png and Telegram/Media/photo.png, but not Telegram-old/photo.png or Notes/Telegram/photo.png.. or .. path segments are rejected and shown in settings. No wildcards or regular expressions are supported.Folder Guard only controls Paste image rename's automatic processing. It does not rename, move, delete or rewrite files itself, and it does not change the original plugin's settings.
Manual batch rename commands are outside the guard's scope. Existing files are not scanned or reverted, and operations already started before the guard connected are not cancelled. Other plugins' file operations are not blocked.
After enabling or reloading Paste image rename, connection can take up to one second. Files created before connection are not protected. Wait for the connected status before importing. If settings report an incompatibility or conflict, protection cannot be confirmed.
Disabling Folder Guard lets Paste image rename handle all folders as usual.
Requires Obsidian 1.8.7 or later. On 1.13 and later, you can also find the exclusions through settings search.
main.js, manifest.json, and styles.css from the latest release..obsidian), create plugins/paste-image-rename-folder-guard/ and put those three files inside.For the packaged ZIP, extract its paste-image-rename-folder-guard folder directly into the configuration directory's plugins folder. Avoid nesting it twice.
Disable the old helper, replace only main.js and manifest.json, add styles.css, then enable it again. Keep the existing data.json to preserve your saved exclusions. Do not install both copies simultaneously.
Folder Guard makes no network requests, sends no telemetry, requires no account or payment, and reads no files outside the vault. It saves only your exclusion settings and does not change Paste image rename's settings.
MIT. See LICENSE.
Paste image rename is developed by Reorx.