Sat, 28 Sep 2019 19:03:56 +0200
Started implementing a typing completer for Yaml.
--- a/eric6/Preferences/ConfigurationPages/EditorTypingPage.py Sat Sep 28 19:00:43 2019 +0200 +++ b/eric6/Preferences/ConfigurationPages/EditorTypingPage.py Sat Sep 28 19:03:56 2019 +0200 @@ -83,6 +83,8 @@ self.rubyInsertInlineDocCheckBox.setChecked( Preferences.getEditorTyping("Ruby/InsertInlineDoc")) + # TODO: add page for Yaml settings + self.on_languageCombo_activated(' ') def save(self):
--- a/eric6/Preferences/__init__.py Sat Sep 28 19:00:43 2019 +0200 +++ b/eric6/Preferences/__init__.py Sat Sep 28 19:03:56 2019 +0200 @@ -698,6 +698,16 @@ "Ruby/InsertBlank": True, "Ruby/InsertHereDoc": True, "Ruby/InsertInlineDoc": True, + + "Yaml/EnabledTypingAids": True, + "Yaml/InsertClosingBrace": True, + "Yaml/SkipBrace": True, + "Yaml/InsertQuote": True, + "Yaml/IndentAfterColon": True, + "Yaml/ColonDetection": True, + "Yaml/InsertBlankDash": True, + "Yaml/InsertBlankColon": True, + "Yaml/InsertBlankQuestion": True, } editorExporterDefaults = {
--- a/eric6/QScintilla/TypingCompleters/__init__.py Sat Sep 28 19:00:43 2019 +0200 +++ b/eric6/QScintilla/TypingCompleters/__init__.py Sat Sep 28 19:03:56 2019 +0200 @@ -24,6 +24,7 @@ elif language == "Ruby": from .CompleterRuby import CompleterRuby return CompleterRuby(editor, parent) + # TODO: add typing completer for Yaml else: return None except ImportError: