Open files with middle click

* Directories open in new tab
* All others open the file
This commit is contained in:
Jason Rodney Hansen 2024-06-29 19:35:27 -06:00 committed by Jeremy Soller
parent 36bcf81bc6
commit 0971f6f20f
3 changed files with 40 additions and 1 deletions

View file

@ -1737,6 +1737,9 @@ impl Application for App {
}
}
}
tab::Command::OpenInNewTab(path) => {
commands.push(self.open_tab(Location::Path(path.clone())));
}
tab::Command::Scroll(id, offset) => {
commands.push(scrollable::scroll_to(id, offset));
}