Add a few more spare associations
This commit is contained in:
parent
e3f9a01f6b
commit
9c9ce15afc
2 changed files with 16 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
"c": "code",
|
"c": "code",
|
||||||
"conf": "settings",
|
"conf": "settings",
|
||||||
"cpp": "code",
|
"cpp": "code",
|
||||||
|
"cc": "code",
|
||||||
"css": "code",
|
"css": "code",
|
||||||
"doc": "document",
|
"doc": "document",
|
||||||
"docx": "document",
|
"docx": "document",
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
"hbs": "template",
|
"hbs": "template",
|
||||||
"htm": "template",
|
"htm": "template",
|
||||||
"html": "template",
|
"html": "template",
|
||||||
|
"svelte": "template",
|
||||||
"hpp": "code",
|
"hpp": "code",
|
||||||
"ico": "image",
|
"ico": "image",
|
||||||
"ini": "settings",
|
"ini": "settings",
|
||||||
|
@ -34,6 +36,7 @@
|
||||||
"lock": "lock",
|
"lock": "lock",
|
||||||
"log": "log",
|
"log": "log",
|
||||||
"md": "document",
|
"md": "document",
|
||||||
|
"mdx": "document",
|
||||||
"mp3": "audio",
|
"mp3": "audio",
|
||||||
"mp4": "video",
|
"mp4": "video",
|
||||||
"ods": "document",
|
"ods": "document",
|
||||||
|
@ -56,6 +59,17 @@
|
||||||
"rtf": "document",
|
"rtf": "document",
|
||||||
"scm": "code",
|
"scm": "code",
|
||||||
"sh": "terminal",
|
"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",
|
"sql": "code",
|
||||||
"svg": "image",
|
"svg": "image",
|
||||||
"swift": "code",
|
"swift": "code",
|
||||||
|
|
|
@ -43,6 +43,8 @@ impl FileAssociations {
|
||||||
iife!({
|
iife!({
|
||||||
let this = cx.has_global::<Self>().then(|| cx.global::<Self>())?;
|
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!({
|
iife!({
|
||||||
let suffix = path
|
let suffix = path
|
||||||
.file_name()
|
.file_name()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue