Skip to content

icdu v0.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Nov 10:22
· 11 commits to main since this release

The first release under the name icdu, with everything since rcdu 0.4.1.

Changed, and needing attention when upgrading

  • The program is called icdu now ("interactive ncdu"): binary, crate, repository, release
    assets, and the environment variables of the install script (ICDU_VERSION,
    ICDU_INSTALL_DIR). Exports from the browser are named icdu-dump.json.
  • The self-update command is gone. Upgrade by running the install script again. icdu
    never uses the network.
  • Keys follow ncdu. Esc no longer quits. Export moved from e to E, the largest
    files from t to T, jump to top from g to Home. r and b act on the directory on
    screen. s sorts by size and n by name (s used to switch between the two); n is
    still "no" in a question.
  • One search instead of filter and search. / searches the whole tree; Tab limits it
    to the directory on screen. The old f key says where it went.
  • --exclude patterns see the path, as in ncdu: a pattern with / in it has an effect
    now, and a wildcard can match across directories. A file given to -X has no comment lines
    any more, and its lines are not trimmed.
  • Names sort in natural order (file2 before file10). --disable-natsort gives the
    old order.
  • Rows start with ncdu's flag, and directory names with /. Special files are flagged
    @ instead of *.
  • Dumps written by icdu leave out what ncdu leaves out (sizes of zero, the device where it
    is the parent's, the inode except for hard links). Readers of the format are not affected.
  • Building from source needs Rust 1.88 or newer.
  • Releases are archives named icdu-<version>-<target>.tar.gz, with the licence, the README
    and the changelog next to the binary, and GitHub keeps an attestation of where each was
    built. The bare binaries …-portable-<os>-<arch> are no longer published.

Added

  • ncdu's command line. Bundled short flags, values attached or separate, --option=value,
    --, and exit status 1 for a mistake. New flags, all with the counterpart that undoes them:
    -0 -1 -2 -q (what to show while scanning), -e (owner, group, mode and time, in
    the tree and in dumps), -L (count symlinked files), --exclude-caches, --exclude-kernfs,
    --sort, --group-directories-first, --show-hidden, --show-graph, --show-percent,
    --show-mtime, --graph-style, --si, --color, --disable-delete, --disable-shell,
    --disable-refresh, -rr, --confirm-quit, --confirm-delete, --delete-command,
    --disk-usage, --cross-file-system, --ignore-config.
  • Config files, in ncdu's format. ncdu's own files are read, so an existing setup
    applies, and then /etc/icdu.conf and ~/.config/icdu/config.
  • ncdu's keys: n C M sort by name, item count and time, and the key of the active
    column reverses the order; t puts directories first; e hides dot files and excluded
    entries; g chooses bar and percentage; m shows modification times.
  • Search: a broad search lists its largest matches and counts all of them; letters match
    whatever their case or Unicode spelling; ] and [ step through the matches of the last
    search, and / brings it back.
  • While the scan runs: the footer says how many directories are left; sizes that are still
    growing are marked; a delete or rescan that has to wait says for how much, and that part is
    read first; a directory with very many entries shows up in parts.
  • The shell (b) uses NCDU_SHELL, then SHELL, then /bin/sh, and sets NCDU_LEVEL.
  • The install script takes a version with or without v, says what it replaced, names a
    tool it is missing, installs the ARM build in an x86 shell on Apple Silicon, and verifies the
    attestation of the archive when the GitHub CLI is there.
  • A manual page, icdu.1, laid out like ncdu's. It is in the release archives.
  • Debian packages (.deb) for amd64 and arm64 with every release.
  • Ctrl-Z suspends icdu, and Ctrl-L redraws the screen.
  • The info popup shows the reason of a read error, and the number of hard links.

Fixed

  • Deleting could remove what the scan had never listed: files created after the scan, the
    content of excluded or unreadable directories, other filesystems mounted below. d now
    removes exactly the entries the scan listed, each only if it is still the one that was
    scanned.
  • Browsing an imported dump allowed delete, shell, open and rescan on its paths, which belong
    to another machine or another time. All four are off there.
  • Names that are not valid UTF-8 were acted on under a different name. They are kept as the
    bytes they are, on disk and in dumps.
  • A directory being rescanned or deleted could be acted on a second time, and a rescan could
    count sizes twice or let a delete through too early.
  • A hard-linked file dropped out of every total when the link that was counted was deleted.
  • Entries that vanished during the scan were reported as read errors.
  • Sizes could overflow and wrap around.
  • Letters with Ctrl or Alt acted like the plain letters (Ctrl-E exported).
  • kill and a closed terminal window left the terminal in raw mode.
  • Dumps: a directory nested more than about 125 levels deep could not be imported; dev was
    not inherited from the parent; exclusion reasons and link counts were lost; an export during
    a scan looked complete.
  • Directories with a million entries made every key press take seconds. Rows are sorted once
    and only the visible ones are drawn. The largest-files popup, the next-error jump, exports
    from the browser and quitting no longer stall on large trees either.
  • The help popup was cut off on terminals shorter than 28 rows.

Security

  • See the first three entries under "Fixed".
  • ratatui 0.30 replaces versions of lru and paste that have advisories against them
    (RUSTSEC-2026-0002, RUSTSEC-2026-0253, RUSTSEC-2024-0436).