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

Only show indent guides when text is present on line #15

Closed
lkcampbell opened this issue May 27, 2014 · 1 comment
Closed

Only show indent guides when text is present on line #15

lkcampbell opened this issue May 27, 2014 · 1 comment

Comments

@lkcampbell
Copy link
Owner

Per #13, add an extension preference to only show indent guides when text is present on line.

@lkcampbell
Copy link
Owner Author

@LeinardoSmith, I looked into adding this enhancement this weekend.

I can add an extension preference that does not draw indent guides on a current line until it contains non-whitespace characters, but I can't back up to previous lines and make them draw the guides as well. Assuming you want this functionality to function the same as Sublime Text, it cannot be done using CodeMirror overlays.

Same problem as the one in issue #11.

CodeMirror overlays only function within the context of the current line that is being parsed. There is no way that I know of to jump to previous lines and parse them again after subsequent line text has been changed.

I am closing this issue as a code challenge. It is a new issue category I created for issues and enhancements that I have unsuccessfully attempted to solve.

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 wont fix.

If, at any point in the future, a good solution emerges, I will reopen and add this enhancement.

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

1 participant