-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor: allow specifying character for "space" in -A
mode
#1056
Comments
I've been poking about in the code, and picking a character is pretty straightforward . The syntax coloring is currently linked to the heavy dot character, which I haven't been able to fix (yet). The syntax is something like: However, it adds another parameter to This feature adds only a little bloat but sets a precedent for heavy customizations. I think the feature is useful, but I'm not sure if it should be added. @sharkdp, is this something that should be added? |
Thank you for reporting this. TBH, I'd rather not add a new command-line option for this. There would be so many other things to configure/control on the same level. Maybe we should rather try to improve the default option? I agree that the current display of the space character and the color are maybe a bit too much. How about trying to use a less vibrant color? I'm also fine with a less heavy central-dot character. |
Maybe switch to "·" (U+00B7) Middle Dot from "•" (U+2022) Bullet? I couldn't make the colors work after 10 seconds of fiddling, but here's the difference:
|
Sounds good to me
You need to adapt |
Aha! That's what I was missing. Is that documented anywhere, or passed on by word of mouth? |
Changed in v0.16.0. |
Right now, spaces are visualized as heavy dots:
which is fine, but sometimes I'd prefer something a bit less overwhelming, while still being able to count my YAML indent.
It would be a nice addition to allow specifying the unicode char and/or color to use for the space-replacement char.
The text was updated successfully, but these errors were encountered: