Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove "line endings" code to separate package

  • Loading branch information...
commit a1e872fdcf302ab4531959bb53b99693063002b5 1 parent c5593c9
@titoBouzout authored
Showing with 1 addition and 22 deletions.
  1. +1 −4 EncodingHelper.sublime-settings
  2. +0 −18 StatusBarLineEndings.py
View
5 EncodingHelper.sublime-settings
@@ -2,13 +2,10 @@
// To show encoding on status bar
"show_encoding_on_status_bar" : true,
- // To show line ending type on status bar
- "show_line_ending_on_status_bar" : true,
-
// Additional encodings to test when no acurrated guess can be done
// NOTE: Don't add ISO-9958-1
"fallback_encodings": [ ],
-
+
// Automatically opens as UTF-8 the following encodings list
// NOTE: Encoding detection is not acurrated
// don't abuse of this feature
View
18 StatusBarLineEndings.py
@@ -1,18 +0,0 @@
-import sublime, sublime_plugin
-
-s = sublime.load_settings('EncodingHelper.sublime-settings')
-
-class StatusBarLineEndings(sublime_plugin.EventListener):
-
- def on_load(self, v):
- if s.get('show_line_ending_on_status_bar'):
- self.show(v)
-
- def on_post_save(self, v):
- if s.get('show_line_ending_on_status_bar'):
- self.show(v)
-
- def show(self, v):
- v.set_status('statusbar_line_endings', v.line_endings());
-
-

0 comments on commit a1e872f

Please sign in to comment.
Something went wrong with that request. Please try again.