Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

TreeGen

30jannik0630jannik0612 downloads

Generate a copyable ASCII folder/file tree from any folder in your vault.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Generate and copy ASCII folder/file trees directly from your Obsidian vault.

Inspired by the JetBrains TreeGen plugin.


Preview

TreeGen panel

Right-click menu


Features

  • Side panel — interactive tree view in the right sidebar, opened via ribbon icon
  • Right-click menu — "Copy as tree" on any folder in the file explorer
  • Live search — filter the tree by name, matching files are highlighted
  • Expand / Collapse all — one click to open or close the entire tree
  • Copy formats — switch between Tree, Paths, and JSON before copying
  • 5 tree styles — Lines, Rounded, ASCII, Minimal, Compact
  • File count badges — see how many files each folder contains at a glance
  • Click to open — click any file in the panel to open it; Ctrl+click opens in a new tab
  • Per-folder copy — copy button appears on hover for any folder
  • Configurable — max depth, exclude patterns, tree style, root label, show/hide files

Tree styles

Lines (default)

my-project/
├── src/
│   ├── main.ts
│   └── TreeView.ts
├── styles.css
└── manifest.json

Rounded

my-project/
├── src/
│   ├── main.ts
│   ╰── TreeView.ts
├── styles.css
╰── manifest.json

ASCII

my-project/
+-- src/
|   +-- main.ts
|   \-- TreeView.ts
+-- styles.css
\-- manifest.json

Minimal

my-project/
· src/
·   · main.ts
·   · TreeView.ts
· styles.css
· manifest.json

Compact

my-project/
  src/
    main.ts
    TreeView.ts
  styles.css
  manifest.json

Copy formats

Paths

my-project/src/main.ts
my-project/src/TreeView.ts
my-project/styles.css
my-project/manifest.json

JSON

{
  "src/": {
    "main.ts": null,
    "TreeView.ts": null
  },
  "styles.css": null,
  "manifest.json": null
}

Installation

Manual

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Copy them into .obsidian/plugins/obsidian-treegen/ in your vault
  3. Enable the plugin in Settings → Community Plugins

Usage

Action How
Open panel Click the tree icon in the left ribbon
Copy vault tree "Copy all" button in the panel
Copy folder tree Hover a folder → click copy icon
Copy file path Hover a file → click copy icon
Open file Click any file in the panel
Open in new tab Ctrl+click (Cmd+click on Mac)
Filter Type in the search box
Change format Click Tree / Paths / JSON in the panel
Copy from file explorer Right-click any folder → "Copy as tree"
Command palette TreeGen: Open TreeGen panel / TreeGen: Copy vault root as tree

Settings

Setting Default Description
Max depth 10 How many folder levels deep to traverse
Show files On Include files in the tree; disable for folders only
Exclude patterns .obsidian,.git Comma-separated names to skip
Tree style Lines Lines, Rounded, ASCII, Minimal, or Compact
Root label Folder name Top-level label: folder name, full path, or none

Development

git clone https://github.com/30jannik06/Obsidian-TreeGen
cd Obsidian-TreeGen
pnpm install
pnpm dev        # watch mode
pnpm build      # production build
pnpm lint       # ESLint
pnpm lint:fix   # ESLint + auto-fix

Stack: TypeScript · esbuild · ESLint · Obsidian API


License

MIT — see LICENSE

HealthExcellent
ReviewSatisfactory
About
Generate and copy ASCII folder and file trees from your vault in multiple styles and formats (Tree, Paths, JSON). Preview an interactive sidebar tree, filter with live search, click entries to open files, and copy whole-vault or per-folder trees from the panel or explorer.
FilesSidebarExport
Details
Current version
1.0.4
Last updated
Yesterday
Created
3 months ago
Updates
4 releases
Downloads
12
Compatible with
Obsidian 1.7.2+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
30jannik0630jannik06
jannik.life
GitHub30jannik06
  1. Community
  2. Plugins
  3. Files
  4. TreeGen

Related plugins

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Recent Files

Display a list of recently opened files.

Reveal Active File Button

Add a button to the top of the File Explorer, to reveal the active file.

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Novel word count

Display a word count, page count, creation date, or other statistics for each file, folder and vault in the File Explorer pane.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

File Explorer Note Count

See the number of notes in each folder within the file explorer.

File Tree Alternative

An alternative file tree view with separate folder and file panes.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Advanced URI

Control everything with URI.