src/eric7/Utilities/MimeTypes.py

branch
eric7
changeset 9559
34fc53e6159d
parent 9534
5ed8445f3b31
child 9563
8ee667840224
--- a/src/eric7/Utilities/MimeTypes.py	Sun Dec 04 10:34:43 2022 +0100
+++ b/src/eric7/Utilities/MimeTypes.py	Sun Dec 04 11:58:37 2022 +0100
@@ -22,6 +22,9 @@
     @rtype bool
     """
     mimetype = mimetypes.guess_type(filename)[0]
+    # TODO: add a dialog to ask if the file is a text file in case mimetype is None
+    #       and option is not set
+    # TODO: add capability to define additional text file patterns for fnmatch test
     return (mimetype is None and Preferences.getUI("LoadUnknownMimeTypeFiles")) or (
         mimetype is not None
         and (

eric ide

mercurial