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
| Keys | Action |
|---|---|
j k | down / up (takes a count: 5j) |
gg G | first / last entry ({n}G jumps to entry n) |
Ctrl-d Ctrl-u / Ctrl-f Ctrl-b | half page / full page |
Ctrl-e Ctrl-y | scroll the view one line |
H M L | top / middle / bottom of screen |
zz zt zb | put cursor line at center / top / bottom |
l Enter | open directory, or file in $VISUAL / $EDITOR (default vim) |
h - | parent directory |
/ ? then n N | search forward / backward (smartcase), repeat |
s S | cycle sort (size, name, count) / reverse it |
a | toggle disk usage / apparent size |
R | rescan |
yy | copy path to clipboard |
o | reveal in file manager |
dd | delete (asks first) |
:q :noh :sort name :{n} | commands |
F1 :help | key reference |
q ZZ | quit |
License
MIT, see LICENSE.