altsql-shell icon indicating copy to clipboard operation
altsql-shell copied to clipboard

Narrowest possible display without wrapping

Open ewaters opened this issue 12 years ago • 0 comments

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 
+----------+----------+-------------+--------------+

ewaters avatar May 09 '12 18:05 ewaters