Highlight text within backticks when listing recipes
https://github.com/casey/just/issues/2272
Seems reasonable! Needs some tests though. Should definitely test edge cases, like an unclosed backtick, etc.
I could not wrap my head around what split_inclusive was doing, so I replaced it with a regex. This also avoids color codes sometimes when they aren't needed.
Although this type of highlighting could be nice in theory, the chosen color makes it only worse. The white backtick color stands out too much relative to...everything else in the output, to the point of making just --list output a struggle to read. It's especially distracting in the auto-generated descriptions for aliases.
Was going to check whether changing the backtick highlight to bright blue (0;94) would resolve this while still standing out enough, but can't figure out how to specify bright blue in this part of just code?
It looks okay for me, but that's probably just my color theme. I can kinda see how it stands out too much See below. Can you post a screenshot of what it looks like for you?
Cyan might be a good choice, since it goes with blue and is bright. It's the same color used for parameters, but that seems fine, and sometimes you use backticks in doc comments to call out what parameters do:
Changed the color to cyan in #2469. Hopefully that looks good in more color schemes!
It looks okay for me, but that's probably just my color theme.
In your color scheme it would be fine for me too.
Can you post a screenshot of what it looks like for you?
Sure.
White -
Cyan -
The cyan is much better, thanks!