mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
feat: new ind-which-show DDS event to change the which component behavior (#3608)
This commit is contained in:
parent
afc694c122
commit
face6aed40
32 changed files with 216 additions and 321 deletions
|
|
@ -1,6 +1,7 @@
|
|||
use anyhow::Result;
|
||||
use yazi_actor::Ctx;
|
||||
use yazi_config::{KEYMAP, keymap::{Chord, ChordCow, Key}};
|
||||
use yazi_macro::emit;
|
||||
use yazi_macro::{act, emit};
|
||||
use yazi_shared::Layer;
|
||||
|
||||
use crate::app::App;
|
||||
|
|
@ -41,7 +42,8 @@ impl<'a> Router<'a> {
|
|||
}
|
||||
|
||||
if on.len() > 1 {
|
||||
self.app.core.which.show_with(key, layer);
|
||||
let cx = &mut Ctx::active(&mut self.app.core);
|
||||
act!(which:show, cx, (layer, key)).ok();
|
||||
} else {
|
||||
emit!(Seq(ChordCow::from(chord).into_seq()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue