mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 13:25:51 +03:00
[GH-ISSUE #588] Feature: New AdvancedList widget #431
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#431
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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
TextViewto achieve something similar.@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.
@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
TextViewand highlighting is done with regions.@rivo commented on GitHub (Nov 9, 2021):
You can reopen if this issue requires further discussion.