[GH-ISSUE #741] word wrap on List #545

Closed
opened 2026-03-04 01:05:54 +03:00 by kerem · 1 comment
Owner

Originally created by @jbrodriguez on GitHub (Jul 2, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/741

how to achieve word wrap on list items ?

Screen Shot 2022-07-02 at 11 03 53

there's text after you which is cut by the terminal window size.

if not using a list, any other suggestion on how to do it ?

i looked at grid, but each column of a grid is independent, so you lose the list behavior

Originally created by @jbrodriguez on GitHub (Jul 2, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/741 how to achieve word wrap on list items ? ![Screen Shot 2022-07-02 at 11 03 53](https://user-images.githubusercontent.com/1305422/177007899-1e69683a-cec0-444e-a017-e329037919bc.png) there's text after `you` which is cut by the terminal window size. if not using a list, any other suggestion on how to do it ? i looked at grid, but each column of a grid is independent, so you lose the list behavior
kerem closed this issue 2026-03-04 01:05:54 +03:00
Author
Owner

@rivo commented on GitHub (Jul 9, 2022):

Lists don't implement word-wrapping and likely won't in the future. Word-wrapping is implemented in TextView. If you use "regions" in a text view, you can highlight parts of the text. You can then also override the keys using SetInputCapture() to fit your needs.

(See also #588)

<!-- gh-comment-id:1179536687 --> @rivo commented on GitHub (Jul 9, 2022): Lists don't implement word-wrapping and likely won't in the future. Word-wrapping is implemented in `TextView`. If you use "regions" in a text view, you can highlight parts of the text. You can then also override the keys using [`SetInputCapture()`](https://pkg.go.dev/github.com/rivo/tview#Box.SetInputCapture) to fit your needs. (See also #588)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#545
No description provided.