summaryrefslogtreecommitdiffstats
path: root/src/tab.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-06 13:28:22 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-06 13:28:22 +0100
commit9b4b17c86540cb48975101d4bd0d7abff89f181c (patch)
treef8598dbae44b51b4e7df88830864c2f7dccebe7a /src/tab.rs
parentf8fdb56ba5054f21372287391975328e6d114961 (diff)
rename trees.rs, rename struct
Diffstat (limited to 'src/tab.rs')
-rw-r--r--src/tab.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tab.rs b/src/tab.rs
index ddf6f68..d13d87c 100644
--- a/src/tab.rs
+++ b/src/tab.rs
@@ -17,7 +17,7 @@ use crate::preview::Preview;
use crate::selectable_content::SelectableContent;
use crate::shortcut::Shortcut;
use crate::sort::SortKind;
-use crate::trees::{calculate_tree_window, FileSystem};
+use crate::tree::{calculate_tree_window, Tree};
use crate::users::Users;
use crate::utils::{row_to_window_index, set_clipboard};
@@ -56,7 +56,7 @@ pub struct Tab {
pub history: History,
/// Users & groups
pub users: Users,
- pub tree: FileSystem,
+ pub tree: Tree,
}
impl Tab {
@@ -89,7 +89,7 @@ impl Tab {
shortcut.extend_with_mount_points(mount_points);
let searched = None;
let index = path_content.select_file(&path);
- let tree = FileSystem::empty();
+ let tree = Tree::empty();
window.scroll_to(index);
Ok(Self {
mode,
@@ -146,7 +146,7 @@ impl Tab {
self.input.reset();
self.preview = Preview::empty();
self.completion.reset();
- self.tree = FileSystem::empty();
+ self.tree = Tree::empty();
Ok(())
}
@@ -415,7 +415,7 @@ impl Tab {
};
let path = self.path_content.path.clone();
let users = &self.users;
- self.tree = FileSystem::new(path, 5, sort_kind, users, self.show_hidden, &self.filter);
+ self.tree = Tree::new(path, 5, sort_kind, users, self.show_hidden, &self.filter);
Ok(())
}