# Tabs, split panes and sessions

ARNscope's pages follow the profile and region in the title bar. When you need two at once, to compare staging with production, or to keep a shell open on one instance while you look at another, a page can hold tabs and split panes, each with a profile and region of its own.

## Tabs

Every AWS page (everything in the sidebar except S3, Tunnels and Settings) has tabs. At first there is one, and no tab strip: the page follows the profile and region in the title bar. A second tab shows the strip.

- The first tab, with the note "Follows the profile and region in the title bar", changes account when you change the title bar. It is never closed.
- Any other tab is **pinned**: it keeps its own profile and region whatever the title bar says. Its tooltip says "Pinned: keeps its own profile and region", and the tab shows the resource you have open in it.

### Open a tab

- On pages that offer it ([EC2](https://arnscope.com/docs/ec2), CloudWatch, Logs, DynamoDB and Databases), right-click a resource and choose **Open in new tab**. The tab is pinned to the profile and region you are in. If a tab already shows that resource there, ARNscope switches to it.
- A **favourite** from another profile or region opens in a **new tab**, a **split pane** or by **switching the whole app**, as you choose under **Settings → Resources from another account** ([Settings](https://arnscope.com/docs/settings#resources-from-another-account)). ⌘-click a favourite, or use its menu, for another choice once.

Tabs live for the session. Quitting ARNscope forgets them.

### Close a tab

Use the tab's close button, or press **Delete** or **Backspace** on a focused pinned tab. A tab with live sessions asks first: "Close … ? It has 2 live sessions; closing the tab ends them." **Cancel** keeps it, **End and close** ends the sessions and closes the tab.

Arrow keys, **Home** and **End** move between tabs.

### Tabs that hold a session stay put

A green dot on a tab means it holds a live session, such as a shell, a Files session or a database console. Two things protect it:

- If you change the profile or region in the title bar while the following tab holds a live session, that tab is **pinned to the account it was on** and a fresh following tab opens for the new one. The session keeps working where it started.
- Moving a pinned tab that has a live session to another account opens the new account in a new tab instead.

## Split panes

A page can show two panes side by side, each its own copy of the page with its own selection. Open a resource beside the current one by:

- dragging its row onto a side of the page,
- ⌘-clicking it (Ctrl-click on other systems), or pressing ⌘-Enter on a focused row, or
- **Open beside** in a resource's right-click menu, where there is one.

Dropping on a side that already has a pane replaces that pane's resource. The pane you last used drives the title bar, and keyboard shortcuts go to it only. Closing a pane that holds a live session asks first, like a tab. When two panes share the width, the page tucks its resource list away.

## The Sessions menu

**Sessions** in the title bar, with a count, lists everything that is open right now:

| Kind | Opened from |
| --- | --- |
| Shell | [EC2](https://arnscope.com/docs/ec2) |
| Files | [EC2 Files](https://arnscope.com/docs/ec2-files) |
| PostgreSQL, MySQL, ClickHouse | [Databases](https://arnscope.com/docs/rds-postgresql) and [StarRocks](https://arnscope.com/docs/starrocks) |
| Valkey | [Valkey](https://arnscope.com/docs/valkey) |
| Tunnel | [SSM tunnels](https://arnscope.com/docs/ssm-tunnels) |

Each row shows the target, the kind, the profile and region (with a red mark for a production profile) and how long it has been open. **Go to** shows the page and, when it can, the tab that holds it. **End** asks "End this session? Anything running in the shell stops. This can't be undone." and then ends it the same way the page's own End button does. For a database console or a cache, End is on its page, so that its state stays right.

If the window reloaded while a session was running (during an update, for example), the session is listed under **From before reload** with a warning. It cannot be shown again, so end it when you are done.

The menu reads the list when you open it and when a session starts or ends. It does not poll.

## The Production flag

ARNscope marks **production profiles** in red wherever it can: the title bar, tabs, split panes, the Sessions menu and terminals. A profile is production when its name has a `prod`, `production` or `prd` part, or when you turn it on yourself under **Settings → AWS profiles → Production**. The same switch removes the mark from a profile the name rule caught. See [Settings](https://arnscope.com/docs/settings#production-profiles).

The mark is a reminder, and it also changes behaviour: confirmations for production profiles say so, and a few ask twice. See [Writes and confirmations](https://arnscope.com/docs/writes#production-profiles).

## Limitations

- **Tabs are not saved.** They are gone after a restart.
- **Two panes per page.** Each tab can split once.
- **No tabs on S3.** S3 has its own navigation, and the Tunnels page lists all tunnels in one place.
- **Not every resource list has an "Open in new tab" menu.** Where it does not, use a split pane, or switch the profile in the title bar.
- **Sessions from before a reload cannot be shown again**, only ended.

Want tabs somewhere they are missing? Write to [hello@arnscope.com](mailto:hello@arnscope.com).

Source: https://arnscope.com/docs/tabs-and-sessions
