more icons

This commit is contained in:
Guilleag01
2023-11-11 22:11:00 +01:00
parent 67615b17ad
commit cae5f4a097
3 changed files with 13 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ fn print_elements(
print_size_and_creation_date(e);
let num_splits =
get_string_length(e.get_name().as_str()) / (name_length - (3 + 2 * current_depth));
get_string_length(e.get_name().as_str()) / (name_length - (2 + 2 * current_depth));
for j in 1..num_splits + 1 {
let mut e_name = String::from("");

View File

@@ -63,20 +63,29 @@ pub fn get_icon_file_type<'a>(filename: String) -> &'a str {
"zip" | "rar" | "7zip" | "tar" | "gz" | "tgz" => "󰗄 ",
"flv" | "avi" | "mp4" | "webm" | "mov" => "",
"config" | "toml" | "yaml" | "conf" => "󰒓 ",
"exe" | "bat" | "dll" => "",
"exe" | "bat" | "dll" | "msi" => "",
"mp3" | "wav" | "ogg" => "",
"java" | "jar" => "",
"py" | "ipynb" => "",
"csv" | "sql" => "",
"ttf" | "fnt" => "",
"gitignore" => "",
"b" | "bf" => "󰧑 ",
"json" => "",
"html" => "",
"csv" => " ",
"lock" => "󰌾 ",
"cpp" => "",
"pdf" => "",
"css" => "",
"bin" => "",
"asm" => "",
"txt" => "",
"xml" => "󰗀 ",
"lua" => "",
"php" => "",
"rs" => "",
"py" => "",
"js" => "",
"sh" => "",
"c" => "",
_ => "󰈔 ",
}