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

# Keyboard shortcuts for Agentastic

> Complete reference for every default keyboard shortcut in Agentastic, organized by category, with instructions for customizing your own bindings.

Learning the keyboard shortcuts that matter most will noticeably speed up your workflow in Agentastic. This page lists every default shortcut organized by category, followed by instructions for customizing bindings to suit your preferences.

## General

| Action          | Shortcut       |
| --------------- | -------------- |
| Quick Open      | `Cmd+P`        |
| Command Palette | `Cmd+Shift+P`  |
| Settings        | `Cmd+,`        |
| New File        | `Cmd+N`        |
| Open            | `Cmd+O`        |
| Save            | `Cmd+S`        |
| Save All        | `Cmd+Option+S` |

## Quick Open modes

Quick Open (`Cmd+P`) supports several search modes depending on what you type first:

| Mode          | Prefix          | Example        |
| ------------- | --------------- | -------------- |
| File search   | *(none)*        | `AppDelegate`  |
| Symbol search | `@`             | `@viewDidLoad` |
| Go to line    | `:`             | `:42`          |
| File at line  | `filename:line` | `App.swift:50` |

## Navigation

| Action              | Shortcut       |
| ------------------- | -------------- |
| Go to Line          | `Ctrl+G`       |
| Go to Symbol        | `Cmd+Shift+O`  |
| Go Back             | `Ctrl+-`       |
| Go Forward          | `Ctrl+Shift+-` |
| Reveal in Navigator | `Cmd+Shift+J`  |
| Jump to Selection   | `Cmd+J`        |

## Agents & worktrees

| Action                  | Shortcut          |
| ----------------------- | ----------------- |
| New Worktree            | `Cmd+Shift+T`     |
| Next Agent/Worktree     | `Cmd+Option+Down` |
| Previous Agent/Worktree | `Cmd+Option+Up`   |

## Navigator tabs

| Action                           | Shortcut                |
| -------------------------------- | ----------------------- |
| Navigator Tab 1 (Files)          | `Cmd+1`                 |
| Navigator Tab 2 (Search)         | `Cmd+2`                 |
| Navigator Tab 3 (Source Control) | `Cmd+3`                 |
| Navigator Tabs 4–9               | `Cmd+4` through `Cmd+9` |

## Editing

| Action         | Shortcut      |
| -------------- | ------------- |
| Cut            | `Cmd+X`       |
| Copy           | `Cmd+C`       |
| Paste          | `Cmd+V`       |
| Undo           | `Cmd+Z`       |
| Redo           | `Cmd+Shift+Z` |
| Move Line Up   | `Option+Up`   |
| Move Line Down | `Option+Down` |
| Duplicate Line | `Cmd+D`       |
| Delete Line    | `Cmd+Shift+K` |

## Find & replace

| Action                 | Shortcut       |
| ---------------------- | -------------- |
| Find                   | `Cmd+F`        |
| Find and Replace       | `Cmd+Option+F` |
| Find Next              | `Cmd+G`        |
| Find Previous          | `Cmd+Shift+G`  |
| Find in Project        | `Cmd+Shift+F`  |
| Use Selection for Find | `Cmd+E`        |

## View & panels

| Action                    | Shortcut       |
| ------------------------- | -------------- |
| Toggle Navigator          | `Cmd+0`        |
| Toggle Inspector          | `Cmd+Ctrl+I`   |
| Toggle Utility Area       | `Cmd+J`        |
| Toggle Toolbar            | `Cmd+Option+T` |
| Hide Interface            | `Cmd+Shift+H`  |
| Focus Editor/Utility Area | \`Ctrl+\`\`    |
| Zoom In                   | `Cmd+=`        |
| Zoom Out                  | `Cmd+-`        |

## Tabs

| Action              | Shortcut           |
| ------------------- | ------------------ |
| Next Tab            | `Cmd+}`            |
| Previous Tab        | `Cmd+{`            |
| Select Next Tab     | `Cmd+Option+Right` |
| Select Previous Tab | `Cmd+Option+Left`  |
| Close Tab           | `Cmd+W`            |
| Close Other Tabs    | `Cmd+Option+W`     |
| New Terminal Tab    | `Cmd+T`            |

## Source control

| Action       | Shortcut       |
| ------------ | -------------- |
| Pull Changes | `Cmd+Option+X` |
| Show Diff    | `Cmd+Shift+D`  |

## Code review

| Action          | Shortcut      |
| --------------- | ------------- |
| Run Code Review | `Cmd+Shift+R` |

## Tasks

| Action    | Shortcut |
| --------- | -------- |
| Run Task  | `Cmd+R`  |
| Stop Task | `Cmd+.`  |

## Editor

| Action         | Shortcut           |
| -------------- | ------------------ |
| Toggle Minimap | `Cmd+Ctrl+Shift+M` |

## Customizing shortcuts

Open **Settings > Keybindings** to change any shortcut.

### Adding a custom shortcut

<Steps>
  <Step title="Open Settings">
    Press `Cmd+,` to open Settings, then navigate to **Keybindings**.
  </Step>

  <Step title="Find the command">
    Scroll the list or use the search box to find the command you want to customize.
  </Step>

  <Step title="Set a new binding">
    Click on the current shortcut next to the command, then press your desired key combination.
  </Step>

  <Step title="Save">
    Click **Save** to apply the new binding.
  </Step>
</Steps>

### Removing a shortcut

1. Find the command in **Keybindings**
2. Click the **X** next to its shortcut
3. The command will have no shortcut assigned until you set one

### Handling conflicts

If you assign a key combination that is already in use, a warning appears. You can:

* Override the existing binding (the old command loses its shortcut)
* Choose a different key combination instead

## Tips

### Learn the high-impact shortcuts first

A handful of shortcuts cover most of what you do day-to-day:

* `Cmd+P` — Quick Open files without touching the mouse
* `Cmd+Shift+P` — Command Palette for any action you cannot remember
* `Cmd+Option+Down` / `Cmd+Option+Up` — Switch between running agents instantly

### Use the Command Palette when you forget

Press `Cmd+Shift+P`, type what you want to do, and the matching shortcut appears next to each command. It is the fastest way to rediscover a shortcut you have not memorized yet.

### Build muscle memory gradually

* Navigate the file tree with `Cmd+P` instead of clicking
* Switch editor tabs with `Cmd+{` and `Cmd+}` instead of the mouse
* Move lines with `Option+Up` / `Option+Down` instead of cut and paste

Focus on a few shortcuts per week until they become automatic, then add more.
