From 18795320bb8396247e626d94cc7ecc1c805f3281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20misaki=20masa?= Date: Thu, 10 Jul 2025 10:33:43 +0800 Subject: [PATCH] fix: `stringify!(r#move)` is `"r#move"` instead of `"move"` (#2973) --- 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);