diff options
-rw-r--r-- | src/interactive/app/handlers.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/interactive/app/handlers.rs b/src/interactive/app/handlers.rs index eae0e6c..beffcb1 100644 --- a/src/interactive/app/handlers.rs +++ b/src/interactive/app/handlers.rs @@ -50,7 +50,14 @@ impl CursorDirection { impl AppState { pub fn open_that(&self, traversal: &Traversal) { if let Some(idx) = self.selected { - open::that(path_of(&traversal.tree, idx)).ok(); + let res = open::that(path_of(&traversal.tree, idx)); + use std::io::Write; + std::fs::OpenOptions::new() + .create(true) + .append(true) + .open("dua-open.dbg") + .and_then(|mut file| file.write_all(format!("{:?}", res).as_bytes())) + .ok(); } } |