diff --git a/src/file/fileexcludefilters.cpp b/src/file/fileexcludefilters.cpp --- a/src/file/fileexcludefilters.cpp +++ b/src/file/fileexcludefilters.cpp @@ -64,17 +64,28 @@ "*.orig", ".histfile.*", ".xsession-errors*", - - // Compiled files + "*.js.map", + "*.css.map," + "*.so", + "*.a", + "*.db", + "*.pluginmap", + "*.qrc", + "*.init", + + // Bytecode files "*.class", // Java "*.pyc", // Python + "*.pyo", // More Python "*.elc", // Emacs Lisp + "*.qmlc", // QML + "*.jsc", // Javascript // end of list nullptr }; -const int s_defaultFileExcludeFiltersVersion = 2; +const int s_defaultFileExcludeFiltersVersion = 3; const char* const s_defaultFolderExcludeFilters[] = { "po", @@ -95,7 +106,13 @@ ".obj", ".pch", ".uic", + ".npm", + ".yarn", + ".yarn-cache", "__pycache__", + "node_modules", + "node_packages", + "nbproject", //misc "core-dumps", @@ -105,7 +122,7 @@ nullptr }; -const int s_defaultFolderExcludeFiltersVersion = 1; +const int s_defaultFolderExcludeFiltersVersion = 2; const char* const s_sourceCodeMimeTypes[] = { "text/css", @@ -120,10 +137,19 @@ "text/x-ruby", "text/x-scheme", "text/x-pascal", + "text/x-fortran", + "text/x-erlang", + "text/x-cmake", + "text/x-lua", "text/x-yacc", "text/x-sed", "text/x-haskell", + "text/x-copying", // COPYING files + "text/x-readme", // README files "text/asp", + "text/jsx", + "text/csx", + "text/vnd.trolltech.linguist", "application/x-awk", "application/x-cgi", "application/x-csh", @@ -134,11 +160,18 @@ "application/x-php", "application/x-python", "application/x-sh", + "application/xml", + "application/javascript", + "application/json", + "application/geo+json", + "application/json-patch+json", + "application/ld+json", + "application/x-ipynb+json", // Jupyter notebooks // end of list nullptr }; -const int s_sourceCodeMimeTypesVersion = 1; +const int s_sourceCodeMimeTypesVersion = 2; }