From fce442c25dad0038273b571d0f60330f72a5522d Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Fri, 7 Jul 2023 14:40:32 +0200 Subject: [PATCH] rename action columnToggleStacked --- src/actions.ts | 14 +++++++------- src/keyBindings/definition.ts | 7 +++---- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/actions.ts b/src/actions.ts index 68eaa21..f82820d 100644 --- a/src/actions.ts +++ b/src/actions.ts @@ -128,13 +128,6 @@ function initActions(world: World) { }); }, - windowExpand: () => { - world.doIfTiledFocused(false, (window, column, grid) => { - column.toggleStacked(); - grid.container.arrange(); - }); - }, - windowToggleFloating: () => { const kwinClient = workspace.activeClient; world.toggleFloatingClient(kwinClient); @@ -168,6 +161,13 @@ function initActions(world: World) { }); }, + columnToggleStacked: () => { + world.doIfTiledFocused(false, (window, column, grid) => { + column.toggleStacked(); + grid.container.arrange(); + }); + }, + columnWidthIncrease: () => { world.doIfTiledFocused(false, (window, column, grid) => { grid.increaseColumnWidth(column); diff --git a/src/keyBindings/definition.ts b/src/keyBindings/definition.ts index 476c6af..804f786 100644 --- a/src/keyBindings/definition.ts +++ b/src/keyBindings/definition.ts @@ -80,11 +80,10 @@ const keyBindings: KeyBinding[] = [ "action": "windowMoveEnd", }, { - "name": "window-expand", - "description": "Expand window", - "comment": "Expands focused window vertically; toggles stacked layout for focused column", + "name": "column-toggle-stacked", + "description": "Toggle stacked layout for focused column", "defaultKeySequence": "Meta+X", - "action": "windowExpand", + "action": "columnToggleStacked", }, { "name": "column-move-left",