diff --git a/yazi-core/src/manager/commands/quit.rs b/yazi-core/src/manager/commands/quit.rs index 41304dbb..d1eb0fcd 100644 --- a/yazi-core/src/manager/commands/quit.rs +++ b/yazi-core/src/manager/commands/quit.rs @@ -24,9 +24,8 @@ impl Manager { } tokio::spawn(async move { - let mut result = emit!(Input(InputOpt::top(format!( - "There are {tasks} tasks running, sure to quit? (y/N)" - )))); + let mut result = + emit!(Input(InputOpt::top(format!("{tasks} tasks running, sure to quit? (y/N)")))); if let Some(Ok(choice)) = result.recv().await { if choice == "y" || choice == "Y" { diff --git a/yazi-core/src/tasks/tasks.rs b/yazi-core/src/tasks/tasks.rs index 8cc1b52f..a7e90f25 100644 --- a/yazi-core/src/tasks/tasks.rs +++ b/yazi-core/src/tasks/tasks.rs @@ -112,9 +112,9 @@ impl Tasks { tokio::spawn(async move { let s = if targets.len() > 1 { "s" } else { "" }; let mut result = emit!(Input(InputOpt::hovered(if permanently { - format!("Delete selected file{s} permanently? (y/N)") + format!("Delete {} selected file{s} permanently? (y/N)", targets.len()) } else { - format!("Move selected file{s} to trash? (y/N)") + format!("Move {} selected file{s} to trash? (y/N)", targets.len()) }))); if let Some(Ok(choice)) = result.recv().await {