summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2023-03-10 10:45:22 -0500
committerJeff Zhao <jeff.no.zhao@gmail.com>2023-03-10 10:45:22 -0500
commit3339c9b2294890fa4bd017794345bc1315cca92c (patch)
treee26df18494386a180e311b717926d423e5b99d91
parentc258640705732c469dcf9b2e6ffd2fb68b7e0b12 (diff)
rework delete
-rw-r--r--src/key_command/impl_from_str.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/key_command/impl_from_str.rs b/src/key_command/impl_from_str.rs
index 953793f..1d45658 100644
--- a/src/key_command/impl_from_str.rs
+++ b/src/key_command/impl_from_str.rs
@@ -243,11 +243,12 @@ impl std::str::FromStr for Command {
}
Ok(Self::PasteFiles { options })
} else if command == CMD_DELETE_FILES {
- let (mut permanently, mut background) = (false, true);
+ let (mut permanently, mut background) = (false, false);
for arg in arg.split_whitespace() {
+ eprintln!("arg: {:?}", arg);
match arg {
- "--foreground=true" => background = true,
- "--foreground=false" => background = false,
+ "--background=true" => background = true,
+ "--background=false" => background = false,
"--permanently" => permanently = true,
_ => {
return Err(JoshutoError::new(