From 54f69d42a02cdb0c4c3d3aca7ef7b0f90bb3679b Mon Sep 17 00:00:00 2001 From: DungSaga Date: Thu, 14 May 2015 16:02:05 +0700 Subject: [PATCH 1/2] fix typo --- colorcoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colorcoder.py b/colorcoder.py index c917830..50e3108 100644 --- a/colorcoder.py +++ b/colorcoder.py @@ -67,7 +67,7 @@ def on_load(self,view): return if view.size() > set.get('max_size') and not view.settings().get('forcecolorcode',False): - sublime.status_message("File is too big, disabling colorcoding as it might hurt perfromance") + sublime.status_message("File is too big, disabling colorcoding as it might hurt performance") colorcoder.remove_colorcode(view) view.settings().set('colorcode',False) return From 0ea227f196ab5f67ffe20e5af2d291ced341cadf Mon Sep 17 00:00:00 2001 From: DungSaga Date: Mon, 13 Nov 2017 11:27:36 +0700 Subject: [PATCH 2/2] fix #66: color scheme is modified twice When color scheme is modified by another package (such as SublimeLinter), Colorcoder should not modify it again. Currently, Colorcoder added its scopes and appends "(Colorcoded)" to color scheme name twice. --- colorcoder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/colorcoder.py b/colorcoder.py index 50e3108..62bee7c 100644 --- a/colorcoder.py +++ b/colorcoder.py @@ -177,15 +177,15 @@ def panel_callback(self, text): def maybefixscheme(): set = sublime.load_settings("colorcoder.sublime-settings") if set.get('auto_apply_on_scheme_change'): - if sublime.load_settings("Preferences.sublime-settings").get('color_scheme').find('/Colorcoder/') == -1: + if sublime.load_settings("Preferences.sublime-settings").get('color_scheme').find('(Colorcoded)') == -1: colorshemeemodifier.modify_color_scheme(set.get('lightness'),set.get('saturation')) @staticmethod def modify_color_scheme(l,s,read_original = False): read_original = read_original and sublime.load_settings("Preferences.sublime-settings").has("original_color_scheme") - if read_original and sublime.load_settings("Preferences.sublime-settings").get('color_scheme').find('/Colorcoder/') == -1: + if read_original and sublime.load_settings("Preferences.sublime-settings").get('color_scheme').find('(Colorcoded)') == -1: read_original = False - if read_original and sublime.load_settings("Preferences.sublime-settings").get('original_color_scheme').find('/Colorcoder/') != -1: + if read_original and sublime.load_settings("Preferences.sublime-settings").get('original_color_scheme').find('(Colorcoded)') != -1: print("original theme already colorcoded, abort") return global modification_running