Skip to content

Commit

Permalink
Merge pull request rmaksim#4 from kutu/master
Browse files Browse the repository at this point in the history
add setting "force_use_upper_case_for_hex_color"
  • Loading branch information
rmaksim committed Jan 12, 2012
2 parents 4067e20 + 0a4a8e9 commit 39654bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion inc_dec_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def load_settings(self):
"action_dec_max": -10,
"action_inc_all": 100,
"action_dec_all": -100,
"enums": []
"enums": [],
"force_use_upper_case_for_hex_color": False
}
self.settings = {}
settings = sublime.load_settings(__name__ + '.sublime-settings')
Expand Down Expand Up @@ -151,6 +152,9 @@ def apply_hex_color(self):
char = hex(int(char, 16) + delta & 0xf)[2:]
new_word += char

if self.settings.get("force_use_upper_case_for_hex_color"):
new_word = new_word.upper()

self.replace(new_word, tmp_reg)

return True
Expand Down
4 changes: 3 additions & 1 deletion inc_dec_value.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@
, ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]
, ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"]
]
}

, "force_use_upper_case_for_hex_color": false
}

0 comments on commit 39654bd

Please sign in to comment.