Skip to content
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

indent_guide_options - add color option with special values #6485

Open
9b528120 opened this issue Sep 13, 2024 · 0 comments
Open

indent_guide_options - add color option with special values #6485

9b528120 opened this issue Sep 13, 2024 · 0 comments

Comments

@9b528120
Copy link

9b528120 commented Sep 13, 2024

Problem description

when scrolling up and down, it'd be easier to tell the level of indentation across blocks if the guide line was color coded.

Preferred solution

Add new property indent_guide_color_options

Can take the following values:

  • <color code>: all guides are rendered with this color
  • rainbow: the deepest indentation is found, then that many color stops are applied to the rainbow (ROYGBVioletPink) to determine the color. In this case, red is always first, pink is always last, etc.
  • random: hard code a random color for each level of indentation. Hard-coded for consistency across files/machines.
  • [list of color codes]: use indentation depth as index (-1), pull that color from this list. Out of bounds defaults to gray.

Alternatives

I tried to extend the built-in syntax/theme files to background-color the indentations but it was too much. Coloring the guide line is more subtle/less distracting.

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant