From 024a8c97d213a09818d4edc164a1e5368717f8a9 Mon Sep 17 00:00:00 2001 From: qkzk Date: Sat, 29 Oct 2022 21:39:14 +0200 Subject: copy in thread, display progress async. Hacky :( --- src/actioner.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/actioner.rs') diff --git a/src/actioner.rs b/src/actioner.rs index cfbe82b..1e9519c 100644 --- a/src/actioner.rs +++ b/src/actioner.rs @@ -91,6 +91,10 @@ impl Actioner { Event::Key(Key::Ctrl('f')) => self.ctrl_f(status), Event::Key(Key::Ctrl('c')) => self.ctrl_c(status), Event::Key(Key::Ctrl('p')) => self.ctrl_p(status), + Event::User(_) => { + eprintln!("read user event from user"); + Ok(()) + } _ => Ok(()), } } @@ -153,7 +157,7 @@ impl Actioner { /// Move right in a string, move to children in normal mode. fn right(&self, status: &mut Status) -> FmResult<()> { match status.selected().mode { - Mode::Normal => status.selected().event_go_to_child(), + Mode::Normal => status.selected().event_child_or_open(), Mode::Rename | Mode::Chmod | Mode::Newdir -- cgit v1.2.3