diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-08-01 12:34:53 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-08-01 12:39:14 -0400 |
commit | 7ee7a761ec62a065fcc2bde9d98b587d069b364a (patch) | |
tree | 2ae12dd9f1e8ea089d2972f41a8f5e0393383675 /src/ui/widgets/tui_worker.rs | |
parent | ee0dec521b73a4328660969c3be8454dc0bf73e8 (diff) |
add `symlink_files` command
Diffstat (limited to 'src/ui/widgets/tui_worker.rs')
-rw-r--r-- | src/ui/widgets/tui_worker.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ui/widgets/tui_worker.rs b/src/ui/widgets/tui_worker.rs index 06fcd7a..4ac034a 100644 --- a/src/ui/widgets/tui_worker.rs +++ b/src/ui/widgets/tui_worker.rs @@ -25,6 +25,7 @@ impl<'a> Widget for TuiWorker<'a> { let op_str = match progress.kind() { FileOperation::Cut => "Moving", FileOperation::Copy => "Copying", + FileOperation::Symlink => "Symlinking", FileOperation::Delete => "Deleting", }; @@ -61,15 +62,10 @@ impl<'a> Widget for TuiWorker<'a> { let style = Style::default(); for (i, worker) in self.context.iter().enumerate() { - let op_str = match worker.kind() { - FileOperation::Cut => "Move", - FileOperation::Copy => "Copy", - FileOperation::Delete => "Delete", - }; let msg = format!( "{:02} {} {} items {:?}", i + 1, - op_str, + worker.kind(), worker.paths.len(), worker.dest ); |