-
Notifications
You must be signed in to change notification settings - Fork 34
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
Show only one indent guide in hanging indent. #11
Comments
I can investigate making it an extension preference. |
Thank you very much :) |
@tomekwi, I played with this a bit this week. I haven't been able to figure out how to grab the previous line indentation from within the CodeMirror overlay tokenizer. It doesn't have a good way to grab information outside of the context of the current line it is parsing. I posted a question on it at: https://groups.google.com/forum/#!topic/codemirror/tqukojpq_8g Let's see what they say. |
@tomekwi, I am closing this issue as a What this means is I am stuck and I am asking for help from the community. A link to this issue will go into the extension README.md file so that others can find it and offer ideas and solutions as well. I think this is a better solution than just leaving the issue open forever or closing it as If, at any point in the future, a good solution emerges, I will reopen and add this enhancement. |
Thanks for taking your time, anyway. |
This is a feature suggestion.
A picture is worth a thousand words. What we have at the moment:
Looks prettier:
We could detect whether the next line is a hanging indent by checking the number of indent tabs compared to the previous line. If the difference is more than +1 tab, this is a hanging indent – we can show only one guide.
The text was updated successfully, but these errors were encountered: