Skip to content

Attempt text reflow in scroll mode to avoid narrow-pane mid-word wraps #47

@guysmoilov

Description

@guysmoilov

Problem

Scrollback captured from a very narrow terminal can contain hard wraps that split words, making scroll mode hard to read on mobile.

Proposal

In scroll mode, attempt a reflow/readability pass so lines render for the current viewport width where feasible, instead of preserving narrow-pane visual wraps verbatim.

Notes

This should be best-effort and must avoid corrupting semantics for cases where exact spacing/alignment is important (tables/code blocks).

Scope

  • Investigate whether reflow can be derived from available scrollback format
  • Apply reflow only in scroll mode presentation layer
  • Provide fallback to raw rendering when safe reflow is not possible

Acceptance Criteria

  • Plain prose output becomes more readable in wider scroll mode views
  • Mid-word narrow-wrap artifacts are reduced when feasible
  • Raw rendering fallback remains available for non-reflow-safe content
  • Tests cover at least one reflowed case and one fallback case

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:frontendFrontend/UI codearea:uxUser experience and interaction designenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions