diff -r 7c282bf19646 -r 5beaa25bdfbe src/eric7/Preferences/ConfigurationPages/EditorTypingPage.py --- a/src/eric7/Preferences/ConfigurationPages/EditorTypingPage.py Sat Sep 09 17:20:31 2023 +0200 +++ b/src/eric7/Preferences/ConfigurationPages/EditorTypingPage.py Sun Sep 10 18:04:28 2023 +0200 @@ -33,6 +33,7 @@ " ": self.stackedWidget.indexOf(self.emptyPage), "Python": self.stackedWidget.indexOf(self.pythonPage), "Ruby": self.stackedWidget.indexOf(self.rubyPage), + "TOML": self.stackedWidget.indexOf(self.tomlPage), "YAML": self.stackedWidget.indexOf(self.yamlPage), } @@ -113,6 +114,33 @@ Preferences.getEditorTyping("Ruby/InsertInlineDoc") ) + # TOML + self.tomlGroup.setChecked(Preferences.getEditorTyping("Toml/EnabledTypingAids")) + self.tomlInsertClosingBraceCheckBox.setChecked( + Preferences.getEditorTyping("Toml/InsertClosingBrace") + ) + self.tomlSkipBraceCheckBox.setChecked( + Preferences.getEditorTyping("Toml/SkipBrace") + ) + self.tomlInsertQuoteCheckBox.setChecked( + Preferences.getEditorTyping("Toml/InsertQuote") + ) + self.tomlAutoIndentationCheckBox.setChecked( + Preferences.getEditorTyping("Toml/AutoIndentation") + ) + self.tomlColonDetectionCheckBox.setChecked( + Preferences.getEditorTyping("Toml/ColonDetection") + ) + self.tomlInsertBlankEqualCheckBox.setChecked( + Preferences.getEditorTyping("Toml/InsertBlankEqual") + ) + self.tomlInsertBlankColonCheckBox.setChecked( + Preferences.getEditorTyping("Toml/InsertBlankColon") + ) + self.tomlInsertBlankCommaCheckBox.setChecked( + Preferences.getEditorTyping("Toml/InsertBlankComma") + ) + # YAML self.yamlGroup.setChecked(Preferences.getEditorTyping("Yaml/EnabledTypingAids")) self.yamlInsertClosingBraceCheckBox.setChecked( @@ -217,6 +245,35 @@ "Ruby/InsertInlineDoc", self.rubyInsertInlineDocCheckBox.isChecked() ) + # TOML + Preferences.setEditorTyping( + "Toml/EnabledTypingAids", self.tomlGroup.isChecked() + ) + Preferences.setEditorTyping( + "Toml/InsertClosingBrace", self.tomlInsertClosingBraceCheckBox.isChecked() + ) + Preferences.setEditorTyping( + "Toml/SkipBrace", self.tomlSkipBraceCheckBox.isChecked() + ) + Preferences.setEditorTyping( + "Toml/InsertQuote", self.tomlInsertQuoteCheckBox.isChecked() + ) + Preferences.setEditorTyping( + "Toml/AutoIndentation", self.tomlAutoIndentationCheckBox.isChecked() + ) + Preferences.setEditorTyping( + "Toml/ColonDetection", self.tomlColonDetectionCheckBox.isChecked() + ) + Preferences.setEditorTyping( + "Toml/InsertBlankEqual", self.tomlInsertBlankEqualCheckBox.isChecked() + ) + Preferences.setEditorTyping( + "Toml/InsertBlankColon", self.tomlInsertBlankColonCheckBox.isChecked() + ) + Preferences.setEditorTyping( + "Toml/InsertBlankComma", self.tomlInsertBlankCommaCheckBox.isChecked() + ) + # YAML Preferences.setEditorTyping( "Yaml/EnabledTypingAids", self.yamlGroup.isChecked()