Vault Disk Usage (obdu)

approvedunreviewed

by markuslitz

Analyze vault disk usage in an ncdu-style interface with attachment attribution, reference inspection, and orphan detection.

↓ 26 downloadsUpdated 15d agoMIT

Vault Disk Usage (obdu)

A lightweight Obsidian plugin (0 runtime dependencies, compatible with Desktop & Android) inspired by Linux ncdu, built to understand notes, embedded attachments, references, orphaned files, and .trash.

It makes it effortless to spot which notes, folders, and embedded attachments consume the most storage space in your vault—whether you want to see raw file sizes in place or attribute referenced attachments directly to the notes that embed them.

Looking for a standalone terminal CLI? Check out the companion command-line version: obdu CLI (MarkusLitz/obdu).

Vault Disk Usage (obdu) screenshot

Features

  • Authentic ncdu experience in a dedicated tab: Fully keyboard-driven (↑/↓, j/k, Enter/→/l, Backspace/←/h, s/n/C/M, c, g, m/Tab, a, ./e, 1–4, /, i, o, f, p/Space, d, r, ?, q) with full mouse and Android touch support.
  • Two size attribution modes (m / Tab):
    • Physical: Exact file and folder sizes at their physical location (including .obsidian & .trash).
    • Logical (with Attachments, byte-neutral): Attributes referenced local attachments proportionally to their owning notes (S flag on shared files), while leaving only unreferenced orphaned files with weight inside attachment folders—conserving total vault size to the exact byte.
  • Drill-down into Notes & Attachments (Enter): Opening a note reveals its own text weight, referenced local attachments, external Google Drive / web media embeds (0 B locally), outgoing note links (→), incoming backlinks (←), and broken references (!). Opening an attachment lists all notes referencing it, allowing instant multi-hop navigation.
  • Global diagnostic views (1–4): Switch instantly between 1 File Tree, 2 Orphans sorted by size (toggleable across Attachments / Notes / All via t), 3 Largest Files across the vault, and 4 Broken Links & Empty Items.
  • Smart Delete (d): Safely moves items to .trash/<relative-path> preserving folder structure (with optional permanent delete), offers cascade deletion of exclusive attachments (cleaning up newly emptied per-note attachment subfolders), protects shared attachments, and warns before breaking incoming backlinks.

Keyboard Shortcuts

Key(s)Action
↑ / ↓, k / j, PgUp / PgDn, Home / EndNavigate rows
Enter, →, lOpen directory, inspect note references, or inspect attachment owners
Backspace, ←, hNavigate back in history / parent folder
m, TabToggle Physical ↔ Logical (with Attachments) size mode
aToggle Apparent Size (bytes) ↔ Disk Blocks (4 KiB)
., eShow / hide system & dot folders (.obsidian, .trash, .git)
cShow / hide item-count column
gCycle bar display ([% + #####] → [#####] → [%] → Hidden)
s / n / C / MSort by Size, Name, Item Count, or Modified Time (press again to reverse)
1 / 2 / 3 / 4Switch view (1 Tree · 2 Orphans · 3 Largest · 4 Issues)
t (in View 2)Cycle orphan filter (Attachments → Notes → All)
/Live substring filter (Esc clears filter)
iItem & reference info modal
p, SpaceQuick preview modal (images, PDFs, Markdown/text)
oOpen selected file in a new Obsidian tab
fReveal in system file manager / Finder (Desktop)
dSmart Delete dialog
r / ? / qRescan vault / Keyboard help / Close tab

Development & Build

npm test
npm run build

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.