summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-11-07 19:48:13 +0100
committerqkzk <qu3nt1n@gmail.com>2023-11-07 19:48:13 +0100
commitc6fd22dbde9b02869867161279fe8df3004f8642 (patch)
tree1a28fb58ceadbd4eb472e1635f4fd6c3b139b036
parentc449f53b02bdc2392f33a1303e85b50eaa72128f (diff)
tree refactor
-rw-r--r--development.md5
-rw-r--r--src/tree.rs1
2 files changed, 3 insertions, 3 deletions
diff --git a/development.md b/development.md
index 9bbccb1..8e55462 100644
--- a/development.md
+++ b/development.md
@@ -617,14 +617,15 @@ New view: Tree ! Toggle with 't', fold with 'z'. Navigate normally.
- [x] FIX: enter a dir from normal mode shouldn't set mode tree
- [x] Use a generic trait for movements
- [x] FIX: first line position for tree
- - [ ] FIX: tab.selected() should return Option<&FileInfo>
- - [ ] FIX: search can only find the first match
+ - [ ] FIX: copying/moving 0B files does nothing
- [ ] test everything
- [ ] refactor
- [ ] document
## TODO
+- [ ] FIX: tab.selected() should return Option<&FileInfo>
+- [ ] FIX: search can only find the first match
- [ ] use widget for every drawable element. First line should be a collection of widget which are drawned
- [ ] while second window is opened, if the selection is below half screen, it's not shown anymore.
Scroll to second element if needed
diff --git a/src/tree.rs b/src/tree.rs
index a44eea1..828c332 100644
--- a/src/tree.rs
+++ b/src/tree.rs
@@ -307,7 +307,6 @@ impl Tree {
continue;
};
if self.nodes.contains_key(next_sibling_path) {
- log::info!("returning {next_sibling_path:?}");
return Some(next_sibling_path.to_owned());
} else {
current_path = parent_path.to_owned();