Merge pull request #957 from hellosway/patch-1

Recognize .jxl and .avif as image files
This commit is contained in:
Mélanie Chauvel 2021-10-03 01:11:01 +02:00 committed by GitHub
commit a7aca35d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@ impl FileExtensions {
"png", "jfi", "jfif", "jif", "jpe", "jpeg", "jpg", "gif", "bmp", "png", "jfi", "jfif", "jif", "jpe", "jpeg", "jpg", "gif", "bmp",
"tiff", "tif", "ppm", "pgm", "pbm", "pnm", "webp", "raw", "arw", "tiff", "tif", "ppm", "pgm", "pbm", "pnm", "webp", "raw", "arw",
"svg", "stl", "eps", "dvi", "ps", "cbr", "jpf", "cbz", "xpm", "svg", "stl", "eps", "dvi", "ps", "cbr", "jpf", "cbz", "xpm",
"ico", "cr2", "orf", "nef", "heif", "ico", "cr2", "orf", "nef", "heif", "avif", "jxl",
]) ])
} }

View File

@ -110,6 +110,7 @@ pub fn icon_for_file(file: &File<'_>) -> char {
"apk" => '\u{e70e}', //  "apk" => '\u{e70e}', // 
"apple" => '\u{f179}', //  "apple" => '\u{f179}', // 
"avi" => '\u{f03d}', //  "avi" => '\u{f03d}', // 
"avif" => '\u{f1c5}', // 
"avro" => '\u{e60b}', //  "avro" => '\u{e60b}', // 
"awk" => '\u{f489}', //  "awk" => '\u{f489}', // 
"bash" => '\u{f489}', //  "bash" => '\u{f489}', // 
@ -215,6 +216,7 @@ pub fn icon_for_file(file: &File<'_>) -> char {
"js" => '\u{e74e}', //  "js" => '\u{e74e}', // 
"json" => '\u{e60b}', //  "json" => '\u{e60b}', // 
"jsx" => '\u{e7ba}', //  "jsx" => '\u{e7ba}', // 
"jxl" => '\u{f1c5}', // 
"ksh" => '\u{f489}', //  "ksh" => '\u{f489}', // 
"latex" => '\u{f034}', //  "latex" => '\u{f034}', // 
"less" => '\u{e758}', //  "less" => '\u{e758}', // 