﻿---
title: Panes and tabs
description: Splitting, moving between, zooming and closing panes, and tabs.
url: https://docs-v3-preview.elastic.dev/sessions/panes-and-tabs
---

# Panes and tabs
A session's terminals are panes, arranged in tabs. Pane keys start with `⌃w`, as in vim.

| Key                         |                                                                       |
|-----------------------------|-----------------------------------------------------------------------|
| `⌃w v`                      | Split right                                                           |
| `⌃w s`                      | Split below                                                           |
| `⌃w h` `⌃w j` `⌃w k` `⌃w l` | Focus the pane left, below, above, right (`h` and `l` alone work too) |
| `⌃w z`                      | Zoom the focused pane (again to unzoom)                               |
| `⌃w q`                      | Close the focused pane; the agent's pane asks first                   |
| `gt` / `gT`                 | Next / previous tab                                                   |
| `gn`                        | New tab with a shell                                                  |

![After ⌃w v: the agent pane split, a new shell on the right](https://docs-v3-preview.elastic.dev/images/shots/sessions/split.png)
![The tab strip: agent, shell and a tests task](https://docs-v3-preview.elastic.dev/images/shots/sessions/tab-strip.png)
New sessions open with the agent alone; set `shell_split = true` under `[sessions]` for a shell beside it.

## Task tabs

Pinned tasks open as tabs in new sessions, one each, running their command. The tab's glyph shows the last run: done
when it passed, a red square when it failed.
```toml
[repos."elastic/docs-builder".tasks]
test = "dotnet test"
```


## Zoom

![⌃w z: the agent pane filling the center](https://docs-v3-preview.elastic.dev/images/shots/sessions/zoom.png)