Skip to content

Feature Request: Table percentual columns #18

@ikks

Description

@ikks

Hi there, first of all, thank you for zigdown, it offers a great
experience than any other I've seen in CLI.

Please consider adding percentages to columns, the percentage is
expressed in dashes. Each column has at least one character width,
and according to the number of dashes in the heading, the horizontal
space is used with that percentual width, when * is the character used,
that column takes the remaining characters.

I guess this eases the intent of the column to get the biggest space,
regarding alignment I don't have a strong opinion on usage of a
certain indication both for console or html, maybe <,:.> for left,
center and right alignment.

I think the percentage is the one that stands, and, alignment could
be more of a wishlist.

Here is a markup sample:

|?|**Model**|**Result**|
|-|-----------|-------------------------------|
|💗|Gemini 2.5 Flash Pro|Finished on the first try|
|💗|Chatgpt 4.1|Required retry to finish all|
|💗|Chatgpt 4o|Required retry|
|💗|Chatgpt 5-mini|Finished on the first try|
|🤔|Devstral|Converted some colors to vars and did not follow everything|
|💀|Gemini 1.5 series|No result|
|💀|Gemini 2.0 Flash|Did not finish all, two times tried|
|💀|Gemini 2.0 Flash lite|No result|
|💀|Gemini 2.5 Flash|No result|
|💀|Gemini 2.5 Flash Lite preview|No result|

How it looks today

  ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
  ┃ ?                         ┃ Model                     ┃ Result                    ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💗                        ┃ Gemini 2.5 Flash Pro      ┃ Finished on the first try ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💗                        ┃ Chatgpt 4.1               ┃ Required retry to finish  ┃
  ┃                           ┃                           ┃ all                       ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💗                        ┃ Chatgpt 4o                ┃ Required retry            ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💗                        ┃ Chatgpt 5-mini            ┃ Finished on the first try ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 🤔                        ┃ Devstral                  ┃ Converted some colors to  ┃
  ┃                           ┃                           ┃ vars and did not follow   ┃
  ┃                           ┃                           ┃ everything                ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀                        ┃ Gemini 1.5 series         ┃ No result                 ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀                        ┃ Gemini 2.0 Flash          ┃ Did not finish all, two   ┃
  ┃                           ┃                           ┃ times tried               ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀                        ┃ Gemini 2.0 Flash lite     ┃ No result                 ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀                        ┃ Gemini 2.5 Flash          ┃ No result                 ┃
  ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀                        ┃ Gemini 2.5 Flash Lite     ┃ No result                 ┃
  ┃                           ┃ preview                   ┃                           ┃
  ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

How the expectation would be

Replacing the heading with

|-|-----------|*******************************|

would show something like:

  ┏━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
  ┃ ?    ┃ Model                          ┃ Result                                    ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💗   ┃ Gemini 2.5 Flash Pro           ┃ Finished on the first try                 ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💗   ┃ Chatgpt 4.1                    ┃ Required retry to finish all              ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💗   ┃ Chatgpt 4o                     ┃ Required retry                            ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💗   ┃ Chatgpt 5-mini                 ┃ Finished on the first try                 ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 🤔   ┃ Devstral                       ┃ Converted some colors to vars and did not ┃
  ┃      ┃                                ┃ follow                                    ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀   ┃ Gemini 1.5 series              ┃ No result                                 ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀   ┃ Gemini 2.0 Flash               ┃ Did not finish all, two times tried       ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀   ┃ Gemini 2.0 Flash lite          ┃ No result                                 ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀   ┃ Gemini 2.5 Flash               ┃ No result                                 ┃
  ┣━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
  ┃ 💀   ┃ Gemini 2.5 Flash Lite preview  ┃ No result                                 ┃
  ┗━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions