[GH-ISSUE #588] Feature: New AdvancedList widget #431

Closed
opened 2026-03-04 01:04:55 +03:00 by kerem · 4 comments
Owner

Originally created by @mrusme on GitHub (Apr 11, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/588

It would be cool if list items would support either intentional line breaks or auto-wrapping of lines in order to be able to nicely display long lines.

Originally created by @mrusme on GitHub (Apr 11, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/588 It would be cool if list items would support either intentional line breaks or auto-wrapping of lines in order to be able to nicely display long lines.
kerem closed this issue 2026-03-04 01:04:55 +03:00
Author
Owner

@rivo commented on GitHub (Apr 12, 2021):

This would require a complete rewrite of the component as pretty much everything in it is based on the one/two-line-per-item assumption.

It would rather suggest that you use TextView to achieve something similar.

<!-- gh-comment-id:817727040 --> @rivo commented on GitHub (Apr 12, 2021): This would require a complete rewrite of the component as pretty much everything in it is based on the one/two-line-per-item assumption. It would rather suggest that you use `TextView` to achieve something similar.
Author
Owner

@mrusme commented on GitHub (Apr 12, 2021):

Hey @rivo, thank you for getting back! In fact I already used TextView in a different project where no highlighting of the currently active line is required. 👍🏼 However, right now I'm facing the need to have an actual list that can highlight individual items and have a selection callback. From what I saw, this wouldn't be easily possible with a TextView either.

I changed the title of this issue. I would be willing to help with parts of the implementation and definitely with the testing (because I would need that widget right now), however I'm not exactly sure what would be the best way to implement this.

<!-- gh-comment-id:817920551 --> @mrusme commented on GitHub (Apr 12, 2021): Hey @rivo, thank you for getting back! In fact I already used TextView in a different project where no highlighting of the currently active line is required. 👍🏼 However, right now I'm facing the need to have an actual list that can highlight individual items and have a selection callback. From what I saw, this wouldn't be easily possible with a TextView either. I changed the title of this issue. I would be willing to help with parts of the implementation and definitely with the testing (because I would need that widget right now), however I'm not exactly sure what would be the best way to implement this.
Author
Owner

@rivo commented on GitHub (Apr 26, 2021):

Have you tried using regions? If you run the presentation demo included in the repo, you'll find that the bottom line is also implemented using TextView and highlighting is done with regions.

<!-- gh-comment-id:826792117 --> @rivo commented on GitHub (Apr 26, 2021): Have you tried using [regions](https://pkg.go.dev/github.com/rivo/tview#TextView)? If you run the presentation demo included in the repo, you'll find that the bottom line is also implemented using `TextView` and highlighting is done with regions.
Author
Owner

@rivo commented on GitHub (Nov 9, 2021):

You can reopen if this issue requires further discussion.

<!-- gh-comment-id:964271650 --> @rivo commented on GitHub (Nov 9, 2021): You can reopen if this issue requires further discussion.
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#431
No description provided.