-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Highlight not working on multiples files #356
Comments
I don't really understand. I use multiple files everyday, and I don't have a problem with BH highlighting. I feel like I'm missing something. |
It appears you are using BracketHighlighter and you still have Sublime's default bracket highlighter enabled.
BH works around the Sublime API. If Sublime limits the API in a cloned view, then there is nothing I can do because I need the API to make it work. I imagine Sublime is treating cloned views differently as it is constantly syncing it with the original. |
Thank you very much for your promptness and work. Answers:
I understand, if the events 'on_selection' and 'on_modified' are not created, then it is impossible to BH do it thing. But may be could be some workaround, I cannot say for sure 'cause I do not know about the sublime API/programming. But I can give some thoughts: (workaround) Update by 'polling' instead of 'interruption'Could be registered an event to be called every 0.1 seconds and each time call the command palette 'BracketHighlighter: Match Brackets (ignore threshold)', then we would not need to relay on the sublime's 'on_modified' or 'on_selection' events. On C language it would be an thread which run an while(true) sleeping 0.1 seconds every loop after call the command palette 'BracketHighlighter: Match Brackets (ignore threshold)'. On scripting, where probably we do not have such freedom, the API could provide an event registering where we can create a repeating task to be called on specified intervals as 0.1 seconds. Closing itHence if anything else can be done, we can close this thread or request to the sublime's team to provide one of the tools we need to implement the BH behavior on cloned views. |
It's really not worth it to me to do an elaborate work around for cloned views. I'm afraid at this point in time I am passing on this. Thank you for bringing this to my attention though. It is good to know. |
The first file pointed as green on the below image is working fine, but on the second tab(the same file), is not highlighting properly. It only updates after it is switched to the first tab and switched back to it.
We should be able to see the brackets mark on the below image, but it is not show up properly only on the second tab, or third, forth, etc (if there were).
The text was updated successfully, but these errors were encountered: