feat: add open-with in multi preview

Adds the ability to set the open-with setting for
multiple selected items. This setting will only appear
if all selected items have the same mime type.
This commit is contained in:
Jonatan Pettersson 2026-01-05 20:18:52 +01:00 committed by Jacob Kauffmann
parent e50c41aa24
commit 17325a5f5a
3 changed files with 43 additions and 3 deletions

View file

@ -2010,7 +2010,7 @@ impl App {
match (selected.next(), selected.next()) {
// At least two selected items
(Some(_), Some(_)) => Some(tab.multi_preview_view()),
(Some(_), Some(_)) => Some(tab.multi_preview_view(Some(&self.mime_app_cache))),
// Exactly one selected item
(Some(item), None) => {
Some(item.preview_view(Some(&self.mime_app_cache), military_time))