Partial open with implementation, parse mimeapps.list files

This commit is contained in:
Jeremy Soller 2024-03-01 16:10:30 -07:00
parent 18e847abb8
commit 26173d6529
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
11 changed files with 357 additions and 147 deletions

View file

@ -66,7 +66,9 @@ pub fn context_menu<'a>(
Location::Path(_) => {
if selected > 0 {
children.push(menu_item(fl!("open"), Action::Open).into());
//TODO: Open with
if selected == 1 {
children.push(menu_item(fl!("open-with"), Action::OpenWith).into());
}
children.push(horizontal_rule(1).into());
children.push(menu_item(fl!("rename"), Action::Rename).into());
children.push(menu_item(fl!("cut"), Action::Cut).into());