From da8ff942c91977ffb89c29174a06671facd6d750 Mon Sep 17 00:00:00 2001 From: dusk Date: Sat, 11 Oct 2025 04:19:25 +0000 Subject: [PATCH] fix switch commands ordering so they work properly (sw, sw edit out) --- crates/command_definitions/src/switch.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/command_definitions/src/switch.rs b/crates/command_definitions/src/switch.rs index 42a3fda7..94f0e0d8 100644 --- a/crates/command_definitions/src/switch.rs +++ b/crates/command_definitions/src/switch.rs @@ -17,14 +17,14 @@ pub fn cmds() -> impl Iterator { ]; [ + command!(switch, ("commands", ["help"]) => "switch_commands"), command!(switch, out => "switch_out"), - command!(switch, r#move, OpaqueString => "switch_move"), // TODO: datetime parsing command!(switch, delete => "switch_delete").flag(("all", ["clear", "c"])), + command!(switch, r#move, OpaqueString => "switch_move"), // TODO: datetime parsing command!(switch, edit, out => "switch_edit_out").flag(YES), command!(switch, edit, Optional(MemberRefs) => "switch_edit").flags(edit_flags), command!(switch, copy, Optional(MemberRefs) => "switch_copy").flags(edit_flags), - command!(switch, ("commands", ["help"]) => "switch_commands"), - command!(switch, Optional(MemberRefs) => "switch_do"), + command!(switch, MemberRefs => "switch_do"), ] .into_iter() }