Skip to content

πŸ¦₯ Easily display lists as "auto-sizing" multi-columns (πŸ“° style)Β #570

@adriens

Description

@adriens

❔ About

We are currently looking for a way to list item in our glamourish cli.

We curretly list items as a single naive 1-column list... but we would like to enhance UX by making a view like ls does to see more items in a single shot :

Image

πŸ’‘ Idea/Feature request

Is there a way to do this with lipgloss, in such a way ?... I mean without any effort from the developper side ?

For now, the only way for us is to :

  • Get the current terminal size
  • Compute our item max size
  • computer how many columns could fit
  • Do the job

I guess this is a commonly usage pattern, but I could not find any code sample on the repo on how to achieve this with (almost) no effort.

Thank you in advance for your help πŸ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions