diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-07-18 12:06:49 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2022-07-18 12:06:49 -0400 |
commit | 743354da056c65c6ce0910394230270ef793d8cc (patch) | |
tree | 22795339118dfdf2e819a03fa3b8081d87226339 /src/key_command/impl_comment.rs | |
parent | eb8b155329b2c2689cc5b854f0b87f4448485c66 (diff) |
asynchronize delete operation
Diffstat (limited to 'src/key_command/impl_comment.rs')
-rw-r--r-- | src/key_command/impl_comment.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/key_command/impl_comment.rs b/src/key_command/impl_comment.rs index bd5e4e6..c441a6b 100644 --- a/src/key_command/impl_comment.rs +++ b/src/key_command/impl_comment.rs @@ -1,5 +1,5 @@ use crate::config::option::SortType; -use crate::io::IoWorkerOptions; +use crate::io::FileOperationOptions; use super::{Command, CommandComment}; @@ -27,9 +27,10 @@ impl CommandComment for Command { Self::CutFiles => "Cut selected files", Self::CopyFiles => "Copy selected files", - Self::PasteFiles(IoWorkerOptions { + Self::PasteFiles(FileOperationOptions { overwrite, skip_exist, + .. }) => match (overwrite, skip_exist) { (true, false) => "Paste, overwrite", (false, true) => "Paste, skip existing files", |