You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behaviour:
Currently, when you have nodes to expand to in your twilight config, twilight will expand to whatever the outer most one is. That is, say I have my expand to expand to conditionals, loops, methods, and classes, then I have some code that looks like this.
classFoo:
defbar():
ifcondition:
var=expressionforiincollection:
# do things
Say I have my cursor on line 4, it will highlight every single line of code because it matches to the outermost node, that being the class.
Desired Behaviour:
I'd like it to match to innermost scope/node and no further. That is, if we have the above example, I'd want it to highlight only the conditional. If I had my cursor on line 6 I'd want it to highlight only the for loop.
Ideally, it would do this from within the block but not on the block declaration itself. This means that if I had my cursor on line 3, it's on the conditional line but it considers it considers the closest inner node as the one just above, that being the method. It also prevents annoying cases where you have a one-liner if statement or things like that.
The text was updated successfully, but these errors were encountered:
Current Behaviour:
Currently, when you have nodes to expand to in your twilight config, twilight will expand to whatever the outer most one is. That is, say I have my expand to expand to conditionals, loops, methods, and classes, then I have some code that looks like this.
Say I have my cursor on line 4, it will highlight every single line of code because it matches to the outermost node, that being the class.
Desired Behaviour:
I'd like it to match to innermost scope/node and no further. That is, if we have the above example, I'd want it to highlight only the conditional. If I had my cursor on line 6 I'd want it to highlight only the for loop.
Ideally, it would do this from within the block but not on the block declaration itself. This means that if I had my cursor on line 3, it's on the conditional line but it considers it considers the closest inner node as the one just above, that being the method. It also prevents annoying cases where you have a one-liner if statement or things like that.
The text was updated successfully, but these errors were encountered: