# Labels, spaces and label windows

> Sort sessions with labels, switch spaces from the spaces bar, give a label its own glyph and theme, open a label in its own window, or use horizontal tabs.

A **label** is a tag you put on sessions. Each label is a **space**: pick it in the spaces bar at the bottom of the sidebar and the sidebar and the Dashboard show only the sessions that carry it. A session can carry any number of labels, and **All sessions** shows everything. Labels can have their own glyph, terminal theme and sidebar colours, and can open in a window of their own.

## Create a label

- Click the round **+** at the right of the spaces bar. Flow creates "Label N" with the folder glyph, selects it and opens the label editor so you can name it.
- Press `⌃⌥⌘N` (**New label**).
- In the New session flow's Label step, choose **New label…**; it is named from what you typed.

## Put sessions in labels

| To | Do |
|---|---|
| Add or remove labels on a session | Right-click its row; the menu ends with a checkable row per label |
| Add a label | Drag the session's row onto the label's chip (the chip shows a ring while you hover) |
| Label a new session | Pick the label in the New session flow's Label step (it opens on the label you have selected) |

Dropping a row on **All sessions** changes nothing. Removing a label from a session never closes it.

## Switch spaces

- Click a chip in the spaces bar. The selected chip has a faint fill; it is how the sidebar shows which label you are in.
- `⇧⌘←` / `⇧⌘→` step to the previous / next label, wrapping around.
- A chip shows a small badge while one of its sessions is unread. Hover a chip for its name.

When the chips do not fit, unselected chips shrink to dots and widen again under the pointer; past that, a **more** chip (an ellipsis) lists the hidden ones. Labels with no sessions fold into a single **stack dot** at the right end ("Empty labels (N)"); click it to fan them out and pick one. `⇧⌘←` / `⇧⌘→` skip empty labels.

Drag chips to reorder them.

## The chip menu

Right-click a label chip for:

| Item | Does |
|---|---|
| Edit… | Opens the label editor |
| Delete label | Deletes the label (asks first while any session carries it). Sessions are never closed. |
| Open in New Window / Show Window / Close Window | Opens the label in its own window, brings that window forward, or (in that window) closes it |

## The label editor

The editor has two tabs (`⌘1` / `⌘2`):

**Glyph**

1. Type the name in **Name**. The real chip in the spaces bar updates as you type.
2. Pick a glyph: switch between **Icons** and **Emoji**, type in **Search** to filter, and click a cell. You can also type or paste any emoji into Search. Enter in Search applies the first cell; Tab moves between Name and Search.

**Theme**, for the Light or Dark appearance (switch at the top):

- **Terminal theme**: "Use default (…)" or any terminal theme, used for every terminal while this label is selected. Stored as `terminal.label.<id>.<dark|light>`.
- **Sidebar**: the sidebar's ground for this label: a solid colour or a gradient, with grain, presets and Reset (back to the base ground).

Theme changes apply to the whole window immediately while the label is selected.

**Done**, `↩` or a click back in the main window keeps your edits. ⎋ or **Restore original** puts back the original name and glyph; theme changes are kept either way.

## Label windows

A label window is a second full Flow window that shows and manages only one label's sessions: its own sidebar, tiles and Dashboard.

**Open one** from the label chip's menu (**Open in New Window**), with **Open label in new window** in the palette, or from a terminal:

```sh
flow-cli window open-label Work     # a label id or name
flow-cli window focus-label Work
flow-cli window close-label Work
```

While it is open:

- Every session carrying that label lives only in that window. In the main window the label's chip brings the label window forward instead of selecting the label.
- A session with the labels of two open windows belongs to the window opened first.
- It shows only the Sessions page and the Dashboard; actions for other pages bring the main window forward. It has no Tools band, and its spaces bar is a single pill with the label's glyph and name (right-click it for the chip menu).
- It follows your tab style (sidebar or horizontal tabs) until you switch the style in that window; from then on it keeps its own.

Close it with its red close button or **Close Window**: its sessions go back to the main window. Open label windows and their frames are restored on the next launch.

## Paired devices in the spaces bar

With the Puddles experiment on and a paired device, the spaces bar also shows a chip for each device (and its labels) after your own. Selecting one shows that device's sessions as if they were local. See [Puddle](https://flow.worldbreakstudios.com/docs/features/puddle.md).

## Horizontal tabs

Turn on **Settings › Appearance › Layout › Horizontal tabs** (`appearance.horizontal_tabs`, bool, default `false`), run **Toggle tabs mode** from the palette, or right-click empty sidebar space and choose **Use horizontal tabs**. The sidebar column is replaced by one strip across the top of the window. Left to right:

| Part | What it does |
|---|---|
| Label button | The selected label's glyph and name; opens the label dropdown: a filter field, Tools, All sessions, every label with its member count, "Create “…”" for a new name, New session and Edit labels… |
| Session tabs | The label's pinned sessions (with a pin glyph), then the others, then "+". A session group shows as one tab. |
| Snoozed and History chips | Dropdowns of snoozed sessions (with a wake button) and closed sessions (click to restore) |
| Factory, Dashboard and Settings chips | As in the sidebar header |

Session tabs work like sidebar rows: click to switch, right-click for the session menu, drag to reorder or pin (dropping on the middle of a tab joins its session group). Picking **Tools** in the label dropdown swaps the tabs for one tab per tool.

In this mode the four `⇧⌘` arrow steps trade places: `⇧⌘←` / `⇧⌘→` move between session tabs and `⇧⌘↑` / `⇧⌘↓` between labels (Tools is one of the stops). Right-click empty strip space and choose **Use vertical tabs** to go back.
