From bdf62b65e43df7e46529fceef190907547b68503 Mon Sep 17 00:00:00 2001 From: Peter Fajdiga Date: Sat, 15 Jul 2023 18:32:08 +0200 Subject: [PATCH] remove actions `gridScrollLeft` and `gridScrollRight` --- package/contents/ui/config.ui | 30 +++--------------------------- src/actions.ts | 8 -------- src/config/config.ts | 1 - src/config/definition.ts | 5 ----- src/keyBindings/definition.ts | 12 ------------ 5 files changed, 3 insertions(+), 53 deletions(-) diff --git a/package/contents/ui/config.ui b/package/contents/ui/config.ui index 2141e9a..57f814c 100644 --- a/package/contents/ui/config.ui +++ b/package/contents/ui/config.ui @@ -184,31 +184,7 @@ - - - - Manual scroll step size: - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - px - - - 999 - - - 0 - - - - - Un-tile windows by dragging them @@ -216,7 +192,7 @@ - + Stack columns by default @@ -224,7 +200,7 @@ - + Resize neighbor column on edge resize @@ -232,7 +208,7 @@ - + Qt::Vertical diff --git a/src/actions.ts b/src/actions.ts index f82820d..058c8e6 100644 --- a/src/actions.ts +++ b/src/actions.ts @@ -182,14 +182,6 @@ function initActions(world: World) { }); }, - gridScrollLeft: () => { - gridScroll(world, -world.config.manualScrollStep); - }, - - gridScrollRight: () => { - gridScroll(world, world.config.manualScrollStep); - }, - gridScrollStart: () => { const grid = world.getCurrentGrid(); const firstColumn = grid.getFirstColumn(); diff --git a/src/config/config.ts b/src/config/config.ts index 5d4dac3..532ab47 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -6,7 +6,6 @@ type Config = { gapsInnerHorizontal: number, gapsInnerVertical: number, overscroll: number, - manualScrollStep: number, untileOnDrag: boolean, stackColumnsByDefault: boolean, resizeNeighborColumn: boolean, diff --git a/src/config/definition.ts b/src/config/definition.ts index 48e2cbc..380c1fc 100644 --- a/src/config/definition.ts +++ b/src/config/definition.ts @@ -83,11 +83,6 @@ const configDef = [ "type": "UInt", "default": 18 }, - { - "name": "manualScrollStep", - "type": "UInt", - "default": 200 - }, { "name": "untileOnDrag", "type": "Bool", diff --git a/src/keyBindings/definition.ts b/src/keyBindings/definition.ts index 804f786..1f981ea 100644 --- a/src/keyBindings/definition.ts +++ b/src/keyBindings/definition.ts @@ -140,18 +140,6 @@ const keyBindings: KeyBinding[] = [ "defaultKeySequence": "Meta+Alt+D", "action": "gridScrollRightColumn", }, - { - "name": "grid-scroll-left", - "description": "Scroll left", - "defaultKeySequence": "Meta+Alt+PgUp", - "action": "gridScrollLeft", - }, - { - "name": "grid-scroll-right", - "description": "Scroll right", - "defaultKeySequence": "Meta+Alt+PgDown", - "action": "gridScrollRight", - }, { "name": "grid-scroll-start", "description": "Scroll to start",