SebastianMC / obsidian-custom-sort

Take full control over the order and sorting of folders and notes in File Explorer in Obsidian
GNU General Public License v3.0
287 stars 22 forks source link

Impose File Explorer refresh with standard sorting when the plugin gets disabled (if technically possible) #137

Closed SebastianMC closed 3 months ago

SebastianMC commented 7 months ago

As reported in #131 and later on in #135, the File Explorer recovery process from messed-up state could be confusing to the user. When Obsidian with breaking changes in File Explorer (1.5.4 or newer Obsidian release) meets the plugin in version earlier than 2.1.7, the File Explorer view stops showing correctly the deeper levels (2nd and deeper) of folders tree. The recovery process is multi-step and doesn't include only disabling/uninstalling the plugin, a restart of Obsidian is required.

Let me find out if a plugin (like custom-sort) is capable of graceful handling of the disable / uninstall scenario: detect the disabling / uninstalling action and, in the last second of its existence, impose the File Explorer view refresh with standard sorting. This would make the potential future scenarios of recovery from Obsidian breaking changes a little bit less confusing.

SebastianMC commented 3 months ago

Included in 2.1.10 release of the plugin