sublime_zk icon indicating copy to clipboard operation
sublime_zk copied to clipboard

Sublime_zk highlights tags in all open files of all extensions and syntaxes

Open IntendedConsequence opened this issue 6 years ago • 2 comments

I spent some time reading the code, commenting lines here and there and found out that these three methods receive events for absolutely all views and modify them. I put if 'sublime_zk' in view.settings().get('syntax'): in the beginning of these methods and looks like it stopped that heresy.

https://github.com/renerocksai/sublime_zk/blob/f8336c167546bf609d0abc998fc7364795beb18e/sublime_zk.py#L2371-L2382

IntendedConsequence avatar Dec 23 '18 17:12 IntendedConsequence

Wow! Yeah, well spotted! It never bothered me, I am not even sure I ever noticed it. Good catch! Put on my list :-)

Thx -Rene

On Sun, Dec 23, 2018 at 6:29 PM C T [email protected] wrote:

I spent some time reading the code, commenting lines here and there and found out that these three methods receive events for absolutely all views and modify them. I put if 'sublime_zk' in view.settings().get('syntax'): in the beginning of these methods and looks like it stopped that heresy.

https://github.com/renerocksai/sublime_zk/blob/f8336c167546bf609d0abc998fc7364795beb18e/sublime_zk.py#L2371-L2382

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/renerocksai/sublime_zk/issues/88, or mute the thread https://github.com/notifications/unsubscribe-auth/Addgpz7nuXzfsdutPz3zb4HVcXoBg1nRks5u771sgaJpZM4Zf7NV .

renerocksai avatar Dec 23 '18 17:12 renerocksai

not only does this affect highlighting. Every file is processed by the plugin. For example for the file main.cc

#include <iostream>

a new tag is added called include.

arcturus140 avatar Aug 21 '20 12:08 arcturus140