GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat: rename "toggle focus mode" -> "focus mode toggle" (#225)
lars-berger61fa21db24f1
diff --git a/GlazeWM.Bootstrapper/sample-config.yaml b/GlazeWM.Bootstrapper/sample-config.yamlindex 0ef88ff7..c76fc43d 100644--- a/GlazeWM.Bootstrapper/sample-config.yaml+++ b/GlazeWM.Bootstrapper/sample-config.yaml@@ -123,11 +123,11 @@ keybindings:binding: "Alt+R"# Change tiling direction. This determines where new tiling windows will be inserted.- - command: "toggle tiling direction"+ - command: "tiling direction toggle"binding: "Alt+V"# Change focus between floating / tiling windows.- - command: "toggle focus mode"+ - command: "focus mode toggle"binding: "Alt+Space"# Change the focused window to be floating / tiling.diff --git a/GlazeWM.Domain/UserConfigs/CommandParsingService.cs b/GlazeWM.Domain/UserConfigs/CommandParsingService.csindex 4906216d..70452f3c 100644--- a/GlazeWM.Domain/UserConfigs/CommandParsingService.cs+++ b/GlazeWM.Domain/UserConfigs/CommandParsingService.cs@@ -131,6 +131,11 @@ namespace GlazeWM.Domain.UserConfigs"up" => new FocusInDirectionCommand(Direction.Up),"down" => new FocusInDirectionCommand(Direction.Down),"workspace" => ParseFocusWorkspaceCommand(commandParts),+ "mode" => commandParts[2] switch+ {+ "toggle" => new ToggleFocusModeCommand(),+ _ => throw new ArgumentException(null, nameof(commandParts)),+ },_ => throw new ArgumentException(null, nameof(commandParts)),};}@@ -233,6 +238,7 @@ namespace GlazeWM.Domain.UserConfigs"maximized" => subjectContainer is Window? new ToggleMaximizedCommand(subjectContainer as Window): new NoopCommand(),+ // TODO: "toggle focus mode" command is deprecated. Remove in next major release."focus" => commandParts[2] switch{"mode" => new ToggleFocusModeCommand(),