From eef896c21734079eacbdb8f0e10f7a5055514eb9 Mon Sep 17 00:00:00 2001 From: qkzk Date: Fri, 20 Oct 2023 13:06:18 +0200 Subject: improve settings & args --- src/tab.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tab.rs') diff --git a/src/tab.rs b/src/tab.rs index d0c6caf..b46f653 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -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 { 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; -- cgit v1.2.3