# Keyboard shortcuts

Press ⌘⇧K on a Mac, or Ctrl+Shift+K on Windows and Linux, to open the Shortcuts dialog. You
can also press **Settings** at the bottom of the sidebar, then **Shortcuts** in its menu. The
dialog shows the keys for your own computer.

## Global

| Action                                               | Mac | Windows and Linux |
| ---------------------------------------------------- | --- | ----------------- |
| Open the Shortcuts dialog                            | ⌘⇧K | Ctrl+Shift+K      |
| Search tasks in the command palette                  | ⌘K  | Ctrl+K            |
| Open the New Session dialog with Start now selected  | ⌘J  | Ctrl+J            |
| Open the New Session dialog with Backlog selected    | ⌘⇧J | Ctrl+Shift+J      |
| Show or hide the sidebar                             | ⌘B  | Ctrl+B            |
| Open or close Settings                               | ⌘,  | Ctrl+,            |

## Projects and tasks

| Action                                                    | Mac          | Windows and Linux       |
| --------------------------------------------------------- | ------------ | ----------------------- |
| Switch between a repository's Preview and Settings        | Tab, Shift+Tab | Tab, Shift+Tab        |
| Go to the current project's page                          | ⌘⌥0          | Ctrl+Alt+0              |
| Open one of the first nine tasks in the sidebar list   | ⌘⌥1 to ⌘⌥9   | Ctrl+Alt+1 to Ctrl+Alt+9 |
| Move to the previous or next task                         | ⌘⌥↑, ⌘⌥↓     | Ctrl+Alt+↑, Ctrl+Alt+↓  |
| Move to the previous or next project                      | ⌘⌥⇧←, ⌘⌥⇧→   | Ctrl+Alt+Shift+←, Ctrl+Alt+Shift+→ |

Hold ⌘⌥ (Ctrl+Alt on Windows and Linux) for a moment to show a number beside the first nine
tasks of the current project in the sidebar. Sensei opens the task or project you picked when you let go of the keys.

## Settings

| Action                                                                   | Keys      |
| ------------------------------------------------------------------------ | --------- |
| Step through the You sections, then the picked workspace's, and wrap around | Shift+Tab |

## Tasks

| Action                          | Keys |
| ------------------------------- | ---- |
| Filter cards by title, on the Tasks page | /    |

## Preview

| Action                          | Mac    | Windows and Linux |
| ------------------------------- | ------ | ----------------- |
| Turn responsive mode on or off  | ⌘⇧M    | Ctrl+Shift+M      |
| Open or close the logs drawer   | Ctrl+\` | Ctrl+\`            |

## Message box

| Action                                                  | Keys        |
| ------------------------------------------------------- | ----------- |
| Send the message                                        | Enter       |
| Start a new line                                        | Shift+Enter |
| Steer your own running turn                             | ⌘Enter (Ctrl+Enter on Windows and Linux) |
| Bring back earlier messages sent in this task, in an empty box | ↑, ↓ |
| Stop the running turn                                   | Esc         |

## Limits

- Single-key shortcuts, such as / on the Tasks page and Tab on a repository's page, work only when you are not typing in a text field. The message box keys work while you type in it.
- The logs drawer uses Ctrl+\` on a Mac too.
- In the macOS desktop app, a shortcut opens Sensei Spotlight only once you turn it on in Settings > This Mac > Spotlight. It is off by default, uses ⌘Space, and you can record other keys there. See [Open Spotlight with a keyboard shortcut](https://kosuke.ai/docs/help/desktop-and-mobile.md#open-spotlight-with-command-space).

## Next steps

- [Overview, Needs you and Activity](https://kosuke.ai/docs/sessions/home-and-activity.md)
- [Chat sessions and tasks](https://kosuke.ai/docs/sessions/chat-sessions.md)
