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

# Keyboard Shortcuts

> Every default key binding in Assert

Press <kbd>G</kbd> then <kbd>?</kbd> in any review to open the shortcut help dialog.

<Info>
  Shortcuts written as <kbd>G</kbd> → <kbd>D</kbd> are **sequences**: press the keys
  one after the other. A sequence times out after about a second.

  Typing in a text field takes priority, so <kbd>J</kbd> inserts a `j` in a comment.
</Info>

## File navigation

| Action           | Shortcut                     |
| :--------------- | :--------------------------- |
| Move up          | <kbd>K</kbd>                 |
| Move down        | <kbd>J</kbd>                 |
| Move left        | <kbd>H</kbd>                 |
| Move right       | <kbd>L</kbd>                 |
| Next file        | <kbd>⇧</kbd><kbd>J</kbd>     |
| Previous file    | <kbd>⇧</kbd><kbd>K</kbd>     |
| Next change      | <kbd>]</kbd> → <kbd>H</kbd>  |
| Previous change  | <kbd>\[</kbd> → <kbd>H</kbd> |
| Next comment     | <kbd>]</kbd> → <kbd>C</kbd>  |
| Previous comment | <kbd>\[</kbd> → <kbd>C</kbd> |

## History navigation

| Action       | Shortcut                 |
| :----------- | :----------------------- |
| Jump back    | <kbd>⌃</kbd><kbd>O</kbd> |
| Jump forward | <kbd>⌃</kbd><kbd>I</kbd> |

## Symbols

| Action           | Shortcut                    |
| :--------------- | :-------------------------- |
| Go to definition | <kbd>G</kbd> → <kbd>D</kbd> |
| Search in diff   | <kbd>⇧</kbd><kbd>\*</kbd>   |

## Panels

| Action            | Shortcut                 |
| :---------------- | :----------------------- |
| Toggle left panel | <kbd>⌃</kbd><kbd>B</kbd> |

## Cluster navigation

| Action        | Shortcut                    |
| :------------ | :-------------------------- |
| Cluster up    | <kbd>G</kbd> → <kbd>↑</kbd> |
| Cluster down  | <kbd>G</kbd> → <kbd>↓</kbd> |
| Cluster left  | <kbd>G</kbd> → <kbd>←</kbd> |
| Cluster right | <kbd>G</kbd> → <kbd>→</kbd> |
| Mark reviewed | <kbd>R</kbd>                |

See [Reviewable units](/reviewing/clusters).

## Comments

| Action             | Shortcut                             |
| :----------------- | :----------------------------------- |
| Add comment        | <kbd>⌘</kbd><kbd>K</kbd>             |
| Add suggestion     | <kbd>⌘</kbd><kbd>I</kbd>             |
| Edit comment       | <kbd>↵</kbd>                         |
| Save comment       | <kbd>⌘</kbd><kbd>↵</kbd>             |
| Cancel comment     | <kbd>esc</kbd>                       |
| Delete comment     | <kbd>⌫</kbd>                         |
| Move comment left  | <kbd>⌃</kbd><kbd>⌥</kbd><kbd>←</kbd> |
| Move comment right | <kbd>⌃</kbd><kbd>⌥</kbd><kbd>→</kbd> |

See [Comments](/reviewing/comments).

## Cloud agents

| Action                 | Shortcut                 |
| :--------------------- | :----------------------- |
| Copy selected comments | <kbd>⌘</kbd><kbd>C</kbd> |
| Select agent 1         | <kbd>⌥</kbd><kbd>1</kbd> |
| Select agent 2         | <kbd>⌥</kbd><kbd>2</kbd> |
| Select agent 3         | <kbd>⌥</kbd><kbd>3</kbd> |

Agent numbers are positional over your connected agents. See
[Agents](/integrations/agents).

## Miscellaneous

| Action                            | Shortcut                    |
| :-------------------------------- | :-------------------------- |
| Accept Assert's suggested comment | <kbd>A</kbd>                |
| Open clusters                     | <kbd>V</kbd>                |
| Toggle cluster tree               | <kbd>⌥</kbd><kbd>H</kbd>    |
| Open search                       | <kbd>/</kbd>                |
| Cancel search                     | <kbd>esc</kbd>              |
| Toggle help                       | <kbd>G</kbd> → <kbd>?</kbd> |

<Note>
  Custom key bindings are not configurable yet.
</Note>
