add lz4 file type and icon

This commit is contained in:
jim4067 2021-10-03 13:16:47 +03:00
parent a7aca35d97
commit 4220b6f41e
2 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,7 @@ impl FileExtensions {
file.extension_is_one_of( &[ file.extension_is_one_of( &[
"zip", "tar", "Z", "z", "gz", "bz2", "a", "ar", "7z", "zip", "tar", "Z", "z", "gz", "bz2", "a", "ar", "7z",
"iso", "dmg", "tc", "rar", "par", "tgz", "xz", "txz", "iso", "dmg", "tc", "rar", "par", "tgz", "xz", "txz",
"lz", "tlz", "lzma", "deb", "rpm", "zst", "lz", "tlz", "lzma", "deb", "rpm", "zst", "lz4",
]) ])
} }

View File

@ -227,6 +227,7 @@ pub fn icon_for_file(file: &File<'_>) -> char {
"log" => '\u{f18d}', //  "log" => '\u{f18d}', // 
"lua" => '\u{e620}', //  "lua" => '\u{e620}', // 
"lz" => '\u{f410}', //  "lz" => '\u{f410}', // 
"lz4" => '\u{f410}', // 
"lzh" => '\u{f410}', //  "lzh" => '\u{f410}', // 
"lzma" => '\u{f410}', //  "lzma" => '\u{f410}', // 
"lzo" => '\u{f410}', //  "lzo" => '\u{f410}', // 