fix: allow opening interactively with the --chosen-file flag

This commit fixes a bug where the user was unable to open a file
interactively using when the `--chosen-file` flag was used.

This is provided by default in yazi for the `O` (capital o) keybinding.

(keymap.toml)

```toml
[manager]
keymap = [
  { on = [ "O", ], run = "open --interactive", desc = "Open the selected files interactively" },
]
```
This commit is contained in:
Mika Vilpas 2024-04-16 21:39:03 +03:00
parent 9e75ed5c71
commit 2976de393d

View file

@ -36,7 +36,7 @@ impl Manager {
let selected =
if opt.hovered { vec![&hovered] } else { self.selected_or_hovered(true).collect() };
if Self::quit_with_selected(&selected) {
if !opt.interactive && Self::quit_with_selected(&selected) {
return;
}