mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
f083369183
commit
e19a19eee5
1 changed files with 5 additions and 1 deletions
|
|
@ -95,7 +95,6 @@ impl<'a> Executor<'a> {
|
||||||
|
|
||||||
// Navigation
|
// Navigation
|
||||||
on!(ACTIVE, arrow);
|
on!(ACTIVE, arrow);
|
||||||
// on!(T, peek);
|
|
||||||
on!(ACTIVE, leave);
|
on!(ACTIVE, leave);
|
||||||
on!(ACTIVE, enter);
|
on!(ACTIVE, enter);
|
||||||
on!(ACTIVE, back);
|
on!(ACTIVE, back);
|
||||||
|
|
@ -137,6 +136,11 @@ impl<'a> Executor<'a> {
|
||||||
on!(TABS, swap);
|
on!(TABS, swap);
|
||||||
|
|
||||||
match exec.cmd.as_bytes() {
|
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
|
// Tasks
|
||||||
b"tasks_show" => self.cx.tasks.toggle(()),
|
b"tasks_show" => self.cx.tasks.toggle(()),
|
||||||
// Help
|
// Help
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue