diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-11-05 14:36:25 +0100 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-11-05 14:36:25 +0100 |
commit | da41b5907a97326ede110cfeac1f27c9f8aaecd6 (patch) | |
tree | 7d34af5d736b9191fcea6edff7f9a9333c9424f1 /src/tab.rs | |
parent | bb1ba31144fef94e4c7fc6d9e99f26bbac952f60 (diff) |
select prev
Diffstat (limited to 'src/tab.rs')
-rw-r--r-- | src/tab.rs | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -366,12 +366,12 @@ impl Tab { /// Select the next sibling. pub fn tree_select_next(&mut self) -> Result<()> { - self.directory.select_next() + self.tree.select_next() } /// Select the previous siblging pub fn tree_select_prev(&mut self) -> Result<()> { - self.directory.select_prev() + self.tree.select_prev() } /// Select the first child if any. @@ -540,16 +540,14 @@ impl Tab { self.tree_select_first_child() } - /// Select the next sibling of the current node. - pub fn select_next(&mut self) -> Result<()> { - self.tree.next(); - self.tree_select_next() - } - /// Select the previous sibling of the current node. pub fn select_prev(&mut self) -> Result<()> { - self.tree.prev(); - self.tree_select_prev() + self.tree.select_prev() + } + + /// 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. |