External Rename Handler

by mnaoumov
5
4
3
2
1
Score: 61/100

Description

The External Rename Handler plugin enhances Obsidian's ability to manage file renames performed outside the application. By default, external renames are processed as separate creation and deletion events in Obsidian, which can disrupt workflows and lead to inconsistencies. This plugin resolves the issue by detecting and treating such changes as a single rename event, ensuring a seamless integration with your file organization. To function, Obsidian must be running during external rename operations, making it a practical tool for users managing files across different environments.

Reviews

No reviews yet.

Stats

30
stars
5,374
downloads
0
forks
621
days
1
days
1
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
5
total issues
0
open issues
5
closed issues
225
commits

Latest Version

a day ago

Changelog

  • test(screenshots): merge the move onto applyObsidianTheme
  • chore(deps): merge the obsidian-integration-testing ^17 float
  • chore(deps): merge the obsidian-test-mocks ^7.0.0 float
  • style(comments): stop capitalizing the middle of a wrapped comment
  • fix(test): merge the headless demo-vault toolkit install
  • chore: adopt the npm run gate branch gate
  • fix(deps): restore the lockfile's missing resolved and integrity fields
  • docs(contributing): base PRs on main, the branch this repo actually has
  • build(markdownlint): forbid hard-wrapped markdown paragraphs
  • fix: tie the path-ino store to a lifetime, and stop losing its queued writes
  • test: size the external-change-detection wait ceiling under the transport's eval cap
  • chore: teach cspell the changelog's word checkable by the linter
  • refactor: name the handler component with the load-bearing desktop- prefix
  • fix(deps): float devalue to 5.9.4, clearing GHSA-9rgm-9g3h-6x36
  • chore(deps): drop the dead type-fest override
  • chore(deps): drop the dead markdown-it override
  • chore(deps): drop the dead js-yaml override
  • fix(deps): override smol-toml to clear a denial-of-service advisory
  • docs: drop the rule-id citations from the pin table
  • docs(changelog): name obsidian-dev-utils by its package name
  • docs: replace the private tracker references with what they pointed at

Full Changelog: https://github.com/mnaoumov/obsidian-external-rename-handler/compare/4.0.1...4.0.2

README file from

Github

External Rename Handler

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

Rename a note inside Obsidian and every link to it is updated. Rename the same file in your file manager, from a script, or through a sync client, and Obsidian sees a delete followed by a create — so the links are not updated, and every note that pointed at it is left pointing at nothing.

This plugin recognizes those external renames for what they are and reports them to Obsidian as a single rename, so the file keeps its identity instead of arriving as a stranger. Rewriting the links that pointed at the old name is then done by Advanced Rename and Delete Handler — see Renames below.

[!WARNING]

The plugin works only if Obsidian is running during the external renames.

The plugin only handles renames for those files/folders that Obsidian tracks.

The plugin only handles renames made inside the vault.

The plugin doesn't handle the renames made outside of the vault even if the renamed files are referenced within the vault.

The plugin doesn't handle the renames in files/folders that start with . (dot).

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 a note ready to rename and backlinks ready to watch.

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 External Rename Handler: Open demo vault command.
  2. Downloading external-rename-handler-demo-vault.zip from the Releases. It unzips into a single external-rename-handler-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • A rename made outside Obsidian is recognized as a rename, instead of arriving as an unrelated delete and create. 01 External renames
  • Moving a file, and moving whole folders, are handled the same way. 02 Moving and folders
  • How the detection works, and therefore where its limits are — worth reading before trusting it with anything irreversible. 03 How it works
  • Every setting, by the key it is stored under. 04 Settings

Renames

Up to version 3 this plugin rewrote the links itself, through a copy of a rename/delete handler that four other plugins also bundled — so which copy actually ran depended on Obsidian's load order. Since 4.0.0 it does not, and rename and delete handling belongs to Advanced Rename and Delete Handler instead — one plugin owning it for the whole vault.

The two are meant to be used together: this plugin sees the rename your file manager made, that one updates the notes pointing at the old name. This plugin offers to install it, once, and carries your old Should update links value over for you to approve. Decline, and external renames are still detected — the file keeps its identity, its open tab and the file explorer follow it — but the links are left as they were.

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('external-rename-handler');

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

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Add Attachment
19 days ago by olegg90
Obsidian plugin for adding multi attachments
Alternative Explorer
2 months ago by sk-obsidian
Alternative Explorer is an Apple Notes–style sidebar for browsing folders and notes in Obsidian. Switch between an expandable folder tree and a notes list — a compact alternative to the built-in File Explorer.
Attachment Organizer
2 months ago by kiteruunner
Automatically organize attachments into zone-based folders with conflict detection and batch operations
Auto Archive
3 years ago by Shane Burke
Auto Archive plugin for Obsidian
Auto Filename
3 years ago by rcsaquino
Auto Filename is an Obsidian.md plugin that automatically renames files in Obsidian based on the first x characters of the file, saving you time and effort.
Auto Move File
25 days ago by sx kan
Automatically move files based on frontmatter properties in Obsidian
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Binary File Manager
5 years ago by qawatake
An Obsidian plugin to manage binary files
Cloud Storage
2 years ago by Jiajun Ma
Obsidian Cloud Storage is a powerful and user-friendly plugin designed to seamlessly integrate cloud storage capabilities into your Obsidian workflow. This plugin allows you to effortlessly upload your attachments to the cloud, freeing up local storage space and enabling easy sharing and access across all your devices.
Cloudinary Uploader
5 years ago by Jordan Handy
An uploader for Obsidian to Cloudinary
Copy Contents
2 months ago by Richard Jones
Copy or export file and folder contents - perfect for LLMs
Copy Metadata
3 years ago by wenlzhang
An Obsidian plugin to copy metadata to clipboard and insert it into file name.
CSV Lite
a year ago by Jay Bridge
Simple enough for csv, no more fancy function you need to learn and think!
Custom Attachment Location
5 years ago by RainCat1998
Customize attachment location with variables($filename, $data, etc) like typora.
Edit History
3 years ago by Antonio Tejada
Obsidian Edit History Plugin, automatically save all the edit history of a note, browse and restore previous versions
Enhance Copy Note
3 months ago by kzhovn
Plugin which enhances the copy command for Obsidian.
External File Card
2 years ago by James-Yu
A plugin for Obsidian showing a card displaying basic information of a file in pre-defined folders.
File chucker
4 years ago by Ken Lim
File Explorer Reload
5 months ago by mnaoumov
Obsidian Plugin that reloads the file explorer files list
File Explorer++
4 months ago by kelszo
A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
File Hider
4 years ago by Oliver Akins
A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
File Order
3 years ago by lukasbach
Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
File Preview
2 years ago by Huajin
Add file preview contents under file in file explorer.
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
Git File Explorer
3 years ago by Mateus Molina
Graphic Organizer
6 months ago by Nick Le Guillou - Superhuman Curiosity
Guid Renamer
2 years ago by Taskscape LTD, Kacper Pabianiak
Renames the currently selected file by providing a unique file name based on GUID pattern
HTML Reader
4 years ago by Nuthrash
This is a plugin for Obsidian (https://obsidian.md). Can open document with .html and .htm file extensions.
Inbox Organiser
2 years ago by Jamie Hurst
Obsidian plugin to capture any new notes into an inbox and periodically prompt to organise these into other folders within the vault.
Insert Multiple Attachments
2 years ago by mnaoumov
Obsidian Plugin that allows to insert multiple attachments at a time
Link indexer
6 years ago by Yuliya Bagriy
Local Any Files
2 years ago by ShermanTsang
A obsidian plugin used to extract and download files in your obsidian note.
Local Backup
2 months ago by velviagris
Automatically creates a local backup of the vault.
Luhman
5 years ago by Dylan Elliott
Markdown Hijacker
a year ago by Yongmini
Beyond the Vault. One hub for every Markdown, everywhere
MD Butler
a month ago by Peter Petschownik
Automatically manages YAML frontmatter fields for all notes. A reliable alternative to Templater formulas for consistent metadata.
Media Companion
2 years ago by Nick de Bruin
Merge Notes
3 years ago by fnya
Merge Notes is Plugin for Obsidian
New Filename
2 years ago by Amin Sennour
Simple plugin to change the default name for a new note from "Untitled" to a UUID.
New Note Fixer
2 years ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Note archiver
3 years ago by thenomadlad
Note Types
2 months ago by jsmorabito
Notebook Navigator
2 months ago by Johan Sanneblad
A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.
NSFW filter
2 years ago by catvatar
Obsidian Plugin adding a button to toggle visiblity of NSFW notes
Open File by Magic Date
4 years ago by simplgy
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Recent Files
6 years ago by Tony Grosinger
Display a list of most recently opened files
Recently Added Files
2 years ago by Lemon695
List files by last added, includes pictures, pdfs, etc.
Remote Fetch
a year ago by Shaharyar
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Rename File to Selection
a year ago by Aava
Rename your file to the current text selection.
Reveal Active File Button
5 years ago by Clare Macrae
Obsidian plugin to add a button to the top of the Obsidian File Explorer, to reveal the active file.
S3agle
2 years ago by Turner Monroe (turnercore)
Screwdriver
5 years ago by vorotamoroz
Simple Archiver
2 years ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Simple Image Inserter
3 years ago by Joey Holtzman
Add images from the file system into Obsidian notes through a built-in file explorer
Store
2 months ago by shimeoki
Manage your notes within a single folder.
sync-db-os
2 years ago by ketd
Syncthing Integration
3 years ago by LBF38
Obsidian plugin for Syncthing integration
Telegram Sync
3 years ago by Burtasov Volodymyr
Transfer messages and files from Telegram to Obsidian
Tencent COS for Imgur
2 years ago by bobostudio
🔥 Obsidian 腾讯云 COS 图床插件
Trash Explorer
4 years ago by Per Mortensen
Restore and delete files from the Obsidian .trash folder
Unique attachments
6 years ago by Dmitry Savosh
Obsidian plugin. Renames attachments, making their names unique.
Update frontmatter modified date
3 years ago by Alan Grainger
Automatically update a frontmatter/YAML modified date field
Update Relative Links
4 years ago by val
Update time on edit
5 years ago by beaussan
Vault Transfer
3 years ago by ImaginaryProgramming
Transfers a note from one vault to another.
VaultSync
2 years ago by Justin Bird
Obsidian plugin to link your vault to a cloud storage provider.
VSCode Editor
3 years ago by Sun Xvming
Edit Code Files like VSCode in Obsidian.
WebDAV Explorer
6 months ago by 蓝星晓夜
WebDAV Server Explorer.
Webdav File Explorer
3 years ago by red0orange