Skip to content

feat(browse): add text and JSON viewers, list non-tabular files#22

Merged
SpollaL merged 1 commit into
mainfrom
feat/text-viewer
May 18, 2026
Merged

feat(browse): add text and JSON viewers, list non-tabular files#22
SpollaL merged 1 commit into
mainfrom
feat/text-viewer

Conversation

@SpollaL
Copy link
Copy Markdown
Owner

@SpollaL SpollaL commented May 18, 2026

The browse subcommand previously hid non-tabular files entirely. List every entry instead and route by kind: tabular files (csv/tsv/parquet and JSON arrays) open in the existing DataFrame viewer, plain text and non-array JSON open in a new text viewer with scroll, search, line numbers, word wrap and pretty-printed JSON. Binary files render dimmed and surface a status message on Enter rather than failing silently.

JSON routing peeks the root byte to decide: arrays go through polars, objects/scalars go to the text viewer (polars otherwise loads them as 1-row all-null DataFrames, which the original Err fall-through couldn't detect).

Adds Suite Z to qa.sh covering the new keybindings and the JSON/binary routing. Also fixes two pre-existing QA assertions that referenced an old plot-mode shortcut bar label.

The browse subcommand previously hid non-tabular files entirely. List
every entry instead and route by kind: tabular files (csv/tsv/parquet
and JSON arrays) open in the existing DataFrame viewer, plain text and
non-array JSON open in a new text viewer with scroll, search, line
numbers, word wrap and pretty-printed JSON. Binary files render dimmed
and surface a status message on Enter rather than failing silently.

JSON routing peeks the root byte to decide: arrays go through polars,
objects/scalars go to the text viewer (polars otherwise loads them as
1-row all-null DataFrames, which the original Err fall-through couldn't
detect).

Adds Suite Z to qa.sh covering the new keybindings and the JSON/binary
routing. Also fixes two pre-existing QA assertions that referenced an
old plot-mode shortcut bar label.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@SpollaL SpollaL merged commit d3892e6 into main May 18, 2026
12 checks passed
@SpollaL SpollaL deleted the feat/text-viewer branch May 18, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant