spectre.console
spectre.console copied to clipboard
Add table overflow strategies
There should be an option to specify overflow strategies for tables when one or more columns can't be displayed.
- If the table can't be displayed at all (
requested max-width <= 0), show an ellipsis. - Truncate table if it exceeds the requested max-width.
Default
Do nothing to prevent bad rendering.
Yolo
Do nothing to prevent bad rendering. Do not truncate the table or show ellipsis.

Drop
Start dropping columns until content fit.

Ellipsis
Display columns that won't fit with an ellipsis.

Column splitting
Split columns in half until all columns fit.

Row splitting
Split rows so all columns are grouped together even if not all fit.
