There are two issues I have with the current treatment of indentation guides:
- When the cursor is scrolled out of the view, any coloring of the active guide is lost. This makes the guide much less useful for large blocks (not coincidentally, those are where guides are most useful).
For reference, my guide’s .tmTheme:
<key>guide</key>
<string>#cccccc</string>
<key>stackGuide</key>
<string>#cccccc</string>
<key>activeGuide</key>
<string>#444444</string>
- The “active” guide should take braces into account, so that when the cursor is beside braces that block’s guide is active. Currently most active guides are “off by one”. See below:
0 1
| A
| if (true) {B
| | exit; D
| }C
With the cursor at positions A, B, or C, the active guide is at level 0. At position D, the active guide is level 1. I think positions B and C should also be level 1 (A stays level 0 since it is not beside a cursor). This is the behavior of Komodo Edit as well.