shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

Don't align markdown titles to the center, but to the left

Open oryband opened this issue 1 year ago • 2 comments

  • 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?

image

oryband avatar Jun 18 '24 13:06 oryband

regarding your second question, it looks like the logic for handling all types of stdin is tricky (source)

will-wright-eng avatar Jul 16 '24 04:07 will-wright-eng

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

Olen avatar Sep 24 '25 20:09 Olen