# Flyover terminal

> The Flyover is a terminal window of its own, outside every session, that you show, hide and minimize with one shortcut.

The Flyover is Flow's "global terminal": a separate macOS window with its own strip of terminal tabs that belong to no session or label. Use it for the shell you want one keystroke away whatever you're working on: a quick `git` command, a log tail, a REPL. Its shells keep running while the window is hidden or minimized.

## Show and hide it

Run **Toggle Flyover Terminal** from the palette, or press `` ⌘` `` (`keyboard.toggle_flyover`) in any Flow window. One shortcut does three things:

- Flyover not open: opens it and gives it the keyboard.
- Open but behind other windows, or minimized: brings it forward.
- Open and in front: minimizes it to the Dock.

`` ⌘` `` is a Flow shortcut, so it works while a Flow window is in front, not from other apps. Rebind it in Settings › Keyboard (see [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md)).

The very first time, with no tabs yet, the toggle opens the palette's directory picker so you can choose where the first tab starts; the window opens with that tab.

## The window

The Flyover is an ordinary macOS window, not a panel that floats on top. You can move it to another display, put other windows over it, resize it, and minimize or zoom it with its traffic lights. The tab strip fills the title bar: drag its empty part to move the window, and double-click it to zoom.

- The red close button hides the window. The tabs and their shells keep running, and `` ⌘` `` shows them again.
- Closing the last tab closes the window.
- With nothing saved, the window opens at 900 × 440 points, centred at the bottom of the display the main window is on. Flow remembers where you move it and how big you make it.

## Tabs

Every Flyover tab is a local terminal; the Flyover holds no webviews, files or other kinds of tab.

- **+** in the strip opens a tab in the active session's directory (a remote session's directory isn't used, because Flyover tabs are local).
- `⌘T` opens the palette's directory picker and starts a tab where you choose. For a git repository you then pick its main checkout or one of its existing worktrees.
- Click a tab to switch to it, or click its **×** to close it.
- Closing a tab ends its shell, and its persistent session if it has one.

Flyover tabs are saved with your workspace. After Flow relaunches they come back, reattached to their shells where those survived (see [Persistent sessions](https://flow.worldbreakstudios.com/docs/workspace/persistent-sessions.md)); the window stays closed until you toggle it.

## Keys

While the Flyover window is in front:

| Key | Action |
|---|---|
| `` ⌘` `` | Minimize the Flyover (it's in front) |
| `⌘M` | Minimize |
| `⌘T` | New tab, through the directory picker |
| `⌘W` | Close the active tab |
| `⇧⌘[` / `⇧⌘]` | Previous / next tab |
| `⌘C` | Copy the terminal's selection |
| `⌘V` | Paste into the terminal |

Any other `⌘` shortcut does what it does in Flow's main window, and everything else you type goes to the active tab's shell. The tab keys follow your bindings for **New tab**, **Close tab**, **Previous tab**, **Next tab**, **Copy selection** and **Paste**.

## Mouse

- Drag to select text. `⌘C` copies it.
- `⌘`-click a link to open it: a URL opens where your link settings send it, a file path opens in the active session's Files tab.
- Click an inline image to open it in Preview.
- Programs that use the mouse (full-screen terminal apps that turn on mouse reporting) get your clicks; hold `⇧` to select text instead.
- The scroll wheel scrolls back through the output, or goes to a program that takes it.

## Drive it from the command line

`flow-cli flyover` controls the Flyover from a script or an agent:

```sh
flow-cli flyover open                          # show the window (an error with no tabs)
flow-cli flyover close                         # hide it; tabs keep running
flow-cli flyover toggle                        # same as the keyboard toggle
flow-cli flyover new-tab --cwd ~/src/app       # new tab there, and show the window
flow-cli flyover new-tab --background          # new tab without showing or focusing the window
flow-cli flyover focus 1                       # make tab 1 active and show the window
flow-cli flyover close-tab 0                   # close tab 0
```

- Tab numbers start at 0.
- `new-tab` without `--cwd` starts in the active session's local directory. It never opens the directory picker. A `--cwd` that isn't a directory is refused.
- `open` and `toggle` fail with "the flyover has no tabs" until a tab exists; create one with `new-tab`.
- `flow-cli read panes` lists Flyover tabs with `flyover` in place of a session group.

See [flow-cli](https://flow.worldbreakstudios.com/docs/cli/flow-cli.md) for the rest of the CLI.

## Settings

| Key | Type | Default | Effect |
|---|---|---|---|
| `keyboard.toggle_flyover` | chord | `` ⌘` `` | Toggle Flyover Terminal |
| `flyover.window` | object `{x, y, w, h}` | none | The window's last frame, in macOS screen coordinates. Flow writes it after you move or resize the window; on the next open the frame is pulled fully onto a display |

You don't need to edit `flyover.window`. Without it, the Flyover opens at its default size and place.
