Skip to content

jview v0.21.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 04:41
f7e870a

jview 0.21.0 — two new keyboard features, plus an internal module split. No breaking changes.

✨ New features

  • # — aggregate a container's numbers. Focus any array or object and press # for a
    one-line count · sum · min · max · mean of its direct numeric children. Computed in a
    single streaming pass that never materializes the values, so it stays near-constant memory even
    on a multi-GB array. Non-numeric children are skipped, and the footer flags partial coverage
    (e.g. 12 of 20 numeric). The numeric companion to c (count) and t (type) — and it pairs
    with the filter: run .[].price into a result pane, then # to total it.

  • History recall in the : and | prompts. / now walk a per-session history of the
    paths and filters you've submitted, so a long one can be recalled and tweaked instead of retyped.
    A half-typed line is stashed when you start browsing and comes back when you arrow past the newest
    entry; blank lines and consecutive duplicates are dropped. (Search / keeps / for
    next/previous match, unchanged.)

🔧 Under the hood (no behavior change)

  • main.rs split into focused modulesinput (prompt line-editor), stream (piped-stdin
    byte store + background reader), tree (lazy byte-range node model + : path navigation), and
    ui (terminal rendering) — leaving main.rs as the app/pane/key-dispatch layer. Pure
    restructuring, verified identical by the unit + pseudo-terminal e2e suites. Both features above
    ship with their own unit + e2e coverage.

📦 Install

Prebuilt binaries for Linux (x86_64/arm64), macOS (Intel/Apple Silicon), and Windows are attached
below. Or cargo binstall jview (prebuilt) / cargo install jview (from source).