mirror of
https://github.com/YGGverse/nexy.git
synced 2026-04-01 17:55:28 +00:00
group alt options
This commit is contained in:
parent
9b8485c494
commit
44a1f7bdec
2 changed files with 34 additions and 22 deletions
|
|
@ -4,27 +4,35 @@ pub struct Time {
|
|||
pub is_modified: bool,
|
||||
}
|
||||
|
||||
pub struct DirAlt {
|
||||
pub time: Time,
|
||||
pub is_count: bool,
|
||||
}
|
||||
|
||||
pub struct DirSort {
|
||||
pub time: Time,
|
||||
pub is_count: bool,
|
||||
}
|
||||
|
||||
pub struct FileAlt {
|
||||
pub time: Time,
|
||||
pub is_size: bool,
|
||||
}
|
||||
|
||||
pub struct FileSort {
|
||||
pub time: Time,
|
||||
pub is_size: bool,
|
||||
}
|
||||
|
||||
pub struct Dir {
|
||||
pub is_count: bool,
|
||||
pub alt: DirAlt,
|
||||
pub is_reverse: bool,
|
||||
pub sort: DirSort,
|
||||
pub time: Time,
|
||||
}
|
||||
pub struct File {
|
||||
pub alt: FileAlt,
|
||||
pub is_reverse: bool,
|
||||
pub is_size: bool,
|
||||
pub sort: FileSort,
|
||||
pub time: Time,
|
||||
}
|
||||
|
||||
pub struct ListConfig {
|
||||
|
|
@ -63,12 +71,14 @@ impl ListConfig {
|
|||
}
|
||||
Ok(Self {
|
||||
dir: Dir {
|
||||
time: Time {
|
||||
is_accessed: config.list_dir_accessed,
|
||||
is_created: config.list_dir_created,
|
||||
is_modified: config.list_dir_modified,
|
||||
alt: DirAlt {
|
||||
time: Time {
|
||||
is_accessed: config.list_dir_accessed,
|
||||
is_created: config.list_dir_created,
|
||||
is_modified: config.list_dir_modified,
|
||||
},
|
||||
is_count: config.list_dir_count,
|
||||
},
|
||||
is_count: config.list_dir_count,
|
||||
is_reverse: config.list_dir_reverse,
|
||||
sort: DirSort {
|
||||
time: Time {
|
||||
|
|
@ -80,13 +90,15 @@ impl ListConfig {
|
|||
},
|
||||
},
|
||||
file: File {
|
||||
time: Time {
|
||||
is_accessed: config.list_file_accessed,
|
||||
is_created: config.list_file_created,
|
||||
is_modified: config.list_file_modified,
|
||||
alt: FileAlt {
|
||||
time: Time {
|
||||
is_accessed: config.list_file_accessed,
|
||||
is_created: config.list_file_created,
|
||||
is_modified: config.list_file_modified,
|
||||
},
|
||||
is_size: config.list_file_size,
|
||||
},
|
||||
is_reverse: config.list_file_reverse,
|
||||
is_size: config.list_file_size,
|
||||
sort: FileSort {
|
||||
time: Time {
|
||||
is_accessed: config.list_file_sort_accessed,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue