Project eric7

Sat, 10 Dec 2022 19:01:40 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 10 Dec 2022 19:01:40 +0100
branch
eric7
changeset 9603
4c17d54de9a3
parent 9602
28e7f6cdf385
child 9604
12c879b251d6

Project
- Extended the list of default file type associations.

see issue472

docs/changelog.md file | annotate | diff | comparison | revisions
src/eric7/Project/Project.py file | annotate | diff | comparison | revisions
--- a/docs/changelog.md	Sat Dec 10 17:56:44 2022 +0100
+++ b/docs/changelog.md	Sat Dec 10 19:01:40 2022 +0100
@@ -14,6 +14,8 @@
 - Find In Files
     - Added context menu entries in Replace mode to select/deselect all entries
       (e.g. useful for checking big replacement lists for validity).
+- Project
+    - Extended the list of default file type associations.
 - Project Viewer
     - Removed the CORBA and Protobuf viewers to make them available as plugins.
 - Third Party packages
--- a/src/eric7/Project/Project.py	Sat Dec 10 17:56:44 2022 +0100
+++ b/src/eric7/Project/Project.py	Sat Dec 10 19:01:40 2022 +0100
@@ -1,4 +1,4 @@
-# -*- coding: utf-8 -*-
+""# -*- coding: utf-8 -*-
 
 # Copyright (c) 2002 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
 #
@@ -792,7 +792,7 @@
 
     def initFileTypes(self):
         """
-        Public method to initialize the filetype associations with default
+        Public method to initialize the file type associations with default
         values.
         """
         self.__pdata["FILETYPES"] = {
@@ -806,6 +806,10 @@
             "GNUmakefile": "OTHERS",
             "makefile": "OTHERS",
             "Makefile": "OTHERS",
+            "*.ini": "OTHERS",
+            "*.cfg": "OTHERS",
+            "*.toml": "OTHERS",
+            "*.json": "OTHERS",
         }
 
         # Sources

eric ide

mercurial