Vlad628 downloadsManually arrange files and folders in the file explorer with a custom order per folder.
An Obsidian plugin that lets you manually arrange files and folders in the file explorer, giving each folder its own custom order instead of the built-in alphabetical/date sorting.
main.js, manifest.json, and styles.css.<your vault>/.obsidian/plugins/explorer-sort/.main.js, manifest.json, and styles.css into that folder.npm install
npm run build # produces main.js
For development with automatic rebuilds:
npm run dev
The plugin wraps the file explorer's internal sorting function. When a folder has a saved order, its children are displayed in that order; the order itself is stored in the plugin's data.json as a list of item names per folder path. Because it hooks sorting rather than the DOM, it plays nicely with collapsing/expanding folders and vault changes.
Note: this relies on an internal (non-public) Obsidian API, as all custom-sorting plugins do. If a future Obsidian update changes the explorer internals, the plugin will log a warning and fall back to default sorting rather than break your vault.
MIT