Started implementing a typing completer for Yaml.

Sat, 28 Sep 2019 19:03:56 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 28 Sep 2019 19:03:56 +0200
changeset 7280
eb15faf0e3e2
parent 7279
d02fe4c17413
child 7281
8087ef6df2e4

Started implementing a typing completer for Yaml.

eric6/Preferences/ConfigurationPages/EditorTypingPage.py file | annotate | diff | comparison | revisions
eric6/Preferences/__init__.py file | annotate | diff | comparison | revisions
eric6/QScintilla/TypingCompleters/__init__.py file | annotate | diff | comparison | revisions
--- 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:

eric ide

mercurial