Skip to content

"Compact" table layout #548

@pete-woods

Description

@pete-woods

Description

At the moment, if you use glamour.WithWordWrap(terminalWidth), tables will aim to occupy the full width of your terminal.

If you do not want this, you can set glamour.WithWordWrap(0), however this makes glamour unaware of your terminal's width, so it picks what looks like 120 as the maximum.

Is it possible to support specifying a table layout where they only take up the space they need, up to the specified wrap width (and only them start wrapping or truncating).

This is mainly to make output look nicer when you have a very wide terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions