diff options
author | qkzk <qu3nt1n@gmail.com> | 2022-10-29 21:39:14 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2022-10-29 21:39:14 +0200 |
commit | 024a8c97d213a09818d4edc164a1e5368717f8a9 (patch) | |
tree | e2fcaf1709d81e7d37b58a7e2bf6091eea652f67 /src/actioner.rs | |
parent | 3a0ffaaab625732ca1c52d404654f5237f182382 (diff) |
copy in thread, display progress async. Hacky :(
Diffstat (limited to 'src/actioner.rs')
-rw-r--r-- | src/actioner.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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 |