---
title: Keyboard shortcuts
description: The shortcuts worth learning first.
---

You can change any shortcut in **Settings > Hotkeys** (Cmd+/), which also lists every shortcut Ghostex has.

## Getting around

| Action                         | macOS                     | Windows and Linux         |
| ------------------------------ | ------------------------- | ------------------------- |
| Search commands (Quick Access) | Cmd+Shift+P               | Ctrl+Shift+P              |
| Jump to a recent session       | Cmd+P                     | Ctrl+P                    |
| Jump to a recent project       | Cmd+Option+Shift+O        | Ctrl+Alt+Shift+O          |
| Search every prompt you sent   | Cmd+Shift+F               | Ctrl+Shift+F              |
| Back / Forward                 | Cmd+[ / Cmd+]             | Ctrl+Alt+Shift+[ / ]      |
| Next / previous session        | Ctrl+Tab / Ctrl+Shift+Tab | Ctrl+Tab / Ctrl+Shift+Tab |
| Show or hide the sidebar       | Cmd+B                     | Ctrl+B                    |
| Show or hide the view panel    | Cmd+Option+B              | Ctrl+Alt+B                |
| Switch view tabs               | Option+1 to 9             | Alt+1 to 9                |
| Commands pane                  | Cmd+J                     | F12                       |
| Settings                       | Cmd+,                     | Ctrl+,                    |
| All shortcuts                  | Cmd+/                     | Ctrl+/                    |

## Sessions

| Action                           | macOS               | Windows and Linux     |
| -------------------------------- | ------------------- | --------------------- |
| New session with your last agent | Cmd+Shift+O         | Ctrl+Shift+O          |
| New session: pick an agent       | Cmd+N               | Ctrl+N                |
| New terminal                     | Cmd+Shift+T         | Ctrl+Shift+T          |
| New browser tab                  | Cmd+T               | Ctrl+T                |
| Rename session                   | Cmd+R               | Ctrl+Shift+R          |
| Fork session                     | Cmd+Ctrl+Shift+F    | Ctrl+Alt+Shift+F      |
| Sleep session                    | Cmd+Shift+A         | Ctrl+Shift+A          |
| Close session                    | Cmd+Shift+Backspace | Ctrl+Shift+Backspace  |
| Split a terminal beside / below  | Cmd+D / Cmd+Shift+D | Ctrl+D / Ctrl+Shift+D |

## Chat

| Action                           | macOS        | Windows and Linux |
| -------------------------------- | ------------ | ----------------- |
| Switch between chat and terminal | Option+G     | Alt+G             |
| Jump to the message box          | Shift+Escape | Shift+Escape      |
| Change model and effort          | Option+P     | Alt+P             |
| Big prompt editor                | Ctrl+G       | Ctrl+Shift+G      |
| Attach a file or folder          | Cmd+Option+P | Ctrl+Alt+P        |
| Queue a message for later        | Tab          | Tab               |
| Compact, then send               | Option+Enter | Alt+Enter         |
| Stop the agent                   | Escape       | Escape            |
| Copy the last reply              | Cmd+Shift+C  | Ctrl+Shift+C      |
| Copy the last code block         | Cmd+Shift+;  | Ctrl+Shift+;      |
| Summary mode on or off           | Cmd+Ctrl+S   | Ctrl+Alt+Shift+S  |
| Hand off to another agent        | Cmd+Option+E | Ctrl+Alt+E        |

## Notifications

| Action                    | macOS       | Windows and Linux |
| ------------------------- | ----------- | ----------------- |
| Open the bell             | Cmd+I       | Ctrl+I            |
| Jump to the latest unread | Cmd+Shift+U | Ctrl+Shift+U      |

:::tip[Ask Ghostex]
Try "What's the shortcut to fork a session?" Shortcut changes are made in Settings > Hotkeys; Ask Ghostex opens that page for you.
:::
