mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
refactor: remove <Backspace> warnings
This commit is contained in:
parent
22ecad47ab
commit
d9ca964064
1 changed files with 0 additions and 18 deletions
|
|
@ -52,24 +52,6 @@ impl<'de> Deserialize<'de> for Keymap {
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
Preset::mix(&mut shadow.completion.keymap, shadow.completion.prepend_keymap, shadow.completion.append_keymap);
|
Preset::mix(&mut shadow.completion.keymap, shadow.completion.prepend_keymap, shadow.completion.append_keymap);
|
||||||
|
|
||||||
// TODO: remove this when v0.2.3 is released --
|
|
||||||
if !shadow.input.keymap.iter().any(|c| c.on() == "<Backspace>") {
|
|
||||||
println!(
|
|
||||||
"WARNING: Default keybinding for `<Backspace>` is missing, please add a `{}` to the `[input]` section of `keymap.toml`.
|
|
||||||
In Yazi v0.2.0, `<Backspace>` previously hardcoded within the input component has been moved to `keymap.toml` to allow users to customize it.",
|
|
||||||
r#"{ on = [ "<Backspace>" ], exec = "backspace" }"#
|
|
||||||
);
|
|
||||||
}
|
|
||||||
// TODO: -- remove this when v0.2.3 is released
|
|
||||||
|
|
||||||
// TODO: remove this when v0.2.3 is released --
|
|
||||||
if shadow.manager.keymap.iter().any(|c| c.exec().contains("--empty=name")) {
|
|
||||||
println!(
|
|
||||||
"WARNING: `rename --empty=name` is deprecated in Yazi v0.2.2, please use `rename --empty=stem` instead.",
|
|
||||||
);
|
|
||||||
}
|
|
||||||
// TODO: -- remove this when v0.2.3 is released
|
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
manager: shadow.manager.keymap,
|
manager: shadow.manager.keymap,
|
||||||
tasks: shadow.tasks.keymap,
|
tasks: shadow.tasks.keymap,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue