diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-10-20 13:06:18 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-10-20 13:06:18 +0200 |
commit | eef896c21734079eacbdb8f0e10f7a5055514eb9 (patch) | |
tree | 5ef17df3f78efc47ebffa6c62cd211e6c2202a52 /src/tab.rs | |
parent | 707b3067caa45ffb1b7c187fbfaa6c128c68c70d (diff) |
improve settings & args
Diffstat (limited to 'src/tab.rs')
-rw-r--r-- | src/tab.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,7 +6,7 @@ use users::UsersCache; use crate::args::Args; use crate::completion::{Completion, InputCompleted}; -use crate::config::Colors; +use crate::config::{Colors, Settings}; use crate::content_window::ContentWindow; use crate::fileinfo::{FileInfo, FileKind, PathContent}; use crate::filter::FilterKind; @@ -62,6 +62,7 @@ impl Tab { args: &Args, height: usize, users_cache: UsersCache, + settings: &Settings, mount_points: &[&path::Path], ) -> Result<Self> { let path = std::fs::canonicalize(path::Path::new(&args.path))?; @@ -72,7 +73,7 @@ impl Tab { }; let directory = Directory::empty(start_dir, &users_cache)?; let filter = FilterKind::All; - let show_hidden = args.all; + let show_hidden = args.all || settings.all; let mut path_content = PathContent::new(start_dir, users_cache, &filter, show_hidden)?; let mode = Mode::Normal; let previous_mode = Mode::Normal; |