Chiloh179 downloadsKeep root-level folders in a custom order in the file explorer.
Root Folder Order keeps the folders at the top level of your Obsidian vault in a custom order.
Use it when your vault has a fixed structure such as:
Reading
Clips
Notes
Archive
Resources
or:
读书
剪藏
笔记
归档
资源
Obsidian can sort files and folders by its built-in rules, but many vaults need a stable root structure that does not change just because a folder name changes. This plugin only changes the order of root-level folders in the file explorer. Notes and nested folders keep Obsidian's normal sorting behavior.

Settings -> Community plugins in Obsidian.Root Folder Order.<your-vault>/.obsidian/plugins/root-folder-order/
Required files:
main.js
manifest.json
styles.css
Settings -> Community plugins.Root Folder Order.If you use the BRAT plugin, add this repository:
chilohwei/obsidian-root-folder-order
Settings -> Community plugins -> Root Folder Order.Add current to import the current root folders.Up / Down, or editing the position number.Changes are saved immediately and the file explorer refreshes in real time.
Language: Auto, English, or Chinese.Add current root folders: Adds root folders that are not already in the list.Add folder by name: Adds a root folder name to the order list, even if the folder does not exist yet.Each configured folder row includes:
Up and Down buttons.Create button when the folder is missing.Remove button to remove it from the configured order.Configured folders position: Show configured folders before or after unconfigured root folders.Unconfigured folders: Keep Obsidian order, sort A to Z, or sort Z to A.Auto-add new root folders: Append newly created root folders to the configured order.Track root folder renames: Update saved entries when configured root folders are renamed.Remove deleted root folders: Remove configured entries when root folders are deleted or moved away from the vault root.Remove missing entries: Clean up configured folders that no longer exist.Reset to current root folders: Replace the order list with all current root folders.Bulk edit: Paste one root folder name per line and apply it as the new order.Recommended configuration:
TopUse Obsidian orderOnRecommended configuration:
OnOnOnUseful actions:
Bulk edit to paste a clean folder list.Create to create missing root folders.Remove missing entries after reorganizing the vault.Root Folder Order 用于固定 Obsidian vault 顶层目录在文件列表中的显示顺序。
适合这类结构:
读书
剪藏
笔记
归档
资源
插件只影响 vault 根目录下的一级目录。子目录和笔记仍然使用 Obsidian 原本的排序方式。
设置 -> 第三方插件 -> Root Folder Order。添加当前,导入当前根目录。上移 / 下移,或直接输入序号来调整顺序。所有改动都会立即保存,并实时刷新文件列表。
语言:自动、English、中文。添加当前根目录:把还不在列表里的根目录加入排序。按名称添加目录:即使目录还不存在,也可以先加入排序列表。高级选项:包含未配置目录排序、自动添加新根目录、重命名跟踪、删除清理、批量编辑等功能。This repository is intentionally simple. The plugin is plain JavaScript and does not require a build step.
Run local checks:
node --check main.js
node -e "const fs=require('fs'); for (const f of ['manifest.json','versions.json']) JSON.parse(fs.readFileSync(f,'utf8'));"
For local development, copy or clone this repository into:
<your-vault>/.obsidian/plugins/root-folder-order
Then reload Obsidian and enable the plugin.
For Obsidian community plugin releases:
manifest.json at the repository root.manifest.json version, for example 1.0.0.main.js, manifest.json, and styles.css to the GitHub release.Release GitHub Actions workflow so release assets receive artifact attestations.data.json out of the release.To publish a release:
git tag 1.0.3
git push origin 1.0.3
After the workflow finishes, verify the released assets:
gh release verify 1.0.3 --repo chilohwei/obsidian-root-folder-order
gh release download 1.0.3 --repo chilohwei/obsidian-root-folder-order --dir /tmp/root-folder-order-verify --clobber
gh attestation verify /tmp/root-folder-order-verify/main.js -R chilohwei/obsidian-root-folder-order
gh attestation verify /tmp/root-folder-order-verify/manifest.json -R chilohwei/obsidian-root-folder-order
gh attestation verify /tmp/root-folder-order-verify/styles.css -R chilohwei/obsidian-root-folder-order
MIT