> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Set mux keys and resize splits

> Choose a key preset, change a binding, restore its preset key, and resize mux splits.

The mux is the F\[no] terminal multiplexer. It keeps agent sessions in panes and places fleet views beside them. Use this guide to choose a key preset, check your active keys, and resize splits.

> **Note:** This page describes F\[no] 0.4.9. In 0.4.9, `B` opens the backlog board, `H` opens HQ, and `=` cycles the sideline density. Before 0.4.9, `B` cycled the density. The old keys `O` (backlog) and `G` (HQ) still work in 0.4.9. The next release removes them.

## Before you start

Install F\[no] through the [quickstart](/docs/quickstart.md). Open the mux with an agent session, as described in [Run a fleet](/docs/guides/run-a-fleet.md).

The prefix introduces a mux shortcut. Its default is `ctrl+b`. To use another key, see [Set the prefix](#set-the-prefix). In this guide, `prefix+?` means press the prefix, release it, then press `?`. Uppercase letters mean uppercase keys.

## Find the active keys

1. Focus the view whose keys you need.
2. Press `prefix+?` to show that view's keys as a footer grid.
3. Press `*` without the prefix to open the full keybindings table.
4. Read your current bindings in the table.
5. Press `Esc` to close the table.

On the agents view, the footer names the prefix once, on its first line: `ctrl+b, then:`. Press the prefix before each key below that line. The `*` cell is the exception: while the footer is open, press `*` alone. If you change a key or the prefix, the footer shows the new key.

![Agents view footer: the line ctrl+b, then: above i new session, B backlog, M messages, H HQ, and the other keys](https://mintcdn.com/fno/rn_a1ZVlCOfW_s-p/images/mx-footer-prefix.png?fit=max\&auto=format\&n=rn_a1ZVlCOfW_s-p\&q=85\&s=d7e7acbe51b41f90851b710a8b575cdf)

Press `Esc` or `?` to close the footer without opening the table. Below 40 columns or 16 rows, `prefix+?` opens the full table directly. If the full table opens directly, skip `*` in the steps below. You can also click the sideline footer's `menu` button and select `keybindings`.

![Mux keybindings table showing the ctrl+b prefix, the keybindings.json path, and the global keys, with H for HQ and B for the backlog board](https://mintcdn.com/fno/rn_a1ZVlCOfW_s-p/images/mx-keys-v049.png?fit=max\&auto=format\&n=rn_a1ZVlCOfW_s-p\&q=85\&s=09a65cca6b889546544074b0569d72fb)

The table spells every key in one form: lowercase, joined with `+`. For example, it shows `ctrl+opt+left`, `ctrl+arrows`, and `pgup`. You can copy a key from the table into `keybindings.json`.

These are the built-in defaults. Under `"preset": "tmux"`, `z`, `o` and `l` move to zoom, next pane and last tab. If you change the preset or add entries, check the live table.

| Key after the prefix | Action | What it does |
| - | - | - |
| `%` | `split-right` | Split the pane to the right |
| `"` | `split-down` | Split the pane below |
| `h`, `j`, `k`, `l` | `focus-left`, `focus-down`, `focus-up`, `focus-right` | Focus a pane |
| `f` | `find` | Find a workspace, tab, pane, or agent |
| `w` | `selector` | Select a row in the sideline |
| `b` | `toggle-sideline` | Show or hide the sideline |
| `q` | `notifications-bell` | Open questions and fleet announcements |
| `M` | `open-messages` | Open Messages |
| `B` | `open-backlog-board` | Open the backlog board |
| `H` | `org-view` | Open HQ: fleet, machines, leads, and seats |
| `=` | `cycle-density` | Cycle the sideline density |
| `I` | `review-pr` | Review the focused session's PR beside its chat |
| `D` | `diff-pane` | Open the pane's Git diff |

In 0.4.9, `O` also opens the backlog board and `G` also opens HQ. The table labels them "the old key (goes away next release)". Use `B` and `H` instead.

The sideline is the panel beside the terminal panes. `find` searches across the mux. `selector` moves through the sideline's own rows.

## Key presets

A preset is a named set of mux keys. Since F\[no] 0.4.6, `~/.fno/keybindings.json` holds the preset and your key overrides. It is one flat JSON object. The reserved `"preset"` key accepts `"tmux"` or `"zellij"`. Without a preset, the mux keeps its built-in keys, so `z`, `o` and `l` keep their F\[no] actions.

Under `"preset": "tmux"`, `z` zooms the pane, `o` walks to the next pane, and `l` returns to the last tab. The three F\[no] actions move to free keys: cycle-section to `u`, sort-agents to `Q`, and focus-right to `_`.

The file sits beside the global `config.toml`. If `FNO_GLOBAL_SETTINGS_PATH` selects another global TOML file, `keybindings.json` sits beside that file. The full keybindings table shows the file path. Both presets use `ctrl+b` unless you change `mux.prefix` in `config.toml`. See [Set the prefix](#set-the-prefix).

Your action entries override the preset. An entry replaces the preset key for that action. If your entry claims another action's preset key, the mux removes that preset binding. An unknown preset name reports a warning and keeps the built-in keys. Your action entries still apply.

The old `mux.preset` and `[mux.keys]` settings in `config.toml` no longer control keys once the JSON file exists. Without a JSON file, the mux migrates them to `keybindings.json` on its next read. It prints a notice to remove the old settings. Once the JSON file exists, the mux ignores those old settings and names the JSON file to edit.

If `FNO_CONFIG` selects a config file, the mux does not migrate its settings. It reads those legacy settings only while `keybindings.json` is absent. An existing JSON file takes precedence even with `FNO_CONFIG` set.

### Choose the Zellij preset

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Set my mux preset to zellij in keybindings.json. Preserve my custom action entries. Read the file path from the full keybindings table first.
```

#### What the agent runs

The agent edits the file shown in the full keybindings table. To show that table, press `prefix+?`, then `*`. A file with no custom bindings needs only:

```json keybindings.json theme={"theme":{"light":"min-light","dark":"min-dark"}}
{
  "preset": "zellij"
}
```

For an existing file, the agent changes only `"preset"` and keeps your action entries. To reload and check:

1. Open the full table with `prefix+?`, then `*`.
2. Select `edit keys`, then exit the editor to reload the keys.
3. Check that `split-right` uses `r` and `split-down` uses `d`, unless your custom bindings override them.
4. Press `Esc` to close the table.

To return to the tmux preset, ask the agent to set `"preset"` to `"tmux"` in the same JSON file. `z`, `o` and `l` take the tmux meanings, and the three F\[no] actions move to `u`, `Q` and `_`. Reload through the editor again.

### Where the tmux preset matches

This table compares the `tmux` preset with tmux 3.8's default prefix table. A tmux window corresponds to a mux tab. Every key below follows the prefix.

| Key | tmux action | F\[no] tmux preset |
| - | - | - |
| `%`, `"` | Split right, split down | Same |
| `x` | Kill pane | Close pane |
| `c`, `n`, `p`, `&`, `,` | New, next, previous, close, rename window | Same actions for tabs |
| `1` through `9` | Select window | Select tab. `0` is unbound |
| `d` | Detach | Same |
| `w`, `f`, `?` | Window tree, find, list keys | Sideline selector, navigator, focused-view footer (`*` for all keys) |
| Arrows | Select pane | Same, plus `h j k l` |
| `ctrl+arrow` | Resize pane | Same, plus `J K L`. `H` opens HQ, so resize left has no letter by default |
| `z` | Zoom pane | Same under the `tmux` preset. Without a preset, `z` cycles the active section |
| `o` | Next pane | Same under the `tmux` preset. Without a preset, `o` sorts agents |
| `;` | Last pane | Same, every preset: `;` is a free built-in key |
| `l` | Last window | Same under the `tmux` preset. Without a preset, `l` focuses right |
| `{`, `}` | Swap pane | Same, every preset: `{` and `}` are free built-in keys |
| `!` | Break pane | Differs: `!` files a problem report |
| `s` | Session tree | Differs: toggles the status row |
| `[`, `]` | Copy mode, paste | Differs: previous or next command block |
| `r` | Refresh client | Differs: reruns a command block |

The `tmux` preset leaves the keys in the Differs rows alone: their actions have no tmux twin. To put the tmux meaning on one of those keys, add your own entry to `keybindings.json`.

### Zellij key map

Zellij uses modes with separate keys. F\[no] uses one prefix and one shared set of keys. The `zellij` preset maps these pane actions:

| Zellij action | Zellij key | F\[no] key after the prefix |
| - | - | - |
| Pane mode: new pane right | `r` | `r` (`split-right`) |
| Pane mode: new pane down | `d` | `d` (`split-down`) |
| Pane mode: close pane | `x` | `x`, unchanged |
| Pane mode: focus | `h j k l` | `h j k l`, unchanged |
| Session mode: detach | `d` | `Q` (`detach`), because `d` now splits |

The preset also moves `rerun-block` from `r` to `u`. These differences remain:

* Zellij tab-mode letters reuse pane-mode letters. Tabs keep `c`, `&`, `,`, `p`, and `n` for new, close, rename, previous, and next.
* Resize and move modes do not map. Resize keeps `J K L` and the resize chord. Resize left has no letter by default.
* Fullscreen, floating panes, stacked panes, and pane frames have no equivalent chord.
* Zellij modes do not exist in this mux. There is no locked mode or mode line.

## Change a binding

1. Press `prefix+?`, then `*`, to open the full keybindings table.
2. Select `edit keys` to open `keybindings.json` in `$EDITOR`. Without `$EDITOR`, the mux uses vi.
3. Give the `"selector"` entry the semicolon key, or add that entry to the existing JSON object.

For a tmux preset with only this override, the file reads:

```json keybindings.json theme={"theme":{"light":"min-light","dark":"min-dark"}}
{
  "preset": "tmux",
  "selector": ";"
}
```

Keep your current preset and any other action entries. Do not add a `[mux.keys]` table or a nested JSON object.

4. Save the file and exit the editor. The mux reloads the keys.
5. Check that the selector row shows the semicolon key and the `yours` tag.
6. Press `Esc` to close the table.
7. Press the prefix, then the semicolon key, to open the selector.

An action uses its action ID, such as `selector`. `toggle-sideline` changes visibility and is a different action. The table tags changed preset keys as `preset` and your changed keys as `yours`. Built-in keys have no tag.

Keys accept one printable ASCII character or a control letter, such as `ctrl+a`, `C-a`, or `^a`. The prefix is not in `keybindings.json`. To change it, see [Set the prefix](#set-the-prefix).

After applying preset precedence, the resolver checks the remaining bindings. It refuses unknown actions, key collisions, and the prefix byte as an action key. Digits `1` through `9` select tabs and cannot be rebound. Enter and Tab cannot be the prefix or an action key. The resolver also refuses their aliases `ctrl+m`, `ctrl+j`, and `ctrl+i`. The mux reports rejected entries. A rejected action entry keeps its default key. Check the live table after a refusal.

## Clear a binding override

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Remove my custom selector entry from keybindings.json. Keep the preset and all other action entries. Help me reload the keys and check the preset selector key.
```

### What the agent runs

The agent removes the `"selector"` property from the JSON file shown in the full keybindings table. It keeps the JSON valid, including commas between the remaining properties. Do not use `fno config unset mux.keys.selector` for the JSON file.

After the agent removes the override:

1. Open the full table with `prefix+?`, then `*`.
2. Select `edit keys`, then exit the editor to reload the keys.
3. Check the selector row. Without another entry that claims `w`, it returns to `prefix+w` in either preset.
4. Press `Esc` to close the table.

## Set the prefix

The prefix is `mux.prefix` in `config.toml`, in the `[mux]` table. It accepts a control letter such as `ctrl+a`, one printable key, or an Alt key such as `alt+a` or `alt+shift+a`:

```toml config.toml theme={"theme":{"light":"min-light","dark":"min-dark"}}
[mux]
prefix = "alt+shift+a"
```

An Alt prefix works the way it does in tmux. The terminal sends `Esc`, then the key, and the mux reads the pair as one key. A lone `Esc` still reaches the pane after a short wait. Keys after the prefix stay single keys. The mux does not add Alt chords after the prefix.

The mux refuses three Alt prefixes. `alt+[` and `alt+shift+o` start terminal escape sequences. `alt+` with a digit selects a tab. For a refused prefix, the mux keeps `ctrl+b` and reports the reason.

On macOS, Terminal.app and iTerm2 send a composed character for Option, such as `å` for Option+a. Set Option to act as Meta or Esc+ in the terminal profile, then write `alt+a`.

To check the prefix, focus the agents view, press the prefix, then press `?`. The footer's first line shows the prefix in force:

![Agents view footer with an Alt prefix: the first line reads alt+shift+a, then:](https://mintcdn.com/fno/rn_a1ZVlCOfW_s-p/images/mx-footer-alt-prefix.png?fit=max\&auto=format\&n=rn_a1ZVlCOfW_s-p\&q=85\&s=e48918af83a488305807bfeb832adb95)

## Resize a split

1. Find the split's edge in the table below.
2. Press the edge with the left mouse button.
3. Drag the edge to the size you want.
4. Release the mouse button.

To resize with keys:

1. Focus the view you want to resize.
2. Find its keyboard action in the table below.
3. Press the listed keys. For a resize chord, press the prefix, then `ctrl+arrow` or `ctrl+opt+arrow`.
4. Check that the size changed.

Both presets use the same resize chord: the prefix followed by `ctrl+arrow` or `ctrl+opt+arrow`. The arrow moves the visible view's edge. Otherwise, the chord resizes the tiled panes.

| Surface | Mouse edge | Keyboard |
| - | - | - |
| Tiled panes | Seam between panes | Resize chord, any arrow |
| Sideline | Right border | `prefix+=` cycles density |
| Notifications | Left border | `w` toggles wide |
| File viewer or PR review split | Left border | `-` and `+` inside the split |
| Backlog board and detail | Divider, with at least 100 columns of view width | Resize chord, left or right |
| Messages | First cell of the column to the right | Resize chord, left or right |
| Org explorer and right pane | Divider, with at least 80 columns of view width | Resize chord, left or right |
| Reply dock | Top border | Resize chord, up or down |

The tiled panes also have letter keys: `J`, `K` and `L` resize down, up and right. Resize left has no letter by default, because `H` opens HQ. To give it one, add a `"resize-left"` entry to `keybindings.json`, as in [Change a binding](#change-a-binding).

The density button sits on the sideline's top row. It cycles slim, regular, and extended layouts, which also change the width.

In Messages, focus the tree column to move its right edge. The participants and thread columns move the edge between them.

Split sizes have minimum bounds. A drag stops before it hides a pane. A smaller terminal clamps held sizes to the available space. The new backlog, Messages, org, and reply dock sizes last for the session. During those edge drags, `Esc` restores the original size. The notifications width persists across restarts.

## Next steps

* [Review a PR in the mux](/docs/guides/review-in-mux.md): send comments on specific diff lines to the worker.
* [Run a fleet](/docs/guides/run-a-fleet.md): watch agent sessions and read their results.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.