CI Log in
README.md 40 lines · 1.3 KB

vdu

Browse disk usage in the terminal with vim keys. vdu scans a directory once, then lets you walk the tree sorted by size, with each entry's share of its parent drawn as a bar.

cargo install --path .
vdu [DIR]        # defaults to the current directory

The scan stays on one filesystem (like du -x), doesn't follow symlinks, and counts hard-linked files once. Entries that couldn't be read are marked !.

Keys

KeysAction
j kdown / up (takes a count: 5j)
gg Gfirst / last entry ({n}G jumps to entry n)
Ctrl-d Ctrl-u / Ctrl-f Ctrl-bhalf page / full page
Ctrl-e Ctrl-yscroll the view one line
H M Ltop / middle / bottom of screen
zz zt zbput cursor line at center / top / bottom
l Enteropen directory, or file in $VISUAL / $EDITOR (default vim)
h -parent directory
/ ? then n Nsearch forward / backward (smartcase), repeat
s Scycle sort (size, name, count) / reverse it
atoggle disk usage / apparent size
Rrescan
yycopy path to clipboard
oreveal in file manager
dddelete (asks first)
:q :noh :sort name :{n}commands
F1 :helpkey reference
q ZZquit

License

MIT, see LICENSE.