Skip to content

Releases

v1.0.0

Choose a tag to compare

@RamadhanAmizudin RamadhanAmizudin released this 04 Sep 23:45
e83b6e8

v1.0.0

First release of this fork of knqyf263/sou, which is
no longer maintained. The container-image handling is the original author's work; the
terminal interface has been rebuilt.

Interface

Every screen now sits in a consistent shell — header with breadcrumb and image metadata,
tab strip, content, context-aware status bar — laid out by a single pure function of the
terminal size, so a frame is always exactly as tall as the terminal and no row can
overflow it.

  • Layer view — a responsive table of number, size, relative age, a proportional size
    meter and the build instruction, cleaned of BuildKit's # buildkit suffix and the
    /bin/sh -c #(nop) wrapper, beside a detail pane carrying the diff ID, media type,
    unpacked contents and the image summary (platform, ports, entrypoint, cmd). Build order
    by default, reversible with o.
  • File browser — a preview pane, real permissions, timestamps and symlink targets,
    per-directory cursor memory, and overlay whiteout markers surfaced as deletions rather
    than oddly named files.
  • File viewer — line numbers, wrapping, sideways scrolling, in-document search and a
    scrollbar; shared with the manifest and config views.
  • Syntax highlighting across ~20 formats: JSON, YAML, TOML, INI and systemd units,
    nginx and Apache config, Dockerfile, shell, Make, Go, the C family, JavaScript and
    TypeScript, Python, Ruby, SQL, XML and HTML, Markdown, diffs, Lua and PEM certificates.
    Block comments and multi-line strings are tracked across lines, and colouring survives
    wrapping and horizontal scrolling.
  • Empty, loading and error states everywhere, with a spinner and progress bar instead
    of a frozen screen, and transient toasts for copy and export.

Terminal support

  • Adapts from 200 columns down to 40, shedding chrome and table columns in a fixed order
    so the layer command and the file name are the last things squeezed.
  • True colour, degrading to 256 and then to the 16 ANSI colours, on light and dark
    terminals. Fully readable with colour disabled (NO_COLOR).
  • Type is never carried by colour alone — a cursor glyph and bold mark the selection,
    directories end in /, executables in *, symlinks show name › target.
  • SOU_ASCII=1 replaces the box-drawing characters with an ASCII set.

Keyboard and mouse

All previous bindings are preserved. New: o reverse layer order, yc/yn copy command
and file name, w toggle wrapping, # toggle line numbers, n/N search matches,
1 2 3 jump to a section, Ctrl+u/Ctrl+d, Home/End, H/L/0 for sideways
scrolling. ? is now a grouped keyboard reference. Optional wheel and click support,
disabled with --no-mouse.

Fixes

  • Layer file paths were assembled with filepath.Join, which uses a backslash on Windows
    — no path inside a tar archive can be found that way. The Windows binaries could not
    browse a layer.
  • The mode string reported for a directory or symlink was missing its type bit, so
    everything looked like a regular file.
  • Pulling a remote image printed to stdout underneath the interface, corrupting the
    display.
  • A stale notification timer could clear a newer message.

Safety and performance

Files are read through a limit — 2 MiB for the viewer, 48 KiB for the preview pane — so a
multi-gigabyte blob is never pulled into memory to be displayed, and content is classified
before rendering so a binary gets a description rather than a screenful of control codes.
Only visible rows are ever rendered, and stale preview reads are discarded while scrolling.

Project

  • Module path is now github.com/RamadhanAmizudin/sou.
  • Container images are published to ghcr.io/ramadhanamizudin/sou for linux/amd64 and
    linux/arm64, with provenance and SBOM attestations. edge tracks main.
  • The Dockerfile is self-contained and multi-stage, so docker build works standalone.
  • The dependency footprint shrank: go-humanize, clipboard, harmonica and fuzzy are
    gone.
  • 110 tests, including 34 golden screen renderings across terminal sizes and an end-to-end
    test that browses, previews and exports a real image from a live registry.

Full changelog: 378cf96...v1.0.0