Add a few more spare associations

Mikayla Maki created

Change summary

assets/icons/file_icons/file_types.json       | 14 ++++++++++++++
crates/project_panel/src/file_associations.rs |  2 ++
2 files changed, 16 insertions(+)

Detailed changes

assets/icons/file_icons/file_types.json 🔗

@@ -6,6 +6,7 @@
     "c": "code",
     "conf": "settings",
     "cpp": "code",
+    "cc": "code",
     "css": "code",
     "doc": "document",
     "docx": "document",
@@ -23,6 +24,7 @@
     "hbs": "template",
     "htm": "template",
     "html": "template",
+    "svelte": "template",
     "hpp": "code",
     "ico": "image",
     "ini": "settings",
@@ -34,6 +36,7 @@
     "lock": "lock",
     "log": "log",
     "md": "document",
+    "mdx": "document",
     "mp3": "audio",
     "mp4": "video",
     "ods": "document",
@@ -56,6 +59,17 @@
     "rtf": "document",
     "scm": "code",
     "sh": "terminal",
+    "bashrc": "terminal",
+    "bash_profile": "terminal",
+    "bash_aliases": "terminal",
+    "bash_logout": "terminal",
+    "profile": "terminal",
+    "zshrc": "terminal",
+    "zshenv": "terminal",
+    "zsh_profile": "terminal",
+    "zsh_aliases": "terminal",
+    "zsh_histfile": "terminal",
+    "zlogin": "terminal",
     "sql": "code",
     "svg": "image",
     "swift": "code",

crates/project_panel/src/file_associations.rs 🔗

@@ -43,6 +43,8 @@ impl FileAssociations {
         iife!({
             let this = cx.has_global::<Self>().then(|| cx.global::<Self>())?;
 
+            // FIXME: Associate a type with the languages and have the file's langauge
+            //        override these associations
             iife!({
                 let suffix = path
                     .file_name()