diff options
author | Anas Saeed <saeedanas396@gmail.com> | 2020-10-08 15:53:47 -0700 |
---|---|---|
committer | Anas Saeed <saeedanas396@gmail.com> | 2020-10-08 16:00:18 -0700 |
commit | b9d20f20f1669a9df2bf51f5950555f187015c0e (patch) | |
tree | c92bbe742775966d9b9b166737e4f4ec2c888bd5 /src/config | |
parent | 7ea182e45dad7aa93481e001873798a16494aa10 (diff) |
Added configuraton for showing icons
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/config.rs b/src/config/config.rs index 9fa43f6..8b63c60 100644 --- a/src/config/config.rs +++ b/src/config/config.rs @@ -21,6 +21,8 @@ const fn default_column_ratio() -> (usize, usize, usize) { #[derive(Clone, Debug, Deserialize)] struct SortRawOption { #[serde(default)] + show_icons: bool, + #[serde(default)] show_hidden: bool, #[serde(default = "default_true")] directories_first: bool, @@ -33,6 +35,7 @@ struct SortRawOption { impl SortRawOption { pub fn into_sort_option(self, sort_method: sort::SortType) -> sort::SortOption { sort::SortOption { + show_icons: self.show_icons, show_hidden: self.show_hidden, directories_first: self.directories_first, case_sensitive: self.case_sensitive, @@ -45,6 +48,7 @@ impl SortRawOption { impl std::default::Default for SortRawOption { fn default() -> Self { Self { + show_icons: bool::default(), show_hidden: bool::default(), directories_first: default_true(), case_sensitive: bool::default(), |