From a61e68681253d0f1576c091a55ab2469ea5b6ef0 Mon Sep 17 00:00:00 2001 From: Jesus Sanz Date: Tue, 20 Oct 2026 09:06:50 +0200 Subject: [PATCH 1/2] Full screen: arrows go to the next or previous window in order Zoomed, only the focused window shows, so going by where tiles sit underneath meant remembering the layout. Right and Up now focus the next window (a tab group's tabs one by one), Left and Down the one before, wrapping around; with Shift they move the focused tile one place. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- Sources/GlideCore/Workspace.swift | 21 ++++++++++ Tests/GlideCoreTests/TabTests.swift | 4 +- Tests/GlideCoreTests/TiledLayoutTests.swift | 44 +++++++++++++++++++-- 4 files changed, 64 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 4abcd9d..e78999a 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Status: early development (milestone 1: one display). There's also [Glide for Wi - **Order**: tiles follow the strip's columns left to right. Switching to tiled gives every window of a stack its own column (a tabbed column stays one tile, with its tab bar on top); switching back gives every column the default width. The order and focus survive both ways. A new window becomes the next tile after the focused one, and a window dropped onto another's column becomes the next tile too. - **⌃⌥ + arrows** focus the tile next to the focused one in that direction, and **⌃⌥⇧ + arrows** swap it with that neighbour. ⌃⌥Home / End focus the first / last tile. ⌃⌥[ and ⌃⌥] and ⌃⌥C do nothing, and neither do the trackpad swipe or the mouse wheel. - **⌃⌥R** steps the split between the focused tile and the rest through ⅓, ½ and ⅔ (the last tile changes the split before it). Dragging a tile's edge moves the same split; a tile with no split to move snaps back. The splits start over when a window opens or closes. -- **⌃⌥F** zooms the workspace: every tile fills the screen, stacked, with the focused one on top, until you press it again. Focus moves through them as before (⌃⌥ + arrows follow the layout underneath), new windows open zoomed too, and only the focused tab group shows its tab bar. ⌃⌥R and dragging an edge do nothing while zoomed. +- **⌃⌥F** zooms the workspace: every tile fills the screen, stacked, with the focused one on top, until you press it again. Since only one window shows, the arrows go in order instead of by direction: ⌃⌥→ and ⌃⌥↑ focus the next window (a tab group's tabs one by one), ⌃⌥← and ⌃⌥↓ the one before, wrapping around at the ends, and with ⇧ they move the focused tile one place. New windows open zoomed too, and only the focused tab group shows its tab bar. ⌃⌥R and dragging an edge do nothing while zoomed. - Windows with a minimum width that doesn't fit their tile get that width, overlapping their neighbour if they have to. - Each workspace's column count and splits are remembered with its layout. diff --git a/Sources/GlideCore/Workspace.swift b/Sources/GlideCore/Workspace.swift index a7e50ab..c5d9fa9 100644 --- a/Sources/GlideCore/Workspace.swift +++ b/Sources/GlideCore/Workspace.swift @@ -513,6 +513,7 @@ public struct Workspace: Equatable, Sendable { } private mutating func performTiledAction(_ action: Action) -> Bool? { + if isZoomed, let changed = performZoomed(action) { return changed } switch action { case .focusColumnLeft: return focusTile(.left) case .focusColumnRight: return focusTile(.right) @@ -536,6 +537,26 @@ public struct Workspace: Equatable, Sendable { } } + /// Zoomed, only the focused window shows, so the arrows go in order rather than by where tiles sit + /// underneath: → and ↑ to the next window, tabs included, ← and ↓ to the one before, wrapping + /// around; with ⇧ they move the focused tile one place. nil for other actions. + private mutating func performZoomed(_ action: Action) -> Bool? { + switch action { + case .focusColumnRight, .focusWindowUp: return focusInOrder(forward: true) + case .focusColumnLeft, .focusWindowDown: return focusInOrder(forward: false) + case .moveColumnRight, .moveWindowUp: return strip.moveColumn(.right) + case .moveColumnLeft, .moveWindowDown: return strip.moveColumn(.left) + default: return nil + } + } + + /// Focuses the next or previous window in tile order, a tab group's tabs in turn, wrapping around. + private mutating func focusInOrder(forward: Bool) -> Bool { + let windows = strip.windows + guard windows.count > 1, let focused = strip.focusedWindow, let index = windows.firstIndex(of: focused) else { return false } + return strip.focus(windows[(index + (forward ? 1 : windows.count - 1)) % windows.count]) + } + /// Moves focus to the tile next to the focused one on a side. private mutating func focusTile(_ side: TileSide) -> Bool { guard let target = TiledLayout.neighbour(of: tileFrames(tiles()), from: strip.focusedColumnIndex, side: side) else { return false } diff --git a/Tests/GlideCoreTests/TabTests.swift b/Tests/GlideCoreTests/TabTests.swift index 2376966..ab3d601 100644 --- a/Tests/GlideCoreTests/TabTests.swift +++ b/Tests/GlideCoreTests/TabTests.swift @@ -178,7 +178,7 @@ final class TabTests: XCTestCase { ws.layoutOverride = .tiled ws.perform(.toggleFullWidth) XCTAssertEqual(ws.tabBars().map(\.column), [0]) - ws.perform(.focusColumnRight) + ws.perform(.focusLastColumn) XCTAssertEqual(ws.tabBars().map(\.column), [1]) } @@ -186,7 +186,7 @@ final class TabTests: XCTestCase { var ws = tiledWithTabGroup() ws.strip.focus(10) ws.perform(.toggleFullWidth) - XCTAssertTrue(ws.perform(.focusWindowDown)) + XCTAssertTrue(ws.perform(.focusWindowUp), "Zoomed, up is the next window: the next tab") XCTAssertTrue(ws.isZoomed) XCTAssertEqual(ws.tabBars()[0].activeWindow, 11) XCTAssertEqual(placements(ws)[11]?.visibility, .visible) diff --git a/Tests/GlideCoreTests/TiledLayoutTests.swift b/Tests/GlideCoreTests/TiledLayoutTests.swift index 82ee23c..a083f49 100644 --- a/Tests/GlideCoreTests/TiledLayoutTests.swift +++ b/Tests/GlideCoreTests/TiledLayoutTests.swift @@ -266,19 +266,55 @@ final class TiledLayoutTests: XCTestCase { XCTAssertEqual(frames(ws), before) } - func testFocusMovesThroughZoomedTilesAndTheZoomStays() { + func testZoomedArrowsGoInOrderAndWrapAround() { var ws = make(3, focused: 0) ws.perform(.toggleFullWidth) XCTAssertTrue(ws.perform(.focusColumnRight)) XCTAssertEqual(ws.strip.focusedWindow, 2) - XCTAssertTrue(ws.perform(.focusWindowDown), "Direction still follows the spiral underneath") + XCTAssertTrue(ws.perform(.focusWindowUp), "Up is next too, whatever sits above underneath") XCTAssertEqual(ws.strip.focusedWindow, 3) - XCTAssertTrue(ws.perform(.focusFirstColumn)) - XCTAssertEqual(ws.strip.focusedWindow, 1) + XCTAssertTrue(ws.perform(.focusColumnRight)) + XCTAssertEqual(ws.strip.focusedWindow, 1, "Past the last, back to the first") + XCTAssertTrue(ws.perform(.focusWindowDown)) + XCTAssertEqual(ws.strip.focusedWindow, 3, "Down is the one before, wrapping too") + XCTAssertTrue(ws.perform(.focusColumnLeft)) + XCTAssertEqual(ws.strip.focusedWindow, 2) XCTAssertTrue(ws.isZoomed) XCTAssertEqual(Set(frames(ws).values), [fullScreen]) } + func testZoomedArrowsStepThroughATabGroupsTabs() { + var ws = workspace([Column(windows: [1], widthIndex: 1), Column(windows: [2, 3], widthIndex: 1, isTabbed: true), + Column(windows: [4], widthIndex: 1)], focused: 0) + ws.perform(.toggleFullWidth) + var order: [WindowID] = [] + for _ in 0..<4 { + ws.perform(.focusColumnRight) + order.append(ws.strip.focusedWindow!) + } + XCTAssertEqual(order, [2, 3, 4, 1]) + } + + func testZoomedMovesShiftTheTileOnePlaceInOrder() { + var ws = make(3, focused: 0) + ws.perform(.toggleFullWidth) + XCTAssertTrue(ws.perform(.moveWindowUp)) + XCTAssertEqual(ws.strip.windows, [2, 1, 3]) + XCTAssertTrue(ws.perform(.moveColumnRight)) + XCTAssertEqual(ws.strip.windows, [2, 3, 1]) + XCTAssertFalse(ws.perform(.moveColumnRight), "Moves stop at the ends") + XCTAssertTrue(ws.perform(.moveWindowDown)) + XCTAssertEqual(ws.strip.windows, [2, 1, 3]) + XCTAssertEqual(ws.strip.focusedWindow, 1) + } + + func testUnzoomedArrowsStillGoByDirection() { + var ws = make(3, focused: 1) + XCTAssertTrue(ws.perform(.focusWindowDown)) + XCTAssertEqual(ws.strip.focusedWindow, 3) + XCTAssertFalse(ws.perform(.focusColumnRight)) + } + func testAZoomOutlastsItsWindowsAndCoversNewOnes() { var set = WorkspaceSet(viewport: viewport) set.active.layoutOverride = .tiled From 7ae7770443694824e00fed6555f256ca0c0d8caa Mon Sep 17 00:00:00 2001 From: Jesus Sanz Date: Tue, 20 Oct 2026 09:13:30 +0200 Subject: [PATCH 2/2] Release 0.11.1 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 6 ++++++ Glide.xcodeproj/project.pbxproj | 8 ++++---- changelog/CHANGELOG.de.md | 6 ++++++ changelog/CHANGELOG.es.md | 6 ++++++ changelog/CHANGELOG.fr.md | 6 ++++++ changelog/CHANGELOG.ja.md | 6 ++++++ changelog/CHANGELOG.ko.md | 6 ++++++ changelog/CHANGELOG.pt-BR.md | 6 ++++++ changelog/CHANGELOG.zh-Hans.md | 6 ++++++ project.yml | 4 ++-- 10 files changed, 54 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fd2a18..3ad52a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ What's new in each version of Glide for Mac. Glide shows the new entries once after it updates, and each release's notes on GitHub come from here, so write for people using Glide. Add an entry for every change worth knowing about under the next version before tagging it. Glide shows these notes in the app's language: the translations live in `changelog/CHANGELOG..md`, and a new entry must be translated in every one of them before tagging (`ChangelogTranslationTests` checks that they match this file). +## 0.11.1 — 2026-10-20 + +### Changes + +- **Tiled layout: in full screen, the arrows go through the windows in order.** ⌃⌥→ and ⌃⌥↑ go to the next window, ⌃⌥← and ⌃⌥↓ to the one before, wrapping around at the ends, so you don't need to remember where each window sits underneath. A tab group's tabs come one by one, and with ⇧ the arrows move the focused window one place. + ## 0.11.0 — 2026-10-20 ### New diff --git a/Glide.xcodeproj/project.pbxproj b/Glide.xcodeproj/project.pbxproj index e443208..65d035e 100644 --- a/Glide.xcodeproj/project.pbxproj +++ b/Glide.xcodeproj/project.pbxproj @@ -640,7 +640,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 15; + CURRENT_PROJECT_VERSION = 16; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = 435MC3786D; ENABLE_HARDENED_RUNTIME = YES; @@ -662,7 +662,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 27.0; - MARKETING_VERSION = 0.11.0; + MARKETING_VERSION = 0.11.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -712,7 +712,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 15; + CURRENT_PROJECT_VERSION = 16; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = 435MC3786D; ENABLE_HARDENED_RUNTIME = YES; @@ -728,7 +728,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 27.0; - MARKETING_VERSION = 0.11.0; + MARKETING_VERSION = 0.11.1; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/changelog/CHANGELOG.de.md b/changelog/CHANGELOG.de.md index 39bf830..4bf0f03 100644 --- a/changelog/CHANGELOG.de.md +++ b/changelog/CHANGELOG.de.md @@ -2,6 +2,12 @@ Neuigkeiten in jeder Version von Glide für Mac. Glide zeigt die neuen Einträge einmal nach einem Update an, und die Hinweise zu jedem Release auf GitHub stammen von hier. Dies ist eine Übersetzung von CHANGELOG.md, das Original ist die englische Datei. +## 0.11.1 — 2026-10-20 + +### Änderungen + +- **Gekachelt: Im Vollbild gehen die Pfeiltasten der Reihe nach durch die Fenster.** ⌃⌥→ und ⌃⌥↑ wechseln zum nächsten Fenster, ⌃⌥← und ⌃⌥↓ zum vorherigen, und an den Enden geht es von vorn los. So musst du dir nicht merken, wo jedes Fenster darunter liegt. Die Tabs einer Tab-Gruppe kommen einzeln an die Reihe, und mit ⇧ verschieben die Pfeiltasten das fokussierte Fenster um eine Stelle. + ## 0.11.0 — 2026-10-20 ### Neu diff --git a/changelog/CHANGELOG.es.md b/changelog/CHANGELOG.es.md index 807dfbf..d9adfef 100644 --- a/changelog/CHANGELOG.es.md +++ b/changelog/CHANGELOG.es.md @@ -2,6 +2,12 @@ Novedades de cada versión de Glide para Mac. Glide muestra las entradas nuevas una sola vez tras actualizarse, y las notas de cada versión en GitHub salen de aquí. Esta es una traducción de CHANGELOG.md, que es el original. +## 0.11.1 — 2026-10-20 + +### Cambios + +- **En el layout en mosaico, a pantalla completa las flechas recorren las ventanas en orden.** ⌃⌥→ y ⌃⌥↑ pasan a la ventana siguiente, ⌃⌥← y ⌃⌥↓ a la anterior, y al llegar a un extremo vuelven a empezar, así que no hace falta recordar dónde está cada ventana debajo. Las pestañas de un grupo van de una en una, y con ⇧ las flechas mueven la ventana enfocada un puesto. + ## 0.11.0 — 2026-10-20 ### Novedades diff --git a/changelog/CHANGELOG.fr.md b/changelog/CHANGELOG.fr.md index e1e0273..bd9699a 100644 --- a/changelog/CHANGELOG.fr.md +++ b/changelog/CHANGELOG.fr.md @@ -2,6 +2,12 @@ Ce fichier est la traduction française de CHANGELOG.md, qui reste l’original. Il présente les nouveautés de chaque version de Glide pour Mac. Glide affiche les nouvelles entrées une seule fois après une mise à jour, et les notes de chaque version sur GitHub en sont issues. +## 0.11.1 — 2026-10-20 + +### Modifications + +- **Disposition en mosaïque : en plein écran, les flèches parcourent les fenêtres dans l’ordre.** ⌃⌥→ et ⌃⌥↑ passent à la fenêtre suivante, ⌃⌥← et ⌃⌥↓ à la précédente, en revenant au début une fois au bout : inutile de retenir où se trouve chaque fenêtre en dessous. Les onglets d’un groupe passent un par un, et avec ⇧ les flèches déplacent la fenêtre active d’une place. + ## 0.11.0 — 2026-10-20 ### Nouveautés diff --git a/changelog/CHANGELOG.ja.md b/changelog/CHANGELOG.ja.md index 0b05dac..bdddedf 100644 --- a/changelog/CHANGELOG.ja.md +++ b/changelog/CHANGELOG.ja.md @@ -2,6 +2,12 @@ Glide for Macの各バージョンの新機能です。このファイルは、原文であるCHANGELOG.mdの日本語訳です。 +## 0.11.1 — 2026-10-20 + +### 変更点 + +- **タイル表示: フルスクリーンでは、矢印キーでウィンドウを順番に切り替えます。** ⌃⌥→ と ⌃⌥↑ で次のウィンドウへ、⌃⌥← と ⌃⌥↓ で前のウィンドウへ移り、端まで来ると反対側に戻ります。下にある各ウィンドウの位置を覚えておく必要はありません。タブグループのタブは1つずつ順番に切り替わり、⇧ を押しながら矢印キーを押すと、フォーカス中のウィンドウを1つ移動します。 + ## 0.11.0 — 2026-10-20 ### 新機能 diff --git a/changelog/CHANGELOG.ko.md b/changelog/CHANGELOG.ko.md index 021bfb5..9c1397a 100644 --- a/changelog/CHANGELOG.ko.md +++ b/changelog/CHANGELOG.ko.md @@ -2,6 +2,12 @@ Mac용 Glide의 버전별 새로운 기능입니다. 이 파일은 CHANGELOG.md의 한국어 번역이며, 원본은 CHANGELOG.md입니다. Glide는 업데이트 후 새 항목을 한 번 보여 줍니다. +## 0.11.1 — 2026-10-20 + +### 변경 사항 + +- **타일 레이아웃: 전체 화면에서는 방향키로 창을 순서대로 이동합니다.** ⌃⌥→와 ⌃⌥↑는 다음 창으로, ⌃⌥←와 ⌃⌥↓는 이전 창으로 이동하며, 끝에 도달하면 처음으로 돌아갑니다. 그래서 각 창이 아래에 어디 있는지 기억할 필요가 없습니다. 탭 그룹의 탭은 하나씩 차례로 이동하며, ⇧와 함께 누르면 포커스된 창을 한 칸 옮깁니다. + ## 0.11.0 — 2026-10-20 ### 새 기능 diff --git a/changelog/CHANGELOG.pt-BR.md b/changelog/CHANGELOG.pt-BR.md index fcad0e6..244411f 100644 --- a/changelog/CHANGELOG.pt-BR.md +++ b/changelog/CHANGELOG.pt-BR.md @@ -2,6 +2,12 @@ Novidades de cada versão do Glide para Mac. O Glide mostra as novas entradas uma vez após se atualizar, e as notas de cada versão no GitHub vêm daqui, então escreva para quem usa o Glide. Adicione uma entrada para cada mudança que vale a pena conhecer na próxima versão antes de criar a tag. Esta é uma tradução de CHANGELOG.md, que é o original. +## 0.11.1 — 2026-10-20 + +### Mudanças + +- **Layout em blocos: em tela cheia, as setas percorrem as janelas em ordem.** ⌃⌥→ e ⌃⌥↑ vão para a próxima janela, ⌃⌥← e ⌃⌥↓ para a anterior, voltando ao início ao chegar ao fim, então você não precisa lembrar onde cada janela fica por baixo. As abas de um grupo vêm uma por uma, e com ⇧ as setas movem a janela focada uma posição. + ## 0.11.0 — 2026-10-20 ### Novidades diff --git a/changelog/CHANGELOG.zh-Hans.md b/changelog/CHANGELOG.zh-Hans.md index b51008a..dc74558 100644 --- a/changelog/CHANGELOG.zh-Hans.md +++ b/changelog/CHANGELOG.zh-Hans.md @@ -2,6 +2,12 @@ 这里记录了 Glide for Mac 每个版本的新变化。Glide 会在更新后显示一次新增的条目,GitHub 上每个版本的说明也来自这里,所以请以 Glide 用户的角度来写。本文件是 CHANGELOG.md 的译文,CHANGELOG.md 才是原文。每次发布前,请在下一个版本下为每项值得了解的改动添加一条记录。 +## 0.11.1 — 2026-10-20 + +### 变更 + +- **平铺布局:全屏时,方向键按顺序切换窗口。** ⌃⌥→ 和 ⌃⌥↑ 切换到下一个窗口,⌃⌥← 和 ⌃⌥↓ 切换到上一个,到达末尾后会回到开头,因此无需记住每个窗口在下面的位置。标签组中的标签会逐个切换,按住 ⇧ 时,方向键会将当前聚焦的窗口移动一个位置。 + ## 0.11.0 — 2026-10-20 ### 新增 diff --git a/project.yml b/project.yml index 6328b48..ae8d41f 100644 --- a/project.yml +++ b/project.yml @@ -12,8 +12,8 @@ settings: SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY: YES CODE_SIGN_STYLE: Automatic DEVELOPMENT_TEAM: 435MC3786D - MARKETING_VERSION: "0.11.0" - CURRENT_PROJECT_VERSION: "15" + MARKETING_VERSION: "0.11.1" + CURRENT_PROJECT_VERSION: "16" ENABLE_HARDENED_RUNTIME: YES SWIFT_EMIT_LOC_STRINGS: YES LOCALIZATION_PREFERS_STRING_CATALOGS: YES