diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-11-05 15:31:39 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-11-05 15:31:39 +0100 |
commit | ef93694d1f3733ddd92114a51005aac37c192117 (patch) | |
tree | 9e13834104356727c8d703e8702952c5abe937eb /src/tab.rs | |
parent | a92709acb4ded784a718e5d47dafd51eb24730de (diff) |
remove useless methods
Diffstat (limited to 'src/tab.rs')
-rw-r--r-- | src/tab.rs | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -16,6 +16,7 @@ use crate::opener::execute_in_child; use crate::preview::{Directory, Preview}; use crate::selectable_content::SelectableContent; use crate::shortcut::Shortcut; +use crate::sort::SortKind; use crate::trees::FileSystem; use crate::users::Users; use crate::utils::{filename_from_path, row_to_window_index, set_clipboard}; @@ -436,7 +437,7 @@ impl Tab { self.tree = FileSystem::new( path, 5, - self.path_content.sort_kind.clone(), + SortKind::tree_default(), users, self.show_hidden, &self.filter, @@ -541,17 +542,6 @@ impl Tab { self.tree_select_first_child() } - /// Select the previous sibling of the current node. - pub fn select_prev(&mut self) -> Result<()> { - self.tree.select_prev(); - Ok(()) - } - - /// Select the next sibling of the current node. - pub fn select_next(&mut self) -> Result<()> { - self.tree.select_next() - } - /// Copy the selected filename to the clipboard. Only the filename. pub fn filename_to_clipboard(&self) -> Result<()> { set_clipboard( |