Skip to content

Make strings taller than the screen readable - #41

Merged
ArthurSonzogni merged 1 commit into
mainfrom
long-string-hscroll
Sep 19, 2026
Merged

ArthurSonzogni merged 1 commit into
mainfrom
long-string-hscroll

Conversation

@ArthurSonzogni

@ArthurSonzogni ArthurSonzogni commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner

Strings taller than the screen couldn't be fully read.

Wrap strings to the available width. While a string is focused, a cursor
selects one row and the view follows it (up/down, page-up/page-down,
home/end). Strings taller than 5 rows are collapsed; enter/space toggles.

Also update FTXUI to v7.0.3.

Supersedes #39. Thanks @laurentalsina.

@ArthurSonzogni

Copy link
Copy Markdown
Owner Author

@laurentalsina, what do you think about this?

@laurentalsina

Copy link
Copy Markdown

Ok Merci beaucoup. I keep my fork and rebase & some day a PR comes for a feature-flag.

In any case I would never put as much data in a single json string as the BEAM agentic benchmark does, so my solution was niche.

@ArthurSonzogni ArthurSonzogni changed the title Display long strings on a single line, scrollable horizontally Make strings taller than the screen readable Sep 19, 2026
Wrap strings to the available width. While a string is focused, a cursor
selects one row and the view follows it. Strings taller than 5 rows are
collapsed; enter/space toggles.

Also update FTXUI to v7.0.3.
@ArthurSonzogni

Copy link
Copy Markdown
Owner Author

@laurentalsina, what do you think about the next iteration?

I added support for text wrapping, focus on the lines, abutton to expand very long text content, and performance optimization (e.g. displaying only the visible lines)

test-2026-09-19_16.49.15.mp4

Please let me know if that's great and I will submit a new json-tui version.

@ArthurSonzogni
ArthurSonzogni merged commit b2d0212 into main Sep 19, 2026
6 checks passed
@laurentalsina

Copy link
Copy Markdown

yes it's a better design for most use cases

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.

2 participants