altsql-shell
altsql-shell copied to clipboard
Narrowest possible display without wrapping
If your table has long column names but short values, most of the rendering is of white space:
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
┃ thumb_large_height ┃ thumb_large_width ┃ thumb_small_height ┃ thumb_small_width ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ 0 │ 0 │ 75 │ 100 │
│ 0 │ 0 │ 0 │ 0 │
│ 0 │ 0 │ 0 │ 0 │
│ 113 │ 150 │ 75 │ 100 │
│ 113 │ 150 │ 75 │ 100 │
│ 150 │ 113 │ 100 │ 75 │
│ 113 │ 150 │ 75 │ 100 │
│ 113 │ 150 │ 75 │ 100 │
│ 113 │ 150 │ 75 │ 100 │
│ 113 │ 150 │ 75 │ 100 │
└────────────────────┴───────────────────┴────────────────────┴───────────────────┘
Find a way to make this more narrow. Perhaps allow the header to span multiple lines:
thumb_large_height thumb_small_height
| thumb_large_width | thumb_small_width
v v v v
+----------+----------+-------------+--------------+