rivo / tview

Terminal UI library with rich, interactive widgets — written in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[List] add gap between list items

cybardev opened this issue · comments

Apologies if this has been answered somewhere before, but I wasn't able to find it on the Wiki, Docs, or Issues.

How would I add gaps between list items so they don't seem like one big thing?

image

I tried putting a newline at the start of the primary text, and at the end of the secondary text, but that doesn't work (obviously, I suppose, but had to check).

I don't want to get into layouts if not needed. I feel like there's a simpler way I'm missing...

@cybardev There is no way to do this with the current list component.

However I do have suggestions for being able to enhance visibility.

  • Add a under/over-line to primary/secondary texts
  • Dim or darken/fade the secondary text to make it not the same brightness/lightness as the primary text
  • when adding/creating/editing list items, alternate the primary/secondary colors
  • for each entry add a shortcut key/letter so that there are "bullets" on each entry (have a []rune("abcdef...12...90") that pops chars off when adding/creating

hope one of these will help