Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add more icons using glyphs from NerdFonts 3.2.0 release & more #680

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/info/filetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
"jpg" => FileType::Image,
"jpx" => FileType::Image,
"jxl" => FileType::Image,
"kra" => FileType::Image,
"krz" => FileType::Image,
"nef" => FileType::Image,
"odg" => FileType::Image,
"orf" => FileType::Image,
Expand Down Expand Up @@ -266,6 +268,8 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
"bkp" => FileType::Temp,
"crdownload" => FileType::Temp,
"download" => FileType::Temp,
"fcbak" => FileType::Temp,
"fcstd1" => FileType::Temp,
"fdmdownload"=> FileType::Temp,
"part" => FileType::Temp,
"swn" => FileType::Temp,
Expand Down Expand Up @@ -293,7 +297,7 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
"pyo" => FileType::Compiled, // Python optimized code
"so" => FileType::Compiled, // Unix shared library
"zwc" => FileType::Compiled, // zsh compiled file
/* Source code */
/* Source code files */
"applescript"=> FileType::Source, // Apple script
"as" => FileType::Source, // Action script
"asa" => FileType::Source, // asp
Expand Down Expand Up @@ -327,6 +331,8 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
"exs" => FileType::Source, // Elixir
"f" => FileType::Source, // Fortran
"f90" => FileType::Source, // Fortran
"fcmacro" => FileType::Source, // FreeCAD macro
"fcscript" => FileType::Source, // FreeCAD script
"fnl" => FileType::Source, // Fennel
"for" => FileType::Source, // Fortran
"fs" => FileType::Source, // F#
Expand All @@ -342,11 +348,13 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
"h++" => FileType::Source, // C/C++ header
"hh" => FileType::Source, // C/C++ header
"hpp" => FileType::Source, // C/C++ header
"hc" => FileType::Source, // HolyC
"hs" => FileType::Source, // Haskell
"htc" => FileType::Source, // JavaScript
"hxx" => FileType::Source, // C/C++ header
"inc" => FileType::Source,
"inl" => FileType::Source, // C/C++ Microsoft
"ino" => FileType::Source, // Arduino
"ipynb" => FileType::Source, // Jupyter Notebook
"ixx" => FileType::Source, // C/C++ module
"java" => FileType::Source, // Java
Expand Down Expand Up @@ -388,6 +396,7 @@ const EXTENSION_TYPES: Map<&'static str, FileType> = phf_map! {
"sass" => FileType::Source, // Sass
"scala" => FileType::Source, // Scala
"scm" => FileType::Source, // Scheme
"scad" => FileType::Source, // OpenSCAD
"scss" => FileType::Source, // Sass
"sld" => FileType::Source, // Scheme Library Definition
"sql" => FileType::Source, // SQL
Expand Down
Loading
Loading