Copy any folder as a clean ASCII tree, flat path list, or JSON — right from a sleek interactive side panel.
Features
Switch between ASCII tree, flat path list, and JSON instantly — no settings required.
Filter any file or folder by name. Matching results are highlighted and parent folders expand automatically.
Click any file in the panel to open it. Ctrl+click (Cmd on Mac) opens it in a new tab.
Hover any folder to reveal a copy button. Copies the subtree in your selected format.
Every folder shows a recursive file count at a glance — no need to expand to know what's inside.
Lines, Rounded, ASCII, Minimal, Compact — switch in settings and every copy uses the chosen style.
Tree Styles
my-project/ ├── src/ │ ├── main.ts │ └── TreeView.ts ├── styles.css └── manifest.json
my-project/ ├── src/ │ ├── main.ts │ ╰── TreeView.ts ├── styles.css ╰── manifest.json
my-project/ +-- src/ | +-- main.ts | \-- TreeView.ts +-- styles.css \-- manifest.json
my-project/ · src/ · · main.ts · · TreeView.ts · styles.css · manifest.json
my-project/ src/ main.ts TreeView.ts styles.css manifest.json
Installation
main.js, manifest.json, styles.css from the latest release.obsidian/plugins/obsidian-treegen/ in your vaultDevelopment
Changelog
fs.watch