Prettify and fix scrolling in the metadata viewer - #4
Merged
Conversation
Improve the `m` metadata popup in the TUI browser: - Syntax-highlight the JSON via rich.json.JSON instead of flat text. - Expand values that are themselves JSON-encoded strings (common in LoRA/VAE training metadata) so nested structures render properly instead of as one long escaped blob. - Make the scroll region focusable and focus it on mount so arrow / PgUp / PgDn keys scroll immediately (previously mouse-only). - Give the container a definite height with a 1fr scroll region so the "Press ESC or M to close" hint is always pinned in view instead of being clipped off-screen when metadata is tall. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
barakyoresh
force-pushed
the
feat/prettify-metadata-viewer
branch
from
July 1, 2026 14:03
9b6475a to
9f33ee6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Improves the
mmetadata popup in the TUI browser.rich.json.JSONinstead of flat monochrome text.config) are now parsed and rendered as real nested structures instead of one long escaped blob.1frscroll region, so the "Press ESC or M to close" hint stays pinned in view even when metadata is tall (it was being pushed off-screen before).Before / After
Before — escaped blob, no scroll, hint truncated:

After — expanded & highlighted, scrollable, hint pinned:

Testing
tests/test_metadata.pytests pass.🤖 Generated with Claude Code