mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00: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
2 changed files with 4 additions and 3 deletions
|
|
@ -65,10 +65,11 @@ pub fn init() -> anyhow::Result<()> {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if !r.bool("confirm") && !r.bool("interactive") {
|
if !r.bool("confirm") && !r.bool("interactive") {
|
||||||
|
let s = format!("`{}` ({})", c.on(), c.desc_or_run());
|
||||||
eprintln!(
|
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(());
|
return Ok(());
|
||||||
} else if r.bool("confirm") && r.bool("interactive") {
|
} else if r.bool("confirm") && r.bool("interactive") {
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ impl Tab {
|
||||||
if !opt.interactive && !opt.confirm {
|
if !opt.interactive && !opt.confirm {
|
||||||
AppProxy::notify_error(
|
AppProxy::notify_error(
|
||||||
"`shell` command",
|
"`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"#,
|
Please replace e.g. `shell` with `shell --interactive`, `shell "my-template"` with `shell "my-template" --interactive`, in your keymap.toml"#,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue