Hello everyone!
One of the most enticing features of SLT for me are the multiple cursors combined with the “find_under_expand” feature, but I’m continuously running into a little issue.
When selecting a token, SLT automatically highlights all other tokens. (I can’t add attachments, so I’ll try to show it with markup)
For example, when selecting “is”, SLT will highlight the 2nd “is”, but not the ‘is’ that is part of “This”. That means it highlights all ‘is’-tokens, not just all occurences of ‘is’
This [is] a sample text. It [is] meant to clarify what I mean.
However when I then use find_under_expand, it will select all occurences of ‘is’ it finds
Th[is] [is] a sample text. It [is] meant to clarify what I mean.
Is there a way to make find_under_expand behave like the token highlighting feature?
I would be ok with writing some Python, but not with completely duplicating the tokenizer of SLT