mirror of
https://github.com/lsd-rs/lsd
synced 2025-03-04 23:17:15 +00:00
Code Review
This commit is contained in:
parent
dc720e5403
commit
447b0e93c3
2 changed files with 3 additions and 4 deletions
|
@ -15,6 +15,7 @@ pub enum Elem {
|
||||||
CharDevice,
|
CharDevice,
|
||||||
Socket,
|
Socket,
|
||||||
Special,
|
Special,
|
||||||
|
ExecutableFile,
|
||||||
|
|
||||||
/// Permissions
|
/// Permissions
|
||||||
Read,
|
Read,
|
||||||
|
@ -37,9 +38,6 @@ pub enum Elem {
|
||||||
FileLarge,
|
FileLarge,
|
||||||
FileMedium,
|
FileMedium,
|
||||||
FileSmall,
|
FileSmall,
|
||||||
|
|
||||||
/// Misc
|
|
||||||
ExecutableFile,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type ColoredString<'a> = ANSIString<'a>;
|
pub type ColoredString<'a> = ANSIString<'a>;
|
||||||
|
@ -110,7 +108,7 @@ impl Colors {
|
||||||
m.insert(Elem::FileSmall, Colour::Fixed(229)); // Wheat1
|
m.insert(Elem::FileSmall, Colour::Fixed(229)); // Wheat1
|
||||||
m.insert(Elem::FileMedium, Colour::Fixed(216)); // LightSalmon1
|
m.insert(Elem::FileMedium, Colour::Fixed(216)); // LightSalmon1
|
||||||
m.insert(Elem::FileLarge, Colour::Fixed(172)); // Orange3
|
m.insert(Elem::FileLarge, Colour::Fixed(172)); // Orange3
|
||||||
m.insert(Elem::ExecutableFile, Colour::Fixed(47)); // Green
|
m.insert(Elem::ExecutableFile, Colour::Fixed(40)); // Green3
|
||||||
|
|
||||||
m
|
m
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,7 @@ impl Meta {
|
||||||
permissions,
|
permissions,
|
||||||
name,
|
name,
|
||||||
file_type,
|
file_type,
|
||||||
|
permissions,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue