From 4220b6f41eda797037016ed0ad0d8a4694a0243a Mon Sep 17 00:00:00 2001 From: jim4067 Date: Sun, 3 Oct 2021 13:16:47 +0300 Subject: [PATCH] add lz4 file type and icon --- src/info/filetype.rs | 2 +- src/output/icons.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/info/filetype.rs b/src/info/filetype.rs index 5fb7a26..3011d5f 100644 --- a/src/info/filetype.rs +++ b/src/info/filetype.rs @@ -80,7 +80,7 @@ impl FileExtensions { file.extension_is_one_of( &[ "zip", "tar", "Z", "z", "gz", "bz2", "a", "ar", "7z", "iso", "dmg", "tc", "rar", "par", "tgz", "xz", "txz", - "lz", "tlz", "lzma", "deb", "rpm", "zst", + "lz", "tlz", "lzma", "deb", "rpm", "zst", "lz4", ]) } diff --git a/src/output/icons.rs b/src/output/icons.rs index efeacb6..eb7666a 100644 --- a/src/output/icons.rs +++ b/src/output/icons.rs @@ -227,6 +227,7 @@ pub fn icon_for_file(file: &File<'_>) -> char { "log" => '\u{f18d}', //  "lua" => '\u{e620}', //  "lz" => '\u{f410}', //  + "lz4" => '\u{f410}', //  "lzh" => '\u{f410}', //  "lzma" => '\u{f410}', //  "lzo" => '\u{f410}', // 