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?