Przeglądaj źródła

feat: Add filetype and icon for age

Shun Sakai 1 rok temu
rodzic
commit
4c9ddc7054
2 zmienionych plików z 2 dodań i 0 usunięć
  1. 1 0
      src/info/filetype.rs
  2. 1 0
      src/output/icons.rs

+ 1 - 0
src/info/filetype.rs

@@ -169,6 +169,7 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
     "wav"        => FileType::Lossless,
     "wv"         => FileType::Lossless,
     /* Cryptology files */
+    "age"        => FileType::Crypto, // age encrypted file
     "asc"        => FileType::Crypto, // GnuPG ASCII armored file
     "cer"        => FileType::Crypto,
     "crt"        => FileType::Crypto,

+ 1 - 0
src/output/icons.rs

@@ -325,6 +325,7 @@ const EXTENSION_ICONS: Map<&'static str, char> = phf_map! {
     "a"              => Icons::OS_LINUX,         // 
     "acc"            => Icons::AUDIO,            // 
     "acf"            => '\u{f1b6}',              // 
+    "age"            => Icons::SHIELD_LOCK,      // 󰦝
     "ai"             => '\u{e7b4}',              // 
     "aif"            => Icons::AUDIO,            // 
     "aifc"           => Icons::AUDIO,            // 