From b27e3ef9235252a21d7edb920755498c8e1879d2 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Thu, 10 Jul 2025 10:31:07 +0800 Subject: [PATCH] fix: `stringify!(r#move)` is `"r#move"` instead of `"move"` --- yazi-widgets/src/input/commands/commands.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/yazi-widgets/src/input/commands/commands.rs b/yazi-widgets/src/input/commands/commands.rs index 688b4990..61cd7cfa 100644 --- a/yazi-widgets/src/input/commands/commands.rs +++ b/yazi-widgets/src/input/commands/commands.rs @@ -10,9 +10,14 @@ impl Input { return self.$name(cmd); } }; + ($name:ident, $alias:literal) => { + if cmd.name == $alias { + return self.$name(cmd); + } + }; } - on!(r#move); + on!(r#move, "move"); on!(backward); on!(forward);