mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
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:
parent
9e75ed5c71
commit
2976de393d
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ impl Manager {
|
||||||
let selected =
|
let selected =
|
||||||
if opt.hovered { vec![&hovered] } else { self.selected_or_hovered(true).collect() };
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue