From 09b57ca5e8aca5f2b6f6798ae6d8c6e7799ce4ff Mon Sep 17 00:00:00 2001 From: gigamicro <43441570+gigamicro@users.noreply.github.com> Date: Sat, 30 Oct 2021 22:27:18 -0400 Subject: [PATCH] Add command to autodetect indentation style immediately after load --- mediawiker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mediawiker.py b/mediawiker.py index c97173d..f35de62 100644 --- a/mediawiker.py +++ b/mediawiker.py @@ -207,6 +207,7 @@ def page_open(self, title): with utils.p.settings_hack('translate_tabs_to_spaces', False, disabled=not utils.props.get_setting('not_translate_tabs_on_page_open')): view.run_command(utils.cmd('insert_text'), {'position': 0, 'text': text, 'with_erase': True}) + view.run_command('detect_indentation') if utils.props.get_site_setting(self.site_active, 'show_red_links'): utils.show_red_links(view, page)