hatch icon indicating copy to clipboard operation
hatch copied to clipboard

Unfortunate default environments display in narrow terminals

Open Midnighter opened this issue 1 year ago • 2 comments

When running hatch env show in a narrow terminal, I got the following output. I think the default focuses on the wrong columns. I definitely always want to see the Name column.

                                          Standalone
┏┳┳━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━┳┓
┃┃┃ Dependencies            ┃ Environment variables                                      ┃ … ┃┃
┡╇╇━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━╇┩
│││                         │                                                            │   ││
├┼┼─────────────────────────┼────────────────────────────────────────────────────────────┼───┼┤
│││ dagster-webserver~=1.7  │ DAGSTER_HOME=/home/my/very/long/absolute/project/path…     │ … ││
├┼┼─────────────────────────┼────────────────────────────────────────────────────────────┼───┼┤
│││ pydoclint               │                                                            │ … ││
│││ ruff                    │                                                            │ … ││
│││                         │                                                            │ … ││
├┼┼─────────────────────────┼────────────────────────────────────────────────────────────┼───┼┤
│││ safety                  │                                                            │ … ││
├┼┼─────────────────────────┼────────────────────────────────────────────────────────────┼───┼┤
│││ mypy                    │                                                            │ … ││
├┼┼─────────────────────────┼────────────────────────────────────────────────────────────┼───┼┤
│││ mkdocs-awesome-pages-p… │                                                            │ … ││
│││ mkdocs-material~=9.5    │                                                            │ … ││
│││ mkdocstrings[python]~=… │                                                            │   ││
├┼┼─────────────────────────┼────────────────────────────────────────────────────────────┼───┼┤
│││ pip                     │                                                            │ … ││
│││ twine                   │                                                            │   ││
└┴┴─────────────────────────┴────────────────────────────────────────────────────────────┴───┴┘

Midnighter avatar Jul 14 '24 22:07 Midnighter

the output definitely sucks, sorry about that. do you have any idea if the issue is with code here or in Rich?

ofek avatar Jul 14 '24 23:07 ofek

If you haven't done anything special, my guess is rich.

Midnighter avatar Jul 15 '24 05:07 Midnighter