Alright, I got around to rewriting it.
gist.github.com/1136448
It’s bug free as far as I can tell. I don’t think it’s possible to make it really friendly with large files past a timer which I personally find kind of meh. For it to get any better it probably just has to be implemented internally.
Quick run down of the options:
[code]‘indent_guides_enabled’: true
Enables indent guides.
‘indent_guides_max_file_characters’: 524288
The max file size a file is allowed to be and have indent guides.
‘indent_guides_scope’: ‘comment’
The scope name assigned to guides.
‘indent_guides_active_scope’: ‘indent_guides_scope’
The scope name assigned to active guides.
[NOTE] To enable active guides you have to set this option. Active guides
default to the same scope as inactive guides.
‘indent_guides_hide_in_selection’: true
Indent guides will be hidden within selections.
‘indent_guides_hide_on_line’: true
Indent guides will not be drawn on the current line.
[NOTE] This only applies to empty selections.
‘indent_guides_active_wrap_to_text’: true
If true, the active guide will always be the deepest guide on the cursor’s line.
If false, the active guide will be the guide closest to the left of the cursor.[/code]