mirror of
https://github.com/sxyazi/yazi.git
synced 2024-11-24 01:48:00 +03:00
feat: help users migrate shell key bindings to v0.3 (#1304)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
ed6ae000d6
commit
67fb66c2e2
@ -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") {
|
||||
|
@ -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"#,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user