shell_gpt
shell_gpt copied to clipboard
Don't align markdown titles to the center, but to the left
- See screenshot. It just makes things more difficult to read. Any chance to align them properly?
- Side question: `sgpt --repl 'temp' 'my question' doesn't submit the question. See in the screenshot i had to submit another line ("go") to get it to answer. why?
regarding your second question, it looks like the logic for handling all types of stdin is tricky (source)
I agree that the centered headings are hard to read. However, this seems to be built into the "rich" library: https://rich.readthedocs.io/en/latest/_modules/rich/markdown.html (search for "Heading" and look at "align")
It can be overridden, but not by a simple config change. One would need to override the default behaviour, which is prone to error and unintended consequences...
There is actually a PR to Rich to fix this: https://github.com/Textualize/rich/pull/3830