Problem
Archives show up in repos as release bundles, fixtures, and assets. In grut they are treated like binary files, so the preview cannot answer what is inside. Users need to leave the TUI for unzip -l or tar -tf just to inspect names and sizes.
Proposed solution
Extend the preview loader to detect .zip, .tar, .tar.gz, and .tgz files and render a read-only manifest instead of the generic binary message. Show entry path, uncompressed size, and modified time for the first capped set of entries. Use Go standard library packages and do not extract files.
User impact
Developers can inspect release artifacts and test fixture archives in place before opening, deleting, or committing them.
Acceptance criteria
Complexity & priority
Complexity: S | Priority: 4
Problem
Archives show up in repos as release bundles, fixtures, and assets. In grut they are treated like binary files, so the preview cannot answer what is inside. Users need to leave the TUI for
unzip -lortar -tfjust to inspect names and sizes.Proposed solution
Extend the preview loader to detect
.zip,.tar,.tar.gz, and.tgzfiles and render a read-only manifest instead of the generic binary message. Show entry path, uncompressed size, and modified time for the first capped set of entries. Use Go standard library packages and do not extract files.User impact
Developers can inspect release artifacts and test fixture archives in place before opening, deleting, or committing them.
Acceptance criteria
Complexity & priority
Complexity: S | Priority: 4