From aa78347add10297679b1fa80c11205c24d881934 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 22:07:29 -0700 Subject: [PATCH] refactor(kde): converge the docs of the core behaviour enums to the Windows spelling WindowContainerBehaviour, FloatingLayerBehaviour, Placement, CrossBoundaryBehaviour and WindowPlacement said 'behavior' in KDE and 'behaviour' in Windows and macOS (the doc text is otherwise identical), so one copy in komorebi-config can be moved only after they agree. Same choice as the step 2 payload enums. Schema: komorebi-for-kde/schema.json regenerated with the real komorebic (5 description lines, 10 changed lines); equal to the old file after deleting every description (jq walk), so description-only. schema.asc.json is unchanged. Windows and macOS schemas are untouched (they already said 'behaviour'). Verified: KDE cargo build -p komorebic and regeneration (tier 1). Not done: komorebi-for-kde/nix/komorebi-options.nix still carries the old text and an old schema-sha256 header (already out of date since step 2); no schemars-nixgen here, refreshed by substitution at the end of the step. --- komorebi-for-kde/komorebi/src/core/mod.rs | 10 +++++----- komorebi-for-kde/schema.json | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/komorebi-for-kde/komorebi/src/core/mod.rs b/komorebi-for-kde/komorebi/src/core/mod.rs index c561f36c..ce27d8ad 100644 --- a/komorebi-for-kde/komorebi/src/core/mod.rs +++ b/komorebi-for-kde/komorebi/src/core/mod.rs @@ -84,7 +84,7 @@ pub struct WindowManagementBehaviour { Clone, Copy, Debug, Default, Serialize, Deserialize, Display, EnumString, ValueEnum, PartialEq, )] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -/// Window container behavior when a new window is opened +/// Window container behaviour when a new window is opened pub enum WindowContainerBehaviour { /// Create a new container for each new window #[default] @@ -97,7 +97,7 @@ pub enum WindowContainerBehaviour { Clone, Copy, Debug, Default, Serialize, Deserialize, Display, EnumString, ValueEnum, PartialEq, )] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -/// Floating layer behavior when a new window is opened +/// Floating layer behaviour when a new window is opened pub enum FloatingLayerBehaviour { /// Tile new windows (unless they match a float rule or float override is active) #[default] @@ -123,7 +123,7 @@ pub enum WindowHidingPosition { Clone, Copy, Debug, Default, Serialize, Deserialize, Display, EnumString, ValueEnum, PartialEq, )] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -/// Placement behavior for floating windows +/// Placement behaviour for floating windows pub enum Placement { /// Does not change the size or position of the window #[default] @@ -182,7 +182,7 @@ pub enum WindowPlacement { Secondary, /// Place the new window before the currently focused container BeforeFocused, - /// Place the new window after the currently focused container (default behavior) + /// Place the new window after the currently focused container (default behaviour) #[default] AfterFocused, /// Place the new window at the end of the container list @@ -372,7 +372,7 @@ pub enum PlacementMatchingRules { Clone, Copy, Debug, Default, Serialize, Deserialize, Display, EnumString, ValueEnum, PartialEq, )] #[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))] -/// Behavior when an action would cross a monitor boundary +/// Behaviour when an action would cross a monitor boundary pub enum CrossBoundaryBehaviour { /// Attempt to perform actions across a workspace boundary Workspace, diff --git a/komorebi-for-kde/schema.json b/komorebi-for-kde/schema.json index 3c576349..280b8ce7 100644 --- a/komorebi-for-kde/schema.json +++ b/komorebi-for-kde/schema.json @@ -2488,7 +2488,7 @@ ] }, "CrossBoundaryBehaviour": { - "description": "Behavior when an action would cross a monitor boundary", + "description": "Behaviour when an action would cross a monitor boundary", "oneOf": [ { "description": "Attempt to perform actions across a workspace boundary", @@ -2553,7 +2553,7 @@ ] }, "FloatingLayerBehaviour": { - "description": "Floating layer behavior when a new window is opened", + "description": "Floating layer behaviour when a new window is opened", "oneOf": [ { "description": "Tile new windows (unless they match a float rule or float override is active)", @@ -3363,7 +3363,7 @@ ] }, "Placement": { - "description": "Placement behavior for floating windows", + "description": "Placement behaviour for floating windows", "oneOf": [ { "description": "Does not change the size or position of the window", @@ -3698,7 +3698,7 @@ ] }, "WindowContainerBehaviour": { - "description": "Window container behavior when a new window is opened", + "description": "Window container behaviour when a new window is opened", "oneOf": [ { "description": "Create a new container for each new window", @@ -3746,7 +3746,7 @@ "const": "BeforeFocused" }, { - "description": "Place the new window after the currently focused container (default behavior)", + "description": "Place the new window after the currently focused container (default behaviour)", "type": "string", "const": "AfterFocused" },