Implement "Open in new window" for Trash, Recents, Network
This commit is contained in:
parent
7d111169e0
commit
cfedaef0cb
2 changed files with 38 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue