From 0d3023657b53934f62021397dc93fd83b37de36e Mon Sep 17 00:00:00 2001 From: Grigorii Horos Date: Sat, 3 Aug 2019 23:41:52 +0300 Subject: [PATCH 1/4] Add some icons for files --- src/output/icons.rs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/output/icons.rs b/src/output/icons.rs index 799ead0..9776d73 100644 --- a/src/output/icons.rs +++ b/src/output/icons.rs @@ -52,16 +52,18 @@ fn icon(file: &File) -> char { "android" => '\u{e70e}', "apple" => '\u{f179}', "avro" => '\u{e60b}', - "c" => '\u{e61e}', "clj" => '\u{e768}', "coffee" => '\u{f0f4}', "conf" => '\u{e615}', "cpp" => '\u{e61d}', + "c" => '\u{e61e}', + "h" => '\u{e61e}', "css" => '\u{e749}', "d" => '\u{e7af}', "dart" => '\u{e798}', "db" => '\u{f1c0}', "diff" => '\u{f440}', + "patch" => '\u{f440}', "doc" => '\u{f1c2}', "ebook" => '\u{e28b}', "env" => '\u{f462}', @@ -111,6 +113,22 @@ fn icon(file: &File) -> char { "xml" => '\u{e619}', "yml" => '\u{f481}', "zip" => '\u{f410}', + "deb" => '\u{e77d}', + "rpm" => '\u{e7bb}', + "exe" => '\u{e70f}', + "msi" => '\u{e70f}', + "dll" => '\u{e70f}', + "sh" => '\u{f292}', + "bash" => '\u{f292}', + "zsh" => '\u{f292}', + "fish" => '\u{f292}', + "ini" => '\u{e615}', + "toml" => '\u{e615}', + "apk" => '\u{e70e}', + "ttf" => '\u{f031}', + "woff" => '\u{f031}', + "woff2" => '\u{f031}', + "otf" => '\u{f031}', _ => '\u{f15b}' } } else { From e45fb7a0a7ea316f605c32ef1455648b81ff08e9 Mon Sep 17 00:00:00 2001 From: Grigorii Horos Date: Sun, 4 Aug 2019 00:22:42 +0300 Subject: [PATCH 2/4] Add some icons for files --- src/output/icons.rs | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/src/output/icons.rs b/src/output/icons.rs index 9776d73..e57960f 100644 --- a/src/output/icons.rs +++ b/src/output/icons.rs @@ -56,8 +56,10 @@ fn icon(file: &File) -> char { "coffee" => '\u{f0f4}', "conf" => '\u{e615}', "cpp" => '\u{e61d}', + "hpp" => '\u{e61d}', "c" => '\u{e61e}', "h" => '\u{e61e}', + "cs" => '\u{f81a}', "css" => '\u{e749}', "d" => '\u{e7af}', "dart" => '\u{e798}', @@ -65,6 +67,8 @@ fn icon(file: &File) -> char { "diff" => '\u{f440}', "patch" => '\u{f440}', "doc" => '\u{f1c2}', + "docx" => '\u{f1c2}', + "odt" => '\u{f1c2}', "ebook" => '\u{e28b}', "env" => '\u{f462}', "epub" => '\u{e28a}', @@ -78,12 +82,16 @@ fn icon(file: &File) -> char { "iml" => '\u{e7b5}', "java" => '\u{e204}', "js" => '\u{e74e}', + "mjs" => '\u{e74e}', "json" => '\u{e60b}', "jsx" => '\u{e7ba}', + "vue" => '\u{fd42}', + "node" => '\u{f898}', "less" => '\u{e758}', "log" => '\u{f18d}', "lua" => '\u{e620}', "md" => '\u{f48a}', + "markdown" => '\u{f48a}', "mustache" => '\u{e60f}', "npmignore" => '\u{e71e}', "pdf" => '\u{f1c1}', @@ -105,11 +113,11 @@ fn icon(file: &File) -> char { "styl" => '\u{e600}', "tex" => '\u{e600}', "ts" => '\u{e628}', + "tsx" => '\u{e628}', "twig" => '\u{e61c}', "txt" => '\u{f15c}', "video" => '\u{f03d}', "vim" => '\u{e62b}', - "xls" => '\u{f1c3}', "xml" => '\u{e619}', "yml" => '\u{f481}', "zip" => '\u{f410}', @@ -118,10 +126,11 @@ fn icon(file: &File) -> char { "exe" => '\u{e70f}', "msi" => '\u{e70f}', "dll" => '\u{e70f}', - "sh" => '\u{f292}', - "bash" => '\u{f292}', - "zsh" => '\u{f292}', - "fish" => '\u{f292}', + "sh" => '\u{e795}', + "bash" => '\u{e795}', + "zsh" => '\u{e795}', + "fish" => '\u{e795}', + "csh" => '\u{e795}', "ini" => '\u{e615}', "toml" => '\u{e615}', "apk" => '\u{e70e}', @@ -129,6 +138,17 @@ fn icon(file: &File) -> char { "woff" => '\u{f031}', "woff2" => '\u{f031}', "otf" => '\u{f031}', + "csv" => '\u{f1c3}', + "tsv" => '\u{f1c3}', + "xls" => '\u{f1c3}', + "xlsx" => '\u{f1c3}', + "ods" => '\u{f1c3}', + "so" => '\u{f17c}', + "sql" => '\u{f1c0}', + "jar" => '\u{e256}', + "jad" => '\u{e256}', + "war" => '\u{e256}', + "groovy" => '\u{e775}', _ => '\u{f15b}' } } else { From f9540ead5be6678fcd45538071637625c89ace89 Mon Sep 17 00:00:00 2001 From: Grigorii Horos Date: Sun, 4 Aug 2019 01:14:52 +0300 Subject: [PATCH 3/4] Align file --- src/output/icons.rs | 202 ++++++++++++++++++++++---------------------- 1 file changed, 101 insertions(+), 101 deletions(-) diff --git a/src/output/icons.rs b/src/output/icons.rs index e57960f..461e299 100644 --- a/src/output/icons.rs +++ b/src/output/icons.rs @@ -48,108 +48,108 @@ fn icon(file: &File) -> char { else { if let Some(ext) = file.ext.as_ref() { match ext.as_str() { - "ai" => '\u{e7b4}', - "android" => '\u{e70e}', - "apple" => '\u{f179}', - "avro" => '\u{e60b}', - "clj" => '\u{e768}', - "coffee" => '\u{f0f4}', - "conf" => '\u{e615}', - "cpp" => '\u{e61d}', - "hpp" => '\u{e61d}', - "c" => '\u{e61e}', - "h" => '\u{e61e}', - "cs" => '\u{f81a}', - "css" => '\u{e749}', - "d" => '\u{e7af}', - "dart" => '\u{e798}', - "db" => '\u{f1c0}', - "diff" => '\u{f440}', - "patch" => '\u{f440}', - "doc" => '\u{f1c2}', - "docx" => '\u{f1c2}', - "odt" => '\u{f1c2}', - "ebook" => '\u{e28b}', - "env" => '\u{f462}', - "epub" => '\u{e28a}', - "erl" => '\u{e7b1}', - "font" => '\u{f031}', - "gform" => '\u{f298}', - "git" => '\u{f1d3}', - "go" => '\u{e626}', - "hs" => '\u{e777}', - "html" => '\u{f13b}', - "iml" => '\u{e7b5}', - "java" => '\u{e204}', - "js" => '\u{e74e}', - "mjs" => '\u{e74e}', - "json" => '\u{e60b}', - "jsx" => '\u{e7ba}', - "vue" => '\u{fd42}', - "node" => '\u{f898}', - "less" => '\u{e758}', - "log" => '\u{f18d}', - "lua" => '\u{e620}', - "md" => '\u{f48a}', - "markdown" => '\u{f48a}', - "mustache" => '\u{e60f}', + "ai" => '\u{e7b4}', + "android" => '\u{e70e}', + "apple" => '\u{f179}', + "avro" => '\u{e60b}', + "clj" => '\u{e768}', + "coffee" => '\u{f0f4}', + "conf" => '\u{e615}', + "cpp" => '\u{e61d}', + "hpp" => '\u{e61d}', + "c" => '\u{e61e}', + "h" => '\u{e61e}', + "cs" => '\u{f81a}', + "css" => '\u{e749}', + "d" => '\u{e7af}', + "dart" => '\u{e798}', + "db" => '\u{f1c0}', + "diff" => '\u{f440}', + "patch" => '\u{f440}', + "doc" => '\u{f1c2}', + "docx" => '\u{f1c2}', + "odt" => '\u{f1c2}', + "ebook" => '\u{e28b}', + "env" => '\u{f462}', + "epub" => '\u{e28a}', + "erl" => '\u{e7b1}', + "font" => '\u{f031}', + "gform" => '\u{f298}', + "git" => '\u{f1d3}', + "go" => '\u{e626}', + "hs" => '\u{e777}', + "html" => '\u{f13b}', + "iml" => '\u{e7b5}', + "java" => '\u{e204}', + "js" => '\u{e74e}', + "mjs" => '\u{e74e}', + "json" => '\u{e60b}', + "jsx" => '\u{e7ba}', + "vue" => '\u{fd42}', + "node" => '\u{f898}', + "less" => '\u{e758}', + "log" => '\u{f18d}', + "lua" => '\u{e620}', + "md" => '\u{f48a}', + "markdown" => '\u{f48a}', + "mustache" => '\u{e60f}', "npmignore" => '\u{e71e}', - "pdf" => '\u{f1c1}', - "php" => '\u{e73d}', - "pl" => '\u{e769}', - "ppt" => '\u{f1c4}', - "psd" => '\u{e7b8}', - "py" => '\u{e606}', - "r" => '\u{f25d}', - "rb" => '\u{e21e}', - "rdb" => '\u{e76d}', - "rs" => '\u{e7a8}', - "rss" => '\u{f09e}', - "rubydoc" => '\u{e73b}', - "sass" => '\u{e603}', - "scala" => '\u{e737}', - "shell" => '\u{f489}', - "sqlite3" => '\u{e7c4}', - "styl" => '\u{e600}', - "tex" => '\u{e600}', - "ts" => '\u{e628}', - "tsx" => '\u{e628}', - "twig" => '\u{e61c}', - "txt" => '\u{f15c}', - "video" => '\u{f03d}', - "vim" => '\u{e62b}', - "xml" => '\u{e619}', - "yml" => '\u{f481}', - "zip" => '\u{f410}', - "deb" => '\u{e77d}', - "rpm" => '\u{e7bb}', - "exe" => '\u{e70f}', - "msi" => '\u{e70f}', - "dll" => '\u{e70f}', - "sh" => '\u{e795}', - "bash" => '\u{e795}', - "zsh" => '\u{e795}', - "fish" => '\u{e795}', - "csh" => '\u{e795}', - "ini" => '\u{e615}', - "toml" => '\u{e615}', - "apk" => '\u{e70e}', - "ttf" => '\u{f031}', - "woff" => '\u{f031}', - "woff2" => '\u{f031}', - "otf" => '\u{f031}', - "csv" => '\u{f1c3}', - "tsv" => '\u{f1c3}', - "xls" => '\u{f1c3}', - "xlsx" => '\u{f1c3}', - "ods" => '\u{f1c3}', - "so" => '\u{f17c}', - "sql" => '\u{f1c0}', - "jar" => '\u{e256}', - "jad" => '\u{e256}', - "war" => '\u{e256}', - "groovy" => '\u{e775}', - _ => '\u{f15b}' + "pdf" => '\u{f1c1}', + "php" => '\u{e73d}', + "pl" => '\u{e769}', + "ppt" => '\u{f1c4}', + "psd" => '\u{e7b8}', + "py" => '\u{e606}', + "r" => '\u{f25d}', + "rb" => '\u{e21e}', + "rdb" => '\u{e76d}', + "rs" => '\u{e7a8}', + "rss" => '\u{f09e}', + "rubydoc" => '\u{e73b}', + "sass" => '\u{e603}', + "scala" => '\u{e737}', + "shell" => '\u{f489}', + "sqlite3" => '\u{e7c4}', + "styl" => '\u{e600}', + "tex" => '\u{e600}', + "ts" => '\u{e628}', + "tsx" => '\u{e628}', + "twig" => '\u{e61c}', + "txt" => '\u{f15c}', + "video" => '\u{f03d}', + "vim" => '\u{e62b}', + "xml" => '\u{e619}', + "yml" => '\u{f481}', + "zip" => '\u{f410}', + "deb" => '\u{e77d}', + "rpm" => '\u{e7bb}', + "exe" => '\u{e70f}', + "msi" => '\u{e70f}', + "dll" => '\u{e70f}', + "sh" => '\u{e795}', + "bash" => '\u{e795}', + "zsh" => '\u{e795}', + "fish" => '\u{e795}', + "csh" => '\u{e795}', + "ini" => '\u{e615}', + "toml" => '\u{e615}', + "apk" => '\u{e70e}', + "ttf" => '\u{f031}', + "woff" => '\u{f031}', + "woff2" => '\u{f031}', + "otf" => '\u{f031}', + "csv" => '\u{f1c3}', + "tsv" => '\u{f1c3}', + "xls" => '\u{f1c3}', + "xlsx" => '\u{f1c3}', + "ods" => '\u{f1c3}', + "so" => '\u{f17c}', + "sql" => '\u{f1c0}', + "jar" => '\u{e256}', + "jad" => '\u{e256}', + "war" => '\u{e256}', + "groovy" => '\u{e775}', + _ => '\u{f15b}' } } else { '\u{f15b}' From f4f83f4d3771ffdd01eec4c789e2992cdf510cb1 Mon Sep 17 00:00:00 2001 From: Grigorii Horos Date: Sun, 4 Aug 2019 05:40:28 +0300 Subject: [PATCH 4/4] Add some icons for files --- src/output/icons.rs | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/src/output/icons.rs b/src/output/icons.rs index 461e299..2920027 100644 --- a/src/output/icons.rs +++ b/src/output/icons.rs @@ -54,7 +54,6 @@ fn icon(file: &File) -> char { "avro" => '\u{e60b}', "clj" => '\u{e768}', "coffee" => '\u{f0f4}', - "conf" => '\u{e615}', "cpp" => '\u{e61d}', "hpp" => '\u{e61d}', "c" => '\u{e61e}', @@ -66,6 +65,7 @@ fn icon(file: &File) -> char { "db" => '\u{f1c0}', "diff" => '\u{f440}', "patch" => '\u{f440}', + "rtf" => '\u{f1c2}', "doc" => '\u{f1c2}', "docx" => '\u{f1c2}', "odt" => '\u{f1c2}', @@ -78,7 +78,9 @@ fn icon(file: &File) -> char { "git" => '\u{f1d3}', "go" => '\u{e626}', "hs" => '\u{e777}', + "htm" => '\u{f13b}', "html" => '\u{f13b}', + "xhtml" => '\u{f13b}', "iml" => '\u{e7b5}', "java" => '\u{e204}', "js" => '\u{e74e}', @@ -95,22 +97,31 @@ fn icon(file: &File) -> char { "mustache" => '\u{e60f}', "npmignore" => '\u{e71e}', "pdf" => '\u{f1c1}', + "djvu" => '\u{f02d}', + "mobi" => '\u{f02d}', "php" => '\u{e73d}', "pl" => '\u{e769}', "ppt" => '\u{f1c4}', + "pptx" => '\u{f1c4}', + "odp" => '\u{f1c4}', "psd" => '\u{e7b8}', "py" => '\u{e606}', "r" => '\u{f25d}', "rb" => '\u{e21e}', + "ru" => '\u{e21e}', + "erb" => '\u{e21e}', + "gem" => '\u{e21e}', "rdb" => '\u{e76d}', "rs" => '\u{e7a8}', "rss" => '\u{f09e}', "rubydoc" => '\u{e73b}', - "sass" => '\u{e603}', + "sass" => '\u{e74b}', + "stylus" => '\u{e759}', "scala" => '\u{e737}', "shell" => '\u{f489}', "sqlite3" => '\u{e7c4}', "styl" => '\u{e600}', + "latex" => '\u{e600}', "tex" => '\u{e600}', "ts" => '\u{e628}', "tsx" => '\u{e628}', @@ -120,12 +131,31 @@ fn icon(file: &File) -> char { "vim" => '\u{e62b}', "xml" => '\u{e619}', "yml" => '\u{f481}', + "yaml" => '\u{f481}', + "rar" => '\u{f410}', "zip" => '\u{f410}', + "bz" => '\u{f410}', + "bz2" => '\u{f410}', + "xz" => '\u{f410}', + "taz" => '\u{f410}', + "tbz" => '\u{f410}', + "tbz2" => '\u{f410}', + "tz" => '\u{f410}', + "tar" => '\u{f410}', + "tzo" => '\u{f410}', + "lz" => '\u{f410}', + "lzh" => '\u{f410}', + "lzma" => '\u{f410}', + "lzo" => '\u{f410}', + "gz" => '\u{f410}', "deb" => '\u{e77d}', "rpm" => '\u{e7bb}', "exe" => '\u{e70f}', "msi" => '\u{e70f}', "dll" => '\u{e70f}', + "cab" => '\u{e70f}', + "bat" => '\u{e70f}', + "cmd" => '\u{e70f}', "sh" => '\u{e795}', "bash" => '\u{e795}', "zsh" => '\u{e795}', @@ -133,6 +163,8 @@ fn icon(file: &File) -> char { "csh" => '\u{e795}', "ini" => '\u{e615}', "toml" => '\u{e615}', + "cfg" => '\u{e615}', + "conf" => '\u{e615}', "apk" => '\u{e70e}', "ttf" => '\u{f031}', "woff" => '\u{f031}', @@ -147,8 +179,11 @@ fn icon(file: &File) -> char { "sql" => '\u{f1c0}', "jar" => '\u{e256}', "jad" => '\u{e256}', + "class" => '\u{e256}', "war" => '\u{e256}', "groovy" => '\u{e775}', + "iso" => '\u{e271}', + "lock" => '\u{f023}', _ => '\u{f15b}' } } else {