Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/lib/keyBindings/Actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,22 @@ class Actions {
window.moveToColumn(newColumn, true, FocusPassing.Type.None);
};

public readonly windowHeightIncreaseUp = (cm: ClientManager, dm: DesktopManager, window: Window, column: Column, grid: Grid) => {
window.column.adjustWindowHeight(
window,
window.column.grid.config.stackOffsetY,
true,
);
};

public readonly windowHeightIncreaseDown = (cm: ClientManager, dm: DesktopManager, window: Window, column: Column, grid: Grid) => {
window.column.adjustWindowHeight(
window,
window.column.grid.config.stackOffsetY,
false,
);
};

public readonly windowToggleFloating = (cm: ClientManager, dm: DesktopManager) => {
if (Workspace.activeWindow === null) {
return;
Expand Down
10 changes: 10 additions & 0 deletions src/lib/keyBindings/definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ function getKeyBindings(world: World, actions: Actions): KeyBinding[] {
defaultKeySequence: "Meta+Shift+End",
action: () => world.doIfTiledFocused(actions.windowMoveEnd),
},
{
name: "window-height-increase-up",
description: "Increase window height upwards",
action: () => world.doIfTiledFocused(actions.windowHeightIncreaseUp),
},
{
name: "window-height-increase-down",
description: "Increase window height downwards",
action: () => world.doIfTiledFocused(actions.windowHeightIncreaseDown),
},
{
name: "column-toggle-stacked",
description: "Toggle stacked layout for focused column",
Expand Down
Loading