This commit is contained in:
sxyazi 2023-11-10 09:24:32 +08:00
parent f083369183
commit e19a19eee5
No known key found for this signature in database

View file

@ -95,7 +95,6 @@ impl<'a> Executor<'a> {
// Navigation
on!(ACTIVE, arrow);
// on!(T, peek);
on!(ACTIVE, leave);
on!(ACTIVE, enter);
on!(ACTIVE, back);
@ -137,6 +136,11 @@ impl<'a> Executor<'a> {
on!(TABS, swap);
match exec.cmd.as_bytes() {
b"peek" => {
let step = exec.args.first().and_then(|s| s.parse().ok()).unwrap_or(0);
self.cx.manager.active_mut().preview.arrow(step);
self.cx.manager.peek(true, self.cx.image_layer())
}
// Tasks
b"tasks_show" => self.cx.tasks.toggle(()),
// Help