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.0 — 2026-10-20

### New

- **Tiled layout: ⌃⌥F makes the whole workspace full screen.** Every window fills the screen, with the focused one on top, until you press ⌃⌥F again. ⌃⌥ + arrows move through the windows without leaving it, and new windows open full screen too.

## 0.10.2 — 2026-10-19

### 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 = 14;
CURRENT_PROJECT_VERSION = 15;
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.10.2;
MARKETING_VERSION = 0.11.0;
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 = 14;
CURRENT_PROJECT_VERSION = 15;
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.10.2;
MARKETING_VERSION = 0.11.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
4 changes: 2 additions & 2 deletions 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 focused tile to fill the screen until you press it again, or move focus away.
- **⌃⌥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.
- 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 All @@ -59,7 +59,7 @@ Raw finger positions come from Apple's private MultitouchSupport framework, the
| Move window up / down (within a column, or reorder tabs) | ⌃⌥⇧↑ / ⌃⌥⇧↓ |
| Consume or expel window left / right | ⌃⌥[ / ⌃⌥] |
| Cycle column width (⅓ → ½ → ⅔ → full); tiled: the split | ⌃⌥R (⌃⌥⇧R cycles backward) |
| Toggle full width; tiled: zoom the tile | ⌃⌥F |
| Toggle full width; tiled: zoom every tile | ⌃⌥F |
| Toggle tabbed column | ⌃⌥W |
| Switch the workspace between scrolling and tiled | ⌃⌥T |
| Switch the tiled workspace between 2 and 3 columns | ⌃⌥G |
Expand Down
45 changes: 19 additions & 26 deletions Sources/GlideCore/Workspace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ public struct Workspace: Equatable, Sendable {
/// What the first part of each split gets, by split (see `TiledLayout`); 0 keeps a split's default.
/// Only used while it has one entry per split, so it starts over when windows come or go.
public var tiledRatios: [CGFloat]?
/// The window whose tile fills the screen (tiled "full width"); only counts while that tile has focus.
public private(set) var zoomedWindow: WindowID?
/// Tiled full screen ("full width" on a tiled workspace): every tile fills the screen, stacked, and
/// focus moves through them in the usual order, the focused one on top. Lasts until toggled off.
public private(set) var isZoomed = false
/// The window whose learned minimum width held back the last width change, so the caller can say why; nil otherwise.
public private(set) var stoppedByMinimum: WindowID?

Expand All @@ -117,7 +118,7 @@ public struct Workspace: Equatable, Sendable {
layoutOverride = layout == .scrolling ? .tiled : .scrolling
if layout == .scrolling {
strip.resetWidths(to: settings.defaultWidthIndex)
zoomedWindow = nil
isZoomed = false
}
settleScroll()
}
Expand Down Expand Up @@ -197,12 +198,10 @@ public struct Workspace: Equatable, Sendable {
// MARK: Scrolling

/// Tiled workspaces don't scroll: everything is on screen. They keep one tile per column
/// instead (a window dropped onto another's column becomes the next tile) and forget a zoom
/// whose window has gone.
/// instead (a window dropped onto another's column becomes the next tile).
private mutating func keepTiledShape() {
strip.explodeStacks()
scrollOffset = 0
if let zoomed = zoomedWindow, !strip.contains(zoomed) { zoomedWindow = nil }
}

/// Scrolls as little as possible to bring the focused column fully on screen.
Expand Down Expand Up @@ -395,7 +394,7 @@ public struct Workspace: Equatable, Sendable {
return strip.setCustomWidth(width, forColumnOf: window)
}
let tiles = tiles()
guard let index = tiles.firstIndex(where: { tileWindows($0).contains(window) }), zoomedWindow == nil else { return false }
guard let index = tiles.firstIndex(where: { tileWindows($0).contains(window) }), !isZoomed else { return false }
let count = tiles.count
let ratios = displayedRatios(tiles)
guard let sizing = sizing(ofTile: index, count: count, ratios: ratios) else { return false }
Expand Down Expand Up @@ -479,12 +478,6 @@ public struct Workspace: Equatable, Sendable {
return (earlier, false, splits[earlier].room.width - settings.gap)
}

/// The tile holding the zoomed window, while it has focus.
private func zoomedTile(in tiles: [Tile]) -> Int? {
guard let zoomed = zoomedWindow, let focused = strip.focusedColumn, focused.windows.contains(zoomed) else { return nil }
return tiles.firstIndex { $0.column == strip.focusedColumnIndex && ($0.row == nil || focused.windows[$0.row!] == zoomed) }
}

/// Every tile's frame as the spiral lays it out, with the ratios fitted to minimum widths but before
/// zoom: what focus and move go by, and what the ratios shape.
private func tileFrames(_ tiles: [Tile]) -> [CGRect] {
Expand All @@ -493,10 +486,14 @@ public struct Workspace: Equatable, Sendable {

/// The frames tiles are sent to. A tile narrower than a window in it allows gets that window's minimum
/// width within its own x, overlapping its neighbour, but only when the minimums can't all fit (see
/// `fittedRatios`); a zoomed tile fills the screen.
/// `fittedRatios`); zoomed, every tile fills the screen.
private func placedFrames(_ tiles: [Tile]) -> [CGRect] {
var frames = tileFrames(tiles)
let gap = settings.gap
if isZoomed {
let screen = CGRect(x: viewport.minX + gap, y: viewport.minY + gap, width: usableWidth, height: max(viewport.height - 2 * gap, 0))
return Array(repeating: screen, count: tiles.count)
}
var frames = tileFrames(tiles)
let right = viewport.maxX - gap
for index in frames.indices {
let minimum = tileWindows(tiles[index]).compactMap { minimumWidths[$0] }.max() ?? 0
Expand All @@ -505,20 +502,14 @@ public struct Workspace: Equatable, Sendable {
frames[index].origin.x = min(frames[index].minX, max(right - width, viewport.minX + gap))
frames[index].size.width = width
}
if let zoomed = zoomedTile(in: tiles) {
frames[zoomed] = CGRect(x: viewport.minX + gap, y: viewport.minY + gap, width: usableWidth, height: max(viewport.height - 2 * gap, 0))
}
return frames
}

/// Focus, move, width and zoom in a tiled workspace. nil for actions that work as they do on the strip.
private mutating func performTiled(_ action: Action) -> Bool? {
keepTiledShape()
if strip.isEmpty { return action == .toggleLayout || action == .toggleTabbed || action == .centerColumn ? nil : false }
let changed = performTiledAction(action)
// A zoom ends when focus leaves its tile.
if let zoomed = zoomedWindow, strip.focusedColumn?.windows.contains(zoomed) != true { zoomedWindow = nil }
return changed
return performTiledAction(action)
}

private mutating func performTiledAction(_ action: Action) -> Bool? {
Expand All @@ -535,10 +526,11 @@ public struct Workspace: Equatable, Sendable {
case .focusLastColumn: return strip.focusLastColumn()
case .consumeOrExpelLeft: return consumeOrExpelTile(.left)
case .consumeOrExpelRight: return consumeOrExpelTile(.right)
case .cycleColumnWidth: return cycleTiledRatio(forward: true)
case .cycleColumnWidthBackward: return cycleTiledRatio(forward: false)
// Zoomed, the splits don't show, so there is nothing to see change.
case .cycleColumnWidth: return !isZoomed && cycleTiledRatio(forward: true)
case .cycleColumnWidthBackward: return !isZoomed && cycleTiledRatio(forward: false)
case .toggleFullWidth:
zoomedWindow = zoomedTile(in: tiles()) == nil ? strip.focusedWindow : nil
isZoomed.toggle()
return true
default: return nil
}
Expand Down Expand Up @@ -685,7 +677,8 @@ public struct Workspace: Equatable, Sendable {
let frames = placedFrames(tiles)
return tiles.enumerated().compactMap { index, tile in
let column = strip.columns[tile.column]
guard column.isTabbed else { return nil }
// Zoomed, the tiles are stacked and only the focused one shows.
guard column.isTabbed, !isZoomed || tile.column == strip.focusedColumnIndex else { return nil }
let frame = CGRect(x: frames[index].minX, y: frames[index].minY, width: frames[index].width, height: settings.tabBarHeight)
return TabBarPlacement(column: tile.column, frame: frame, windows: column.windows, activeIndex: column.focusedRow)
}
Expand Down
12 changes: 11 additions & 1 deletion Tests/GlideCoreTests/TabTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,22 @@ final class TabTests: XCTestCase {
XCTAssertFalse(ws.perform(.focusWindowDown))
}

func testZoomedOnlyTheFocusedTilesTabBarShows() {
var ws = Workspace(strip: Strip(columns: [Column(windows: [1, 2], widthIndex: 1, isTabbed: true),
Column(windows: [3, 4], widthIndex: 1, isTabbed: true)]), viewport: viewport)
ws.layoutOverride = .tiled
ws.perform(.toggleFullWidth)
XCTAssertEqual(ws.tabBars().map(\.column), [0])
ws.perform(.focusColumnRight)
XCTAssertEqual(ws.tabBars().map(\.column), [1])
}

func testAZoomedTabGroupStaysZoomedAndShowsTheNewTab() {
var ws = tiledWithTabGroup()
ws.strip.focus(10)
ws.perform(.toggleFullWidth)
XCTAssertTrue(ws.perform(.focusWindowDown))
XCTAssertNotNil(ws.zoomedWindow, "Zoom only ends when focus leaves the tile")
XCTAssertTrue(ws.isZoomed)
XCTAssertEqual(ws.tabBars()[0].activeWindow, 11)
XCTAssertEqual(placements(ws)[11]?.visibility, .visible)
XCTAssertEqual(placements(ws)[11]?.frame, CGRect(x: 12, y: 84, width: 1188, height: 744))
Expand Down
44 changes: 29 additions & 15 deletions Tests/GlideCoreTests/TiledLayoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -254,37 +254,51 @@ final class TiledLayoutTests: XCTestCase {

// MARK: Zoom

func testFullWidthZoomsTheFocusedTileUntilToggledAgain() {
private let fullScreen = CGRect(x: 12, y: 52, width: 1188, height: 776)

func testFullWidthMakesEveryTileFillTheScreenUntilToggledAgain() {
var ws = make(3, focused: 1)
let before = frames(ws)
XCTAssertTrue(ws.perform(.toggleFullWidth))
let zoomed = frames(ws)
XCTAssertEqual(zoomed[2], CGRect(x: 12, y: 52, width: 1188, height: 776))
XCTAssertEqual(zoomed[1], before[1], "The others stay put, underneath")
XCTAssertEqual(zoomed[3], before[3])
XCTAssertTrue(ws.isZoomed)
XCTAssertEqual(Set(frames(ws).values), [fullScreen], "Every tile fills the screen, stacked")
XCTAssertTrue(ws.perform(.toggleFullWidth))
XCTAssertEqual(frames(ws), before)
}

func testAZoomEndsWhenFocusLeavesAndDoesNotComeBack() {
func testFocusMovesThroughZoomedTilesAndTheZoomStays() {
var ws = make(3, focused: 0)
ws.perform(.toggleFullWidth)
XCTAssertTrue(ws.perform(.focusColumnRight))
XCTAssertNil(ws.zoomedWindow)
ws.perform(.focusColumnLeft)
XCTAssertNotEqual(frames(ws)[1], CGRect(x: 12, y: 52, width: 1188, height: 776))
XCTAssertEqual(ws.strip.focusedWindow, 2)
XCTAssertTrue(ws.perform(.focusWindowDown), "Direction still follows the spiral underneath")
XCTAssertEqual(ws.strip.focusedWindow, 3)
XCTAssertTrue(ws.perform(.focusFirstColumn))
XCTAssertEqual(ws.strip.focusedWindow, 1)
XCTAssertTrue(ws.isZoomed)
XCTAssertEqual(Set(frames(ws).values), [fullScreen])
}

func testAZoomEndsWhenItsWindowLeaves() {
func testAZoomOutlastsItsWindowsAndCoversNewOnes() {
var set = WorkspaceSet(viewport: viewport)
set.active.layoutOverride = .tiled
for id: WindowID in [1, 2] { set.insert(id, widthIndex: 1, focus: true) }
set.active.perform(.toggleFullWidth)
XCTAssertEqual(set.active.zoomedWindow, 2)
set.remove(2)
XCTAssertNil(set.active.zoomedWindow)
set.insert(2, widthIndex: 1, focus: true)
XCTAssertEqual(frames(set.active)[2], CGRect(x: 612, y: 52, width: 588, height: 776))
XCTAssertTrue(set.active.isZoomed)
XCTAssertEqual(frames(set.active)[1], fullScreen)
set.insert(3, widthIndex: 1, focus: true)
XCTAssertEqual(frames(set.active)[3], fullScreen)
XCTAssertEqual(set.active.strip.focusedWindow, 3)
}

func testZoomedWidthStepsAndResizesDoNothing() {
var ws = make(2, focused: 0)
ws.perform(.toggleFullWidth)
XCTAssertFalse(ws.perform(.cycleColumnWidth))
XCTAssertFalse(ws.setColumnWidthFromResize(1, to: 400))
ws.perform(.toggleFullWidth)
XCTAssertEqual(placed(ws), expected(ws))
}

func testATabbedTileCanBeZoomedToo() {
Expand Down Expand Up @@ -483,7 +497,7 @@ final class TiledLayoutTests: XCTestCase {
ws.perform(.toggleFullWidth)
ws.toggleLayout()
ws.toggleLayout()
XCTAssertNil(ws.zoomedWindow)
XCTAssertFalse(ws.isZoomed)
}

func testThereAndBackKeepsTheOrderAndTheFocus() {
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.0 — 2026-10-20

### Neu

- **Gekachelt: ⌃⌥F schaltet den ganzen Arbeitsbereich auf Vollbild.** Jedes Fenster füllt den Bildschirm, das fokussierte liegt oben, bis du ⌃⌥F erneut drückst. Mit ⌃⌥ + Pfeiltasten wechselst du zwischen den Fenstern, ohne das Vollbild zu verlassen, und neue Fenster öffnen sich ebenfalls im Vollbild.

## 0.10.2 — 2026-10-19

### 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.0 — 2026-10-20

### Novedades

- **En el layout en mosaico, ⌃⌥F pone todo el escritorio a pantalla completa.** Cada ventana llena la pantalla, con la enfocada encima, hasta que vuelvas a pulsar ⌃⌥F. ⌃⌥ + flechas pasan de una ventana a otra sin salir de la pantalla completa, y las ventanas nuevas también se abren a pantalla completa.

## 0.10.2 — 2026-10-19

### 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.0 — 2026-10-20

### Nouveautés

- **Disposition en mosaïque : ⌃⌥F met tout le bureau en plein écran.** Chaque fenêtre remplit l’écran, celle qui a le focus au-dessus, jusqu’à ce que vous appuyiez de nouveau sur ⌃⌥F. ⌃⌥ + flèches passent d’une fenêtre à l’autre sans quitter le plein écran, et les nouvelles fenêtres s’ouvrent aussi en plein écran.

## 0.10.2 — 2026-10-19

### 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.0 — 2026-10-20

### 新機能

- **タイル表示: ⌃⌥F でワークスペース全体がフルスクリーンになります。** もう一度 ⌃⌥F を押すまで、すべてのウィンドウが画面全体に表示され、フォーカス中のウィンドウが一番上になります。⌃⌥ + 矢印キーでフルスクリーンのままウィンドウを切り替えられ、新しいウィンドウもフルスクリーンで開きます。

## 0.10.2 — 2026-10-19

### 新機能
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.0 — 2026-10-20

### 새 기능

- **타일 레이아웃: ⌃⌥F 로 워크스페이스 전체가 전체 화면이 됩니다.** ⌃⌥F 를 다시 누를 때까지 모든 창이 화면을 가득 채우고, 포커스된 창이 맨 위에 표시됩니다. ⌃⌥ + 방향키로 전체 화면을 유지한 채 창을 전환할 수 있으며, 새 창도 전체 화면으로 열립니다.

## 0.10.2 — 2026-10-19

### 새 기능
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.0 — 2026-10-20

### Novidades

- **Layout em blocos: ⌃⌥F deixa todo o espaço de trabalho em tela cheia.** Cada janela preenche a tela, com a focada por cima, até você pressionar ⌃⌥F de novo. ⌃⌥ + setas passam de uma janela para outra sem sair da tela cheia, e janelas novas também abrem em tela cheia.

## 0.10.2 — 2026-10-19

### Novidades
Expand Down
Loading