2018-03-27 14:58:26 +00:00
|
|
|
|
use ansi_term::Style;
|
2018-12-07 23:43:31 +00:00
|
|
|
|
|
|
|
|
|
use crate::fs::File;
|
|
|
|
|
use crate::info::filetype::FileExtensions;
|
2020-04-08 00:08:19 +00:00
|
|
|
|
use lazy_static::lazy_static;
|
|
|
|
|
use std::collections::HashMap;
|
2018-03-22 23:13:02 +00:00
|
|
|
|
|
2020-10-10 18:49:46 +00:00
|
|
|
|
|
2018-03-27 17:00:38 +00:00
|
|
|
|
pub trait FileIcon {
|
2020-10-13 00:36:41 +00:00
|
|
|
|
fn icon_file(&self, file: &File<'_>) -> Option<char>;
|
2018-03-27 17:00:38 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-10-10 18:49:46 +00:00
|
|
|
|
|
2020-10-10 14:30:19 +00:00
|
|
|
|
#[derive(Copy, Clone)]
|
2018-03-27 17:00:38 +00:00
|
|
|
|
pub enum Icons {
|
|
|
|
|
Audio,
|
|
|
|
|
Image,
|
|
|
|
|
Video,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Icons {
|
2020-10-10 14:30:19 +00:00
|
|
|
|
pub fn value(self) -> char {
|
|
|
|
|
match self {
|
2020-10-10 18:49:46 +00:00
|
|
|
|
Self::Audio => '\u{f001}',
|
|
|
|
|
Self::Image => '\u{f1c5}',
|
|
|
|
|
Self::Video => '\u{f03d}',
|
2018-03-27 17:00:38 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-10 18:49:46 +00:00
|
|
|
|
|
2020-10-24 17:29:28 +00:00
|
|
|
|
/// Converts the style used to paint a file name into the style that should be
|
|
|
|
|
/// used to paint an icon.
|
|
|
|
|
///
|
|
|
|
|
/// - The background colour should be preferred to the foreground colour, as
|
|
|
|
|
/// if one is set, it’s the more “obvious” colour choice.
|
|
|
|
|
/// - If neither is set, just use the default style.
|
|
|
|
|
/// - Attributes such as bold or underline should not be used to paint the
|
|
|
|
|
/// icon, as they can make it look weird.
|
Cleanup clippy warnings
warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
--> src/output/escape.rs:4:1
|
4 | pub fn escape<'a>(string: String, bits: &mut Vec<ANSIString<'a>>, good: Style, bad: Style) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
warning: this lifetime isn't used in the function definition
--> src/output/escape.rs:4:15
|
4 | pub fn escape<'a>(string: String, bits: &mut Vec<ANSIString<'_>>, good: Style, bad: Style) {
| ^^
|
warning: single-character string constant used as pattern
--> src/output/table.rs:310:41
|
310 | if file.starts_with(":") {
| ^^^ help: try using a `char` instead: `':'`
|
warning: single-character string constant used as pattern
--> src/output/table.rs:310:41
|
310 | if file.starts_with(":") {
| ^^^ help: try using a `char` instead: `':'`
|
warning: methods called `new` usually return `Self`
--> src/output/render/git.rs:38:5
|
38 | fn new(&self) -> Style;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
warning: this lifetime isn't used in the function definition
--> src/output/icons.rs:40:22
|
40 | pub fn iconify_style<'a>(style: Style) -> Style {
| ^^
|
warning: lint `clippy::find_map` has been removed: this lint has been replaced by `manual_find_map`, a more specific lint
--> src/main.rs:11:10
|
11 | #![allow(clippy::find_map)]
| ^^^^^^^^^^^^^^^^
|
warning: redundant else block
--> src/fs/dir.rs:124:18
|
124 | else {
| __________________^
125 | | return None
126 | | }
| |_____________^
|
warning: redundant else block
--> src/options/view.rs:60:18
|
60 | else {
| __________________^
61 | | // the --tree case is handled by the DirAction parser later
62 | | return Ok(Self::Details(details));
63 | | }
| |_____________^
|
warning: all variants have the same postfix: `Bytes`
--> src/output/table.rs:170:1
|
170 | / pub enum SizeFormat {
171 | |
172 | | /// Format the file size using **decimal** prefixes, such as “kilo”,
173 | | /// “mega”, or “giga”.
... |
181 | | JustBytes,
182 | | }
| |_^
|
warning: all variants have the same postfix: `Bytes`
--> src/output/table.rs:171:1
|
171 | / pub enum SizeFormat {
172 | |
173 | | /// Format the file size using **decimal** prefixes, such as “kilo”,
174 | | /// “mega”, or “giga”.
... |
182 | | JustBytes,
183 | | }
| |_^
|
warning: useless use of `format!`
--> src/options/mod.rs:181:50
|
181 | return Err(OptionsError::Unsupported(format!(
| __________________________________________________^
182 | | "Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa"
183 | | )));
| |_____________^ help: consider using `.to_string()`: `"Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa".to_string()`
|
warning: stripping a prefix manually
--> src/fs/filter.rs:287:33
|
287 | if n.starts_with('.') { &n[1..] }
| ^^^^^^^
|
warning: case-sensitive file extension comparison
--> src/info/filetype.rs:24:19
|
24 | file.name.ends_with(".ninja") ||
| ^^^^^^^^^^^^^^^^^^^
|
2021-04-30 13:37:31 +00:00
|
|
|
|
pub fn iconify_style(style: Style) -> Style {
|
2020-10-24 17:29:28 +00:00
|
|
|
|
style.background.or(style.foreground)
|
2020-10-24 17:16:38 +00:00
|
|
|
|
.map(Style::from)
|
|
|
|
|
.unwrap_or_default()
|
2018-03-22 23:13:02 +00:00
|
|
|
|
}
|
2018-03-25 01:18:49 +00:00
|
|
|
|
|
2020-10-10 18:49:46 +00:00
|
|
|
|
|
2020-04-08 00:08:19 +00:00
|
|
|
|
|
|
|
|
|
lazy_static! {
|
|
|
|
|
static ref MAP_BY_NAME: HashMap<&'static str, char> = {
|
|
|
|
|
let mut m = HashMap::new();
|
|
|
|
|
m.insert(".Trash", '\u{f1f8}'); //
|
|
|
|
|
m.insert(".atom", '\u{e764}'); //
|
|
|
|
|
m.insert(".bashprofile", '\u{e615}'); //
|
|
|
|
|
m.insert(".bashrc", '\u{f489}'); //
|
|
|
|
|
m.insert(".git", '\u{f1d3}'); //
|
|
|
|
|
m.insert(".gitattributes", '\u{f1d3}'); //
|
|
|
|
|
m.insert(".gitconfig", '\u{f1d3}'); //
|
|
|
|
|
m.insert(".github", '\u{f408}'); //
|
|
|
|
|
m.insert(".gitignore", '\u{f1d3}'); //
|
|
|
|
|
m.insert(".gitmodules", '\u{f1d3}'); //
|
|
|
|
|
m.insert(".rvm", '\u{e21e}'); //
|
|
|
|
|
m.insert(".vimrc", '\u{e62b}'); //
|
|
|
|
|
m.insert(".vscode", '\u{e70c}'); //
|
|
|
|
|
m.insert(".zshrc", '\u{f489}'); //
|
|
|
|
|
m.insert("Cargo.lock", '\u{e7a8}'); //
|
|
|
|
|
m.insert("bin", '\u{e5fc}'); //
|
|
|
|
|
m.insert("config", '\u{e5fc}'); //
|
|
|
|
|
m.insert("docker-compose.yml", '\u{f308}'); //
|
2021-02-27 20:48:00 +00:00
|
|
|
|
m.insert("Dockerfile", '\u{f308}'); //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
m.insert("ds_store", '\u{f179}'); //
|
|
|
|
|
m.insert("gitignore_global", '\u{f1d3}'); //
|
2022-03-17 17:05:37 +00:00
|
|
|
|
m.insert("gradle", '\u{e256}'); //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
m.insert("gruntfile.coffee", '\u{e611}'); //
|
|
|
|
|
m.insert("gruntfile.js", '\u{e611}'); //
|
|
|
|
|
m.insert("gruntfile.ls", '\u{e611}'); //
|
|
|
|
|
m.insert("gulpfile.coffee", '\u{e610}'); //
|
|
|
|
|
m.insert("gulpfile.js", '\u{e610}'); //
|
|
|
|
|
m.insert("gulpfile.ls", '\u{e610}'); //
|
|
|
|
|
m.insert("hidden", '\u{f023}'); //
|
|
|
|
|
m.insert("include", '\u{e5fc}'); //
|
|
|
|
|
m.insert("lib", '\u{f121}'); //
|
|
|
|
|
m.insert("localized", '\u{f179}'); //
|
2021-09-03 16:10:15 +00:00
|
|
|
|
m.insert("Makefile", '\u{f489}'); //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
m.insert("node_modules", '\u{e718}'); //
|
|
|
|
|
m.insert("npmignore", '\u{e71e}'); //
|
2021-12-11 02:21:03 +00:00
|
|
|
|
m.insert("PKGBUILD", '\u{f303}'); //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
m.insert("rubydoc", '\u{e73b}'); //
|
|
|
|
|
m.insert("yarn.lock", '\u{e718}'); //
|
|
|
|
|
|
|
|
|
|
m
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-24 17:03:36 +00:00
|
|
|
|
pub fn icon_for_file(file: &File<'_>) -> char {
|
2018-03-27 17:00:38 +00:00
|
|
|
|
let extensions = Box::new(FileExtensions);
|
2020-10-10 18:49:46 +00:00
|
|
|
|
|
2020-04-08 00:08:19 +00:00
|
|
|
|
if let Some(icon) = MAP_BY_NAME.get(file.name.as_str()) { *icon }
|
|
|
|
|
else if file.points_to_directory() {
|
|
|
|
|
match file.name.as_str() {
|
2021-02-27 20:43:42 +00:00
|
|
|
|
"bin" => '\u{e5fc}', //
|
|
|
|
|
".git" => '\u{f1d3}', //
|
|
|
|
|
".idea" => '\u{e7b5}', //
|
|
|
|
|
_ => '\u{f115}' //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
}
|
2020-10-10 18:49:46 +00:00
|
|
|
|
}
|
2020-04-08 00:08:19 +00:00
|
|
|
|
else if let Some(icon) = extensions.icon_file(file) { icon }
|
2020-04-19 04:33:42 +00:00
|
|
|
|
else if let Some(ext) = file.ext.as_ref() {
|
|
|
|
|
match ext.as_str() {
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"ai" => '\u{e7b4}', //
|
|
|
|
|
"android" => '\u{e70e}', //
|
|
|
|
|
"apk" => '\u{e70e}', //
|
|
|
|
|
"apple" => '\u{f179}', //
|
|
|
|
|
"avi" => '\u{f03d}', //
|
2021-09-27 23:36:17 +00:00
|
|
|
|
"avif" => '\u{f1c5}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"avro" => '\u{e60b}', //
|
|
|
|
|
"awk" => '\u{f489}', //
|
|
|
|
|
"bash" => '\u{f489}', //
|
|
|
|
|
"bash_history" => '\u{f489}', //
|
|
|
|
|
"bash_profile" => '\u{f489}', //
|
|
|
|
|
"bashrc" => '\u{f489}', //
|
|
|
|
|
"bat" => '\u{f17a}', //
|
2022-01-04 23:10:24 +00:00
|
|
|
|
"bats" => '\u{f489}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"bmp" => '\u{f1c5}', //
|
|
|
|
|
"bz" => '\u{f410}', //
|
|
|
|
|
"bz2" => '\u{f410}', //
|
|
|
|
|
"c" => '\u{e61e}', //
|
|
|
|
|
"c++" => '\u{e61d}', //
|
|
|
|
|
"cab" => '\u{e70f}', //
|
|
|
|
|
"cc" => '\u{e61d}', //
|
|
|
|
|
"cfg" => '\u{e615}', //
|
|
|
|
|
"class" => '\u{e256}', //
|
|
|
|
|
"clj" => '\u{e768}', //
|
|
|
|
|
"cljs" => '\u{e76a}', //
|
2021-04-12 21:23:51 +00:00
|
|
|
|
"cls" => '\u{f034}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"cmd" => '\u{e70f}', //
|
|
|
|
|
"coffee" => '\u{f0f4}', //
|
|
|
|
|
"conf" => '\u{e615}', //
|
|
|
|
|
"cp" => '\u{e61d}', //
|
2022-03-18 07:51:06 +00:00
|
|
|
|
"cpio" => '\u{f410}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"cpp" => '\u{e61d}', //
|
|
|
|
|
"cs" => '\u{f81a}', //
|
|
|
|
|
"csh" => '\u{f489}', //
|
|
|
|
|
"cshtml" => '\u{f1fa}', //
|
|
|
|
|
"csproj" => '\u{f81a}', //
|
|
|
|
|
"css" => '\u{e749}', //
|
|
|
|
|
"csv" => '\u{f1c3}', //
|
|
|
|
|
"csx" => '\u{f81a}', //
|
|
|
|
|
"cxx" => '\u{e61d}', //
|
|
|
|
|
"d" => '\u{e7af}', //
|
|
|
|
|
"dart" => '\u{e798}', //
|
|
|
|
|
"db" => '\u{f1c0}', //
|
|
|
|
|
"deb" => '\u{e77d}', //
|
|
|
|
|
"diff" => '\u{f440}', //
|
|
|
|
|
"djvu" => '\u{f02d}', //
|
|
|
|
|
"dll" => '\u{e70f}', //
|
|
|
|
|
"doc" => '\u{f1c2}', //
|
|
|
|
|
"docx" => '\u{f1c2}', //
|
|
|
|
|
"ds_store" => '\u{f179}', //
|
|
|
|
|
"DS_store" => '\u{f179}', //
|
|
|
|
|
"dump" => '\u{f1c0}', //
|
|
|
|
|
"ebook" => '\u{e28b}', //
|
2022-01-03 04:37:47 +00:00
|
|
|
|
"ebuild" => '\u{f30d}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"editorconfig" => '\u{e615}', //
|
|
|
|
|
"ejs" => '\u{e618}', //
|
|
|
|
|
"elm" => '\u{e62c}', //
|
|
|
|
|
"env" => '\u{f462}', //
|
|
|
|
|
"eot" => '\u{f031}', //
|
|
|
|
|
"epub" => '\u{e28a}', //
|
|
|
|
|
"erb" => '\u{e73b}', //
|
|
|
|
|
"erl" => '\u{e7b1}', //
|
|
|
|
|
"ex" => '\u{e62d}', //
|
|
|
|
|
"exe" => '\u{f17a}', //
|
|
|
|
|
"exs" => '\u{e62d}', //
|
|
|
|
|
"fish" => '\u{f489}', //
|
|
|
|
|
"flac" => '\u{f001}', //
|
|
|
|
|
"flv" => '\u{f03d}', //
|
|
|
|
|
"font" => '\u{f031}', //
|
2021-04-26 05:05:05 +00:00
|
|
|
|
"fs" => '\u{e7a7}', //
|
|
|
|
|
"fsi" => '\u{e7a7}', //
|
|
|
|
|
"fsx" => '\u{e7a7}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"gdoc" => '\u{f1c2}', //
|
|
|
|
|
"gem" => '\u{e21e}', //
|
|
|
|
|
"gemfile" => '\u{e21e}', //
|
|
|
|
|
"gemspec" => '\u{e21e}', //
|
|
|
|
|
"gform" => '\u{f298}', //
|
|
|
|
|
"gif" => '\u{f1c5}', //
|
|
|
|
|
"git" => '\u{f1d3}', //
|
|
|
|
|
"gitattributes" => '\u{f1d3}', //
|
|
|
|
|
"gitignore" => '\u{f1d3}', //
|
|
|
|
|
"gitmodules" => '\u{f1d3}', //
|
|
|
|
|
"go" => '\u{e626}', //
|
2022-03-17 17:05:37 +00:00
|
|
|
|
"gradle" => '\u{e256}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"groovy" => '\u{e775}', //
|
|
|
|
|
"gsheet" => '\u{f1c3}', //
|
|
|
|
|
"gslides" => '\u{f1c4}', //
|
|
|
|
|
"guardfile" => '\u{e21e}', //
|
|
|
|
|
"gz" => '\u{f410}', //
|
|
|
|
|
"h" => '\u{f0fd}', //
|
|
|
|
|
"hbs" => '\u{e60f}', //
|
|
|
|
|
"hpp" => '\u{f0fd}', //
|
|
|
|
|
"hs" => '\u{e777}', //
|
|
|
|
|
"htm" => '\u{f13b}', //
|
|
|
|
|
"html" => '\u{f13b}', //
|
|
|
|
|
"hxx" => '\u{f0fd}', //
|
|
|
|
|
"ico" => '\u{f1c5}', //
|
|
|
|
|
"image" => '\u{f1c5}', //
|
|
|
|
|
"iml" => '\u{e7b5}', //
|
|
|
|
|
"ini" => '\u{f17a}', //
|
|
|
|
|
"ipynb" => '\u{e606}', //
|
|
|
|
|
"iso" => '\u{e271}', //
|
2022-03-18 09:07:30 +00:00
|
|
|
|
"j2c" => '\u{f1c5}', //
|
|
|
|
|
"j2k" => '\u{f1c5}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"jad" => '\u{e256}', //
|
2022-03-17 17:05:37 +00:00
|
|
|
|
"jar" => '\u{e256}', //
|
|
|
|
|
"java" => '\u{e256}', //
|
2021-07-02 10:02:06 +00:00
|
|
|
|
"jfi" => '\u{f1c5}', //
|
|
|
|
|
"jfif" => '\u{f1c5}', //
|
|
|
|
|
"jif" => '\u{f1c5}', //
|
2021-12-14 12:16:30 +00:00
|
|
|
|
"jl" => '\u{e624}', //
|
2022-01-10 16:46:23 +00:00
|
|
|
|
"jmd" => '\u{f48a}', //
|
2022-03-18 09:07:30 +00:00
|
|
|
|
"jp2" => '\u{f1c5}', //
|
2021-07-02 10:02:06 +00:00
|
|
|
|
"jpe" => '\u{f1c5}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"jpeg" => '\u{f1c5}', //
|
|
|
|
|
"jpg" => '\u{f1c5}', //
|
2022-03-18 09:07:30 +00:00
|
|
|
|
"jpx" => '\u{f1c5}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"js" => '\u{e74e}', //
|
|
|
|
|
"json" => '\u{e60b}', //
|
|
|
|
|
"jsx" => '\u{e7ba}', //
|
2021-09-27 23:36:17 +00:00
|
|
|
|
"jxl" => '\u{f1c5}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"ksh" => '\u{f489}', //
|
2021-04-12 21:23:51 +00:00
|
|
|
|
"latex" => '\u{f034}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"less" => '\u{e758}', //
|
|
|
|
|
"lhs" => '\u{e777}', //
|
|
|
|
|
"license" => '\u{f718}', //
|
|
|
|
|
"localized" => '\u{f179}', //
|
|
|
|
|
"lock" => '\u{f023}', //
|
|
|
|
|
"log" => '\u{f18d}', //
|
|
|
|
|
"lua" => '\u{e620}', //
|
|
|
|
|
"lz" => '\u{f410}', //
|
2021-10-03 10:16:47 +00:00
|
|
|
|
"lz4" => '\u{f410}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"lzh" => '\u{f410}', //
|
|
|
|
|
"lzma" => '\u{f410}', //
|
|
|
|
|
"lzo" => '\u{f410}', //
|
|
|
|
|
"m" => '\u{e61e}', //
|
|
|
|
|
"mm" => '\u{e61d}', //
|
|
|
|
|
"m4a" => '\u{f001}', //
|
|
|
|
|
"markdown" => '\u{f48a}', //
|
|
|
|
|
"md" => '\u{f48a}', //
|
|
|
|
|
"mjs" => '\u{e74e}', //
|
2021-09-03 16:10:15 +00:00
|
|
|
|
"mk" => '\u{f489}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"mkd" => '\u{f48a}', //
|
|
|
|
|
"mkv" => '\u{f03d}', //
|
|
|
|
|
"mobi" => '\u{e28b}', //
|
|
|
|
|
"mov" => '\u{f03d}', //
|
|
|
|
|
"mp3" => '\u{f001}', //
|
|
|
|
|
"mp4" => '\u{f03d}', //
|
|
|
|
|
"msi" => '\u{e70f}', //
|
|
|
|
|
"mustache" => '\u{e60f}', //
|
|
|
|
|
"nix" => '\u{f313}', //
|
|
|
|
|
"node" => '\u{f898}', //
|
|
|
|
|
"npmignore" => '\u{e71e}', //
|
|
|
|
|
"odp" => '\u{f1c4}', //
|
|
|
|
|
"ods" => '\u{f1c3}', //
|
|
|
|
|
"odt" => '\u{f1c2}', //
|
|
|
|
|
"ogg" => '\u{f001}', //
|
|
|
|
|
"ogv" => '\u{f03d}', //
|
|
|
|
|
"otf" => '\u{f031}', //
|
2021-12-15 15:38:30 +00:00
|
|
|
|
"part" => '\u{f43a}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"patch" => '\u{f440}', //
|
|
|
|
|
"pdf" => '\u{f1c1}', //
|
|
|
|
|
"php" => '\u{e73d}', //
|
|
|
|
|
"pl" => '\u{e769}', //
|
|
|
|
|
"png" => '\u{f1c5}', //
|
|
|
|
|
"ppt" => '\u{f1c4}', //
|
|
|
|
|
"pptx" => '\u{f1c4}', //
|
|
|
|
|
"procfile" => '\u{e21e}', //
|
|
|
|
|
"properties" => '\u{e60b}', //
|
|
|
|
|
"ps1" => '\u{f489}', //
|
|
|
|
|
"psd" => '\u{e7b8}', //
|
|
|
|
|
"pxm" => '\u{f1c5}', //
|
|
|
|
|
"py" => '\u{e606}', //
|
|
|
|
|
"pyc" => '\u{e606}', //
|
|
|
|
|
"r" => '\u{f25d}', //
|
|
|
|
|
"rakefile" => '\u{e21e}', //
|
|
|
|
|
"rar" => '\u{f410}', //
|
|
|
|
|
"razor" => '\u{f1fa}', //
|
|
|
|
|
"rb" => '\u{e21e}', //
|
|
|
|
|
"rdata" => '\u{f25d}', //
|
|
|
|
|
"rdb" => '\u{e76d}', //
|
|
|
|
|
"rdoc" => '\u{f48a}', //
|
|
|
|
|
"rds" => '\u{f25d}', //
|
|
|
|
|
"readme" => '\u{f48a}', //
|
|
|
|
|
"rlib" => '\u{e7a8}', //
|
|
|
|
|
"rmd" => '\u{f48a}', //
|
|
|
|
|
"rpm" => '\u{e7bb}', //
|
|
|
|
|
"rs" => '\u{e7a8}', //
|
|
|
|
|
"rspec" => '\u{e21e}', //
|
|
|
|
|
"rspec_parallel"=> '\u{e21e}', //
|
|
|
|
|
"rspec_status" => '\u{e21e}', //
|
|
|
|
|
"rss" => '\u{f09e}', //
|
|
|
|
|
"rtf" => '\u{f718}', //
|
|
|
|
|
"ru" => '\u{e21e}', //
|
|
|
|
|
"rubydoc" => '\u{e73b}', //
|
|
|
|
|
"sass" => '\u{e603}', //
|
|
|
|
|
"scala" => '\u{e737}', //
|
|
|
|
|
"scss" => '\u{e749}', //
|
|
|
|
|
"sh" => '\u{f489}', //
|
|
|
|
|
"shell" => '\u{f489}', //
|
|
|
|
|
"slim" => '\u{e73b}', //
|
|
|
|
|
"sln" => '\u{e70c}', //
|
|
|
|
|
"so" => '\u{f17c}', //
|
|
|
|
|
"sql" => '\u{f1c0}', //
|
|
|
|
|
"sqlite3" => '\u{e7c4}', //
|
2021-05-18 04:12:17 +00:00
|
|
|
|
"sty" => '\u{f034}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"styl" => '\u{e600}', //
|
|
|
|
|
"stylus" => '\u{e600}', //
|
|
|
|
|
"svg" => '\u{f1c5}', //
|
|
|
|
|
"swift" => '\u{e755}', //
|
|
|
|
|
"tar" => '\u{f410}', //
|
|
|
|
|
"taz" => '\u{f410}', //
|
|
|
|
|
"tbz" => '\u{f410}', //
|
|
|
|
|
"tbz2" => '\u{f410}', //
|
2021-04-12 21:23:51 +00:00
|
|
|
|
"tex" => '\u{f034}', //
|
2021-10-02 17:05:32 +00:00
|
|
|
|
"tgz" => '\u{f410}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"tiff" => '\u{f1c5}', //
|
2021-10-02 17:05:32 +00:00
|
|
|
|
"tlz" => '\u{f410}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"toml" => '\u{e615}', //
|
2021-12-15 15:38:30 +00:00
|
|
|
|
"torrent" => '\u{e275}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"ts" => '\u{e628}', //
|
|
|
|
|
"tsv" => '\u{f1c3}', //
|
|
|
|
|
"tsx" => '\u{e7ba}', //
|
|
|
|
|
"ttf" => '\u{f031}', //
|
|
|
|
|
"twig" => '\u{e61c}', //
|
|
|
|
|
"txt" => '\u{f15c}', //
|
2021-10-02 17:05:32 +00:00
|
|
|
|
"txz" => '\u{f410}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"tz" => '\u{f410}', //
|
|
|
|
|
"tzo" => '\u{f410}', //
|
|
|
|
|
"video" => '\u{f03d}', //
|
|
|
|
|
"vim" => '\u{e62b}', //
|
|
|
|
|
"vue" => '\u{fd42}', // ﵂
|
|
|
|
|
"war" => '\u{e256}', //
|
|
|
|
|
"wav" => '\u{f001}', //
|
|
|
|
|
"webm" => '\u{f03d}', //
|
|
|
|
|
"webp" => '\u{f1c5}', //
|
|
|
|
|
"windows" => '\u{f17a}', //
|
|
|
|
|
"woff" => '\u{f031}', //
|
|
|
|
|
"woff2" => '\u{f031}', //
|
|
|
|
|
"xhtml" => '\u{f13b}', //
|
|
|
|
|
"xls" => '\u{f1c3}', //
|
|
|
|
|
"xlsx" => '\u{f1c3}', //
|
2022-01-23 18:52:06 +00:00
|
|
|
|
"xml" => '\u{f121}', //
|
|
|
|
|
"xul" => '\u{f121}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
"xz" => '\u{f410}', //
|
|
|
|
|
"yaml" => '\u{f481}', //
|
|
|
|
|
"yml" => '\u{f481}', //
|
|
|
|
|
"zip" => '\u{f410}', //
|
|
|
|
|
"zsh" => '\u{f489}', //
|
|
|
|
|
"zsh-theme" => '\u{f489}', //
|
|
|
|
|
"zshrc" => '\u{f489}', //
|
2021-12-11 02:04:57 +00:00
|
|
|
|
"zst" => '\u{f410}', //
|
2020-04-08 00:08:19 +00:00
|
|
|
|
_ => '\u{f15b}' //
|
2018-03-25 01:18:49 +00:00
|
|
|
|
}
|
2020-10-10 18:49:46 +00:00
|
|
|
|
}
|
|
|
|
|
else {
|
2020-10-08 21:00:36 +00:00
|
|
|
|
'\u{f016}'
|
2018-03-25 01:18:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|