# Keyboard Shortcuts

_Reference for Treq's keyboard shortcuts._

Most shortcuts act on the current [workspace](/docs/concepts/workspaces) or [terminal session](/docs/concepts/terminal-sessions).

Press `?` anywhere outside an input or the terminal to open the in-app keyboard shortcut reference.

## Global Shortcuts

| Shortcut      | Action                   |
| ------------- | ------------------------ |
| `Cmd+N`       | New workspace            |
| `Cmd+Shift+N` | Create stacked workspace |
| `Cmd+K`       | Command Palette          |
| `Cmd+P`       | File Search              |
| `?`           | Show keyboard shortcuts  |
| `Escape`      | Close dialog             |

## Terminal

| Shortcut     | Action                        |
| ------------ | ----------------------------- |
| `Cmd+J`      | Toggle terminal pane          |
| `Cmd+Ctrl+J` | Maximize/restore terminal     |
| `Cmd+]`      | New agent terminal            |
| `Cmd+\`      | New shell terminal            |
| `Cmd+W`      | Close selected terminal       |
| `Cmd+C`      | Copy selection (or interrupt) |
| `Cmd+V`      | Paste                         |

## Gestures

| Gesture               | Action                         |
| --------------------- | ------------------------------ |
| Two-finger swipe up   | Open Terminal Mission Control  |
| Two-finger swipe down | Close Terminal Mission Control |

Mission Control shows every open terminal as a card, grouped by workspace and sorted by recent activity, in a two-column grid. Select a card to focus that terminal. `Escape` also closes Mission Control.

## Files & Diff

| Shortcut | Action                   |
| -------- | ------------------------ |
| `Cmd+F`  | Search in file or diff   |
| `Cmd+A`  | Select all changed files |
