diff --git a/yazi-config/src/lib.rs b/yazi-config/src/lib.rs index bf177afa..82c63667 100644 --- a/yazi-config/src/lib.rs +++ b/yazi-config/src/lib.rs @@ -65,10 +65,11 @@ pub fn init() -> anyhow::Result<()> { continue; } if !r.bool("confirm") && !r.bool("interactive") { + let s = format!("`{}` ({})", c.on(), c.desc_or_run()); eprintln!( - r#"WARNING: In Yazi v0.3, the behavior of the interactive `shell` (i.e., shell templates) must be explicitly specified with `--interactive`. + r#"WARNING: In Yazi v0.3, the behavior of the interactive `shell` (i.e., shell templates) must be explicitly specified with either `--interactive` or `--confirm`. -Please replace e.g. `shell` with `shell --interactive`, `shell "my-template"` with `shell "my-template" --interactive`, in your keymap.toml"# +Please replace e.g. `shell` with `shell --interactive`, `shell "my-template"` with `shell "my-template" --interactive`, in your keymap.toml for the key: {s}"# ); return Ok(()); } else if r.bool("confirm") && r.bool("interactive") { diff --git a/yazi-core/src/tab/commands/shell.rs b/yazi-core/src/tab/commands/shell.rs index 422267be..05c1154a 100644 --- a/yazi-core/src/tab/commands/shell.rs +++ b/yazi-core/src/tab/commands/shell.rs @@ -38,7 +38,7 @@ impl Tab { if !opt.interactive && !opt.confirm { AppProxy::notify_error( "`shell` command", - r#"In Yazi v0.3, the behavior of the interactive `shell` (i.e., shell templates) must be explicitly specified with `--interactive`. + r#"WARNING: In Yazi v0.3, the behavior of the interactive `shell` (i.e., shell templates) must be explicitly specified with either `--interactive` or `--confirm`. Please replace e.g. `shell` with `shell --interactive`, `shell "my-template"` with `shell "my-template" --interactive`, in your keymap.toml"#, );