Open InSyncWithFoo opened 2 months ago
Note: Backslashes also work as markdown newline indicators (and are more obvious than double spaces) demo. But if the goal is to also display the same string in a terminal, then yeah two spaces is probably the best.
Thanks for opening this issue. I agree, the output in PyCharm isn't ideal.
I assume that the hover text in PyCharm comes from the JSON schema. If that's the case, I would prefer a local change in the schema generation to use \
over the somewhat obscure use of two spaces at the end of the line.
It wasn't the schema (it would have been great if that was the case, though); I triggered the renderer semi-manually. (Yes, I could have asked for the JSON and put it together myself, too, but that's beside the point.)
Submitting a PR.
@MichaReiser -- Is there still something to do here given the PR was closed?
ruff config
only supports the output format text
and json
. The ask in this issue is to add a markdown
output format.
It turned out that the format wasn't as nice compared to other popups of the same kind, so I rendered it manually anyway. It took more efforts than I expected, but behold the result:
I'll keep this issue open, though, since someone else might need it.
This looks great!
Currently, the output of a
config
command is something like this:In the terminal, this looks nice:
For example, here's how PyCharm renders it:
A possible fix is to append two spaces to the end of the first two lines in question (Commonmark dingus):
Also, default values and types should be surrounded in backticks.