Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nukesor opened this issue Apr 6, 2024 · 0 comments
Open

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

Nukesor opened this issue Apr 6, 2024 · 0 comments
Labels
f: help wanted Extra attention is needed t: feature A new feature

Comments

@Nukesor
Copy link
Owner

Nukesor commented Apr 6, 2024

The idea is to allow tables to 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: help wanted Extra attention is needed t: feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant