tview icon indicating copy to clipboard operation
tview copied to clipboard

word wrap on List

Open jbrodriguez opened this issue 1 year ago • 1 comments

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

jbrodriguez avatar Jul 02 '22 16:07 jbrodriguez

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)

rivo avatar Jul 09 '22 12:07 rivo