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 "draw_active" colors all lines from left to active indentation instead of only the active one #1125

Closed
ThaJay opened this issue Mar 1, 2016 · 2 comments

Comments

@ThaJay
Copy link

ThaJay commented Mar 1, 2016

I was planning to file this as an enhancement but just fount out the expected behaviour is actually my preference. at the moment it draws all indentation guides from left gutter to the active one, while it should (or at least I would like it to) only draw the active one. #555 #637 show screenshots of the expected behaviour, but the following is what I am getting:
indent_guide_options-draw_active

@MattDMo
Copy link

MattDMo commented Mar 1, 2016

@ThaJay technically, the behavior you are experiencing is correct. Even though your cursor is inside renderScene, it is also inside the Navigator tag, the return statement, and the top-level curly braces, which is why all those are highlighted.

All of this is controlled by your color scheme. Here is how your code looks using my Neon color scheme and XML syntax highlighting (I wasn't sure what templating language you were using...), with just "draw_active" set in the preferences and the cursor at the same point as yours was:

original code

If we look at the source of Neon.tmTheme in the global settings section, you'll find three relevant keys: activeGuide, guide, and stackGuide:

Neon guide settings

I think what you are looking for is activeGuide - it highlights the immediate block you're in, while stackGuide highlights all of the other blocks you're in above the immediate one. (guide is the color used when "draw_all" is in your preferences, it defaults to the comment scope if not present.)

@ThaJay
Copy link
Author

ThaJay commented Mar 2, 2016

Thank you for the concise answer. I did not know this was part of themes, but you gave me everything I need to change this and ask the theme creator about it.
I knew about the 'draw_normal' + 'draw_active' option array. I do think it's a bit weird SublimeText3 does not offer the third option in the indent_guide_options setting.

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

No branches or pull requests

3 participants