Implement "Open in new window" for Trash, Recents, Network

This commit is contained in:
Jason Rodney Hansen 2025-03-07 15:33:31 -07:00
parent 7d111169e0
commit cfedaef0cb
2 changed files with 38 additions and 9 deletions

View file

@ -97,6 +97,10 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
continue;
} else if &arg == "--trash" {
Location::Trash
} else if &arg == "--recents" {
Location::Recents
} else if &arg == "--network" {
Location::Network("network:///".to_string(), fl!("networks"))
} else {
//TODO: support more URLs
let path = match url::Url::parse(&arg) {