From bfd40219098d1f498eae9ad29667a604070adb62 Mon Sep 17 00:00:00 2001 From: Hibryda Date: Thu, 5 Mar 2026 23:42:41 +0100 Subject: [PATCH] feat(v2): add tiling layout, sidebar controls, and keyboard shortcuts - TilingGrid: dynamic CSS Grid with auto-preset based on pane count - Layout presets: 1-col, 2-col, 3-col, 2x2, master-stack - PaneContainer: close button, status indicator, focus highlight - SessionList: new terminal button, layout preset selector, pane list - Layout store: pane CRUD, focus management, grid template generation - Keyboard: Ctrl+N new terminal, Ctrl+1-4 focus pane by index --- v2/src/App.svelte | 33 ++++ .../components/Layout/PaneContainer.svelte | 47 ++++- .../lib/components/Layout/TilingGrid.svelte | 102 ++++++++--- .../lib/components/Sidebar/SessionList.svelte | 168 +++++++++++++++++- v2/src/lib/stores/layout.ts | 90 ++++++++-- 5 files changed, 399 insertions(+), 41 deletions(-) diff --git a/v2/src/App.svelte b/v2/src/App.svelte index 2b11069..d412de3 100644 --- a/v2/src/App.svelte +++ b/v2/src/App.svelte @@ -1,6 +1,39 @@