Skip to content
Merged
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.<code>.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
Expand Down
8 changes: 4 additions & 4 deletions Glide.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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)";
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
21 changes: 21 additions & 0 deletions Sources/GlideCore/Workspace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 }
Expand Down
4 changes: 2 additions & 2 deletions Tests/GlideCoreTests/TabTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ 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])
}

func testAZoomedTabGroupStaysZoomedAndShowsTheNewTab() {
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)
Expand Down
44 changes: 40 additions & 4 deletions Tests/GlideCoreTests/TiledLayoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions changelog/CHANGELOG.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions changelog/CHANGELOG.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions changelog/CHANGELOG.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions changelog/CHANGELOG.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Glide for Macの各バージョンの新機能です。このファイルは、原文であるCHANGELOG.mdの日本語訳です。

## 0.11.1 — 2026-10-20

### 変更点

- **タイル表示: フルスクリーンでは、矢印キーでウィンドウを順番に切り替えます。** ⌃⌥→ と ⌃⌥↑ で次のウィンドウへ、⌃⌥← と ⌃⌥↓ で前のウィンドウへ移り、端まで来ると反対側に戻ります。下にある各ウィンドウの位置を覚えておく必要はありません。タブグループのタブは1つずつ順番に切り替わり、⇧ を押しながら矢印キーを押すと、フォーカス中のウィンドウを1つ移動します。

## 0.11.0 — 2026-10-20

### 新機能
Expand Down
6 changes: 6 additions & 0 deletions changelog/CHANGELOG.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Mac용 Glide의 버전별 새로운 기능입니다. 이 파일은 CHANGELOG.md의 한국어 번역이며, 원본은 CHANGELOG.md입니다. Glide는 업데이트 후 새 항목을 한 번 보여 줍니다.

## 0.11.1 — 2026-10-20

### 변경 사항

- **타일 레이아웃: 전체 화면에서는 방향키로 창을 순서대로 이동합니다.** ⌃⌥→와 ⌃⌥↑는 다음 창으로, ⌃⌥←와 ⌃⌥↓는 이전 창으로 이동하며, 끝에 도달하면 처음으로 돌아갑니다. 그래서 각 창이 아래에 어디 있는지 기억할 필요가 없습니다. 탭 그룹의 탭은 하나씩 차례로 이동하며, ⇧와 함께 누르면 포커스된 창을 한 칸 옮깁니다.

## 0.11.0 — 2026-10-20

### 새 기능
Expand Down
6 changes: 6 additions & 0 deletions changelog/CHANGELOG.pt-BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions changelog/CHANGELOG.zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

### 新增
Expand Down
4 changes: 2 additions & 2 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down