Skip to content

Display mode to hide columns that don't fit #143

@Nukesor

Description

@Nukesor

The idea is to allow tables to be displayed in non Dynamic mode, but truncate columns that don't fit into the width of the current table.

I.e. if there's the terminal is 30 chars wide, and there's a table with a row like this:

| 0123456789 | 0123456789 | 0123456789 |

it would then be displayed like this

| 0123456789 | 0123456789 | ... |

My proposal would be to add a new ContentArrangement::Cutoff mode (or maybe ColumnCutoff?). This mode does mostly the same as Disabled, but cuts off any columns that don't fit into a given width.

This issue is based on a discussion on #124.

If anyone is interested in this, feel free to start working on it. I won't do this myself.

Please add proper documentation and test coverage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions