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.10.1 — 2026-10-19

### Fixes

- **Tab groups work in the Tiled layout.** ⌃⌥[ and ⌃⌥] add a window to a tab group (a tabbed column), and a tab can be moved out into its own tile, as they already did when scrolling.

## 0.10.0 — 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 = 12;
CURRENT_PROJECT_VERSION = 13;
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.0;
MARKETING_VERSION = 0.10.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 = 12;
CURRENT_PROJECT_VERSION = 13;
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.0;
MARKETING_VERSION = 0.10.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
15 changes: 15 additions & 0 deletions Sources/GlideCore/Strip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,21 @@ public struct Strip: Equatable, Sendable {
return true
}

/// Moves the focused column's window into the column at `index` as its active tab, which makes
/// that column tabbed, and leaves the focused column out. Returns false unless the focused
/// column holds just that window and `index` is another column.
@discardableResult
public mutating func joinColumn(at index: Int) -> Bool {
guard index != focusedColumnIndex, columns.indices.contains(index), columns[focusedColumnIndex].windows.count == 1 else { return false }
let window = columns.remove(at: focusedColumnIndex).windows[0]
let target = index > focusedColumnIndex ? index - 1 : index
columns[target].windows.append(window)
columns[target].isTabbed = true
columns[target].focusedRow = columns[target].windows.count - 1
focusedColumnIndex = target
return true
}

/// Swaps two columns' places, with focus following the focused column to its new one.
@discardableResult
public mutating func swapColumns(_ first: Int, _ second: Int) -> Bool {
Expand Down
14 changes: 12 additions & 2 deletions Sources/GlideCore/Workspace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ public struct Workspace: Equatable, Sendable {
case .moveWindowDown: return moveTile(.down)
case .focusFirstColumn: return strip.focusFirstColumn()
case .focusLastColumn: return strip.focusLastColumn()
// Tiles are windows, never stacks: there is nothing to consume or expel.
case .consumeOrExpelLeft, .consumeOrExpelRight: return false
case .consumeOrExpelLeft: return consumeOrExpelTile(.left)
case .consumeOrExpelRight: return consumeOrExpelTile(.right)
case .cycleColumnWidth: return cycleTiledRatio(forward: true)
case .cycleColumnWidthBackward: return cycleTiledRatio(forward: false)
case .toggleFullWidth:
Expand All @@ -482,6 +482,16 @@ public struct Workspace: Equatable, Sendable {
return strip.swapColumns(strip.focusedColumnIndex, target)
}

/// A tab of a tabbed tile with other tabs is expelled into a new tile on that side. A window
/// alone in its tile joins the tile on that side as a tab, making that tile tabbed so it stays one tile.
private mutating func consumeOrExpelTile(_ direction: HorizontalDirection) -> Bool {
guard let column = strip.focusedColumn else { return false }
if column.windows.count > 1 { return strip.consumeOrExpel(direction) }
let side: TileSide = direction == .left ? .left : .right
guard let target = TiledLayout.neighbour(of: tileFrames(tiles()), from: strip.focusedColumnIndex, side: side) else { return false }
return strip.joinColumn(at: target)
}

/// Steps the split that cuts the focused tile off from the tiles after it through 1/3, 1/2 and
/// 2/3 of its room, for the tile's share of it. The last tile has no split of its own and
/// changes the one before it.
Expand Down
46 changes: 46 additions & 0 deletions Tests/GlideCoreTests/TabTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,52 @@ final class TabTests: XCTestCase {
XCTAssertFalse(ws.strip.columns[1].isTabbed)
}

private func tiled(_ columns: [Column], focused: Int = 0) -> Workspace {
var ws = Workspace(strip: Strip(columns: columns, focusedColumnIndex: focused), viewport: viewport)
ws.layoutOverride = .tiled
return ws
}

func testTiledLoneWindowJoinsTheTileOnItsLeftAsAFocusedTab() {
var ws = tiled([Column(windows: [1], widthIndex: 1), Column(windows: [2], widthIndex: 1), Column(windows: [3], widthIndex: 1)], focused: 1)
XCTAssertTrue(ws.perform(.consumeOrExpelLeft))
XCTAssertEqual(ws.strip.columns.map(\.windows), [[1, 2], [3]], "One tile fewer")
XCTAssertTrue(ws.strip.columns[0].isTabbed, "Stays one tile rather than splitting back into columns")
XCTAssertEqual(ws.strip.focusedWindow, 2)
XCTAssertEqual(ws.tabBars().map(\.column), [0])
XCTAssertEqual(ws.tabBars()[0].activeWindow, 2)
XCTAssertEqual(placements(ws)[2]?.frame, CGRect(x: 12, y: 84, width: 588, height: 744))
XCTAssertEqual(placements(ws)[1]?.visibility, .hiddenTab)
}

func testTiledLoneWindowJoinsAnExistingTabGroupOnItsRight() {
var ws = tiled([Column(windows: [1], widthIndex: 1), Column(windows: [2, 3], widthIndex: 1, isTabbed: true), Column(windows: [4], widthIndex: 1)])
XCTAssertTrue(ws.perform(.consumeOrExpelRight))
XCTAssertEqual(ws.strip.columns.map(\.windows), [[2, 3, 1], [4]])
XCTAssertTrue(ws.strip.columns[0].isTabbed)
XCTAssertEqual(ws.strip.focusedWindow, 1)
XCTAssertEqual(ws.tabBars()[0].activeWindow, 1)
}

func testTiledTabExpelsIntoANewTileOnItsSide() {
var ws = tiled([Column(windows: [4], widthIndex: 1), Column(windows: [1, 2, 3], focusedRow: 1, widthIndex: 1, isTabbed: true)], focused: 1)
XCTAssertTrue(ws.perform(.consumeOrExpelLeft))
XCTAssertEqual(ws.strip.columns.map(\.windows), [[4], [2], [1, 3]])
XCTAssertEqual(ws.strip.focusedWindow, 2)
XCTAssertFalse(ws.strip.columns[1].isTabbed)
XCTAssertTrue(ws.strip.columns[2].isTabbed)
XCTAssertEqual(placements(ws)[2]?.visibility, .visible)
XCTAssertEqual(ws.tabBars().map(\.column), [2])
}

func testTiledTabExpelsRight() {
var ws = tiled([Column(windows: [1, 2, 3], focusedRow: 1, widthIndex: 1, isTabbed: true), Column(windows: [4], widthIndex: 1)])
XCTAssertTrue(ws.perform(.consumeOrExpelRight))
XCTAssertEqual(ws.strip.columns.map(\.windows), [[1, 3], [2], [4]])
XCTAssertEqual(ws.strip.focusedWindow, 2)
XCTAssertEqual(placements(ws)[2]?.visibility, .visible)
}

func testParkedTabbedColumnHasNoTabBar() {
let columns = [Column(windows: [1, 2], widthIndex: 1, isTabbed: true)] + (3...5).map { Column(windows: [WindowID($0)], widthIndex: 1) }
var ws = Workspace(strip: Strip(columns: columns), viewport: viewport)
Expand Down
9 changes: 6 additions & 3 deletions Tests/GlideCoreTests/TiledLayoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,14 @@ final class TiledLayoutTests: XCTestCase {
XCTAssertFalse(ws.perform(.moveWindowUp))
}

func testConsumeAndExpelDoNothingWhileTiled() {
var ws = make(3, focused: 1)
XCTAssertFalse(ws.perform(.consumeOrExpelLeft))
func testConsumeDoesNothingWithoutANeighbourOnThatSide() {
var ws = make(3, focused: 2) // [0][1 over 2]: window 3 is bottom right
XCTAssertFalse(ws.perform(.consumeOrExpelRight))
XCTAssertEqual(layout(ws.strip), [[1], [2], [3]])
XCTAssertEqual(ws.strip.focusedWindow, 3)
var single = make(1)
XCTAssertFalse(single.perform(.consumeOrExpelLeft))
XCTAssertFalse(single.perform(.consumeOrExpelRight))
}

func testCenterColumnAndScrollingDoNothingWhileTiled() {
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.10.1 — 2026-10-19

### Fehlerbehebungen

- **Tab-Gruppen funktionieren im gekachelten Layout.** ⌃⌥[ und ⌃⌥] fügen ein Fenster einer Tab-Gruppe (einer Spalte mit Tabs) hinzu, und ein Tab kann in eine eigene Kachel verschoben werden, wie es beim Scrollen schon ging.

## 0.10.0 — 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.10.1 — 2026-10-19

### Correcciones

- **Los grupos de pestañas funcionan en la disposición en mosaico.** ⌃⌥[ y ⌃⌥] añaden una ventana a un grupo de pestañas (una columna con pestañas), y una pestaña puede sacarse a su propio mosaico, como ya se podía al desplazarse.

## 0.10.0 — 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.10.1 — 2026-10-19

### Corrections

- **Les groupes d'onglets fonctionnent dans la disposition en mosaïque.** ⌃⌥[ et ⌃⌥] ajoutent une fenêtre à un groupe d'onglets (une colonne à onglets), et un onglet peut être sorti pour avoir sa propre tuile, comme c'était déjà le cas en défilant.

## 0.10.0 — 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.10.1 — 2026-10-19

### 修正

- **タイル表示でタブグループが使えるようになりました。** ⌃⌥[ と ⌃⌥] で、ウィンドウをタブグループ(タブ付きの列)に追加できます。タブを切り離して単独のタイルにすることもでき、これはスクロール表示では以前から可能でした。

## 0.10.0 — 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.10.1 — 2026-10-19

### 수정 사항

- **타일 레이아웃에서 탭 그룹이 동작합니다.** ⌃⌥[ 와 ⌃⌥] 로 창을 탭 그룹(탭이 있는 열)에 추가할 수 있고, 탭을 떼어 자체 타일로 옮길 수도 있습니다. 스크롤 레이아웃에서는 이미 가능했던 동작입니다.

## 0.10.0 — 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.10.1 — 2026-10-19

### Correções

- **Grupos de abas funcionam no layout em blocos.** ⌃⌥[ e ⌃⌥] adicionam uma janela a um grupo de abas (uma coluna com abas), e uma aba pode ser movida para o próprio bloco, como já acontecia ao rolar.

## 0.10.0 — 2026-10-19

### 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.10.1 — 2026-10-19

### 修复

- **平铺布局中的标签组可以正常使用。** ⌃⌥[ 和 ⌃⌥] 可以把窗口加入标签组(即带标签的列),也可以把一个标签移出,单独占一个平铺块,滚动布局中此前已可如此操作。

## 0.10.0 — 2026-10-19

### 新增
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.10.0"
CURRENT_PROJECT_VERSION: "12"
MARKETING_VERSION: "0.10.1"
CURRENT_PROJECT_VERSION: "13"
ENABLE_HARDENED_RUNTIME: YES
SWIFT_EMIT_LOC_STRINGS: YES
LOCALIZATION_PREFERS_STRING_CATALOGS: YES
Expand Down