File Explorer Reload

unlisted

by mnaoumov

Reloads file explorer pane

8 starsUpdated 29d agoMIT
View on GitHub

File Explorer Reload

Buy Me a Coffee GitHub release GitHub downloads

This is a plugin for Obsidian that reloads the file explorer files list.

It is needed sometimes when you made a bulk file operation (copy / move / delete) outside of Obsidian while it is open and some of those changes aren't reflected in the File Explorer pane. So you might see in the File Explorer some files that don't actually exist in the file system, or the opposite, you might miss some files that actually exist in the file system.

The usual workaround for this problem is to close and reopen Obsidian or invoke Reload app without saving command, but for big vaults such workarounds adds undesired waiting time, which the current plugin is aiming to avoid.

The plugin adds Reload File Explorer command, Reload Folder and Reload Folder with Subfolders context menu items.

Also you can use this plugin's functionality programmatically

await app.plugins.plugins['file-explorer-reload'].reloadDirectory(
  directoryPath,
  isRecursive
);

Installation

The plugin is not available on the official Community Plugins repository yet.

The Obsidian team decided to not accept this plugin to the repository.

If you want to bring Obsidian team's attention to the problem solved by this plugin, you can leave a comment in the Official Obsidian forum.

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:

window.DEBUG.enable('file-explorer-reload');

For more details, refer to the documentation.

Support

Buy Me A Coffee

My other Obsidian resources

See my other Obsidian resources.

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.