I was create plugin for auto convert indentaion to tabs on load file.
[code]import sublime, sublime_plugin
class ConvertToTabsOnLoad(sublime_plugin.EventListener):
def on_load(self, view):
if view.settings().get(āconvert_to_tabs_on_loadā) == 1:
view.run_command(āunexpand_tabsā, {āargsā: {āset_translate_tabsā: True}})
[/code]
but always file status set to modified status after open file.
I want check detected tab type and size and convert if detected indentation type is space only.
can I check detected indentation type?