Skip to content
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

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

Open
IntendedConsequence opened this issue Dec 23, 2018 · 2 comments

Comments

@IntendedConsequence
Copy link

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.

sublime_zk/sublime_zk.py

Lines 2371 to 2382 in f8336c1

def on_activated(self, view):
self.update_note_link_highlights(view)
# Async listeners for ST3
def on_load_async(self, view):
global AUTO_SHOW_IMAGES
self.update_note_link_highlights_async(view)
if AUTO_SHOW_IMAGES:
view.run_command('zk_show_images')
def on_modified_async(self, view):
self.update_note_link_highlights_async(view)

@renerocksai
Copy link
Owner

renerocksai commented Dec 23, 2018 via email

@arcturus140
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants