charmbracelet / lipgloss

Style definitions for nice terminal layouts 👄
MIT License
8.22k stars 231 forks source link

Consistency accross enumerators #318

Open nervo opened 5 months ago

nervo commented 5 months ago

I'm giving a try to both new lipgloss list component and huh form package, and something catch my attention.

In lipgloss list, an enumerator is both a string ("." for bullet, for instance) AND a style that is applied to.

Conversely, huh takes another approach, where enumerators are just styles, where string is set (lipgloss.NewStyle().SetString("> ")).

While i think i prefer the huh approach, I'm especially concerned about consistency between these two packages and I would like to have your opinion on this "issue".

Lipgloss list is not already officially released, maybe there is something to do :)