# Keyboard shortcuts

Every key Rundesk takes for itself on macOS and Windows; every other key goes to your terminal.

Rundesk takes only a short, fixed list of shortcuts, so everything else you type, **Ctrl and Option included**, reaches the terminal on screen exactly as it would in a terminal app.

## App shortcuts

Rundesk's five app shortcuts work from anywhere in the main window, a terminal included. On Windows, Ctrl alone belongs to the terminal, so the app takes Ctrl+Shift instead, as Windows Terminal does, except for Settings' Ctrl+,.

| macOS | Windows | Description |
|---|---|---|
| ⌘1 to ⌘9 | Ctrl+Shift+1 to 9 | Selects the rail's first to ninth workspace, skipping hidden ones, and closes Settings. |
| ⌘T | Ctrl+Shift+T | Opens a terminal in the project of what is shown, else the first open project, else the first project. |
| ⌘W | Ctrl+Shift+W | Closes the terminal shown, or stops the agent shown, which stays listed to resume. With a file on screen, closes its tab. |
| ⌘K | Ctrl+Shift+K | Opens the [command palette](/docs/command-palette.md), where you type a few letters to go to any project, session or view, or to start an agent, a terminal or a command. |
| ⌘, | Ctrl+, | Opens Settings on General, or on the tab you had open. |

- A key held down acts once.
- While a text field, a dialog or an open menu has focus, its own keys go to it. ⌘, and Ctrl+, still open Settings from a field, and ⌘K and Ctrl+Shift+K open the palette from one too, though not over a dialog or an open menu.
- An open dialog keeps the keyboard: Tab and Shift+Tab move only among its own buttons and fields, so nothing you type reaches a terminal behind it. A terminal inside a dialog, such as the installer's, still gets Tab and Shift+Tab.
- ⌘T and ⌘W do nothing while Settings is open, since the terminal they would act on is out of sight.
- In a popped-out window only ⌘W acts, and it brings the terminal back into the main window.
- The shortcuts work with Caps Lock on and on any keyboard layout.
- The rail shows each workspace's key in its tooltip; the **Go to** button above the bell and the Settings cog show theirs.

## Work the sidebar from the keyboard

You can work the whole sidebar without a mouse. Tab moves through it, stopping on every project
header, section header and row, and Enter or Space does what a click would:

- On a row, it shows the row's agent, terminal, command, schedule run, skill or subagent.
- On a section header, it hides or shows the section's rows.
- On a project header, it opens or closes the project.

The menu key, or Shift+F10, opens a row's or a project's right-click menu. On the rail, each
workspace is a single stop. Clicking a row with the mouse still leaves your typing in the terminal,
so you never lose your place there.

## macOS menu keys

The macOS menu bar holds these keys. Windows has no app menu.

| Menu | Item | Key |
|---|---|---|
| Rundesk | Settings | ⌘, |
| Rundesk | Hide, Hide Others | ⌘H, ⌥⌘H |
| Rundesk | Quit Rundesk | ⌘Q |
| Edit | Undo, Redo | ⌘Z, ⇧⌘Z |
| Edit | Cut, Copy, Paste, Select All | ⌘X, ⌘C, ⌘V, ⌘A |
| Window | Minimize, Toggle Full Screen | ⌘M, ⌃⌘F |

## Keys in a terminal

| macOS | Windows | Description |
|---|---|---|
| ⌘-click | Ctrl-click | Opens a web address or file path. |
| Shift+Enter | Shift+Enter | Starts a new line in an agent's prompt instead of sending it. |
| ⌘C | Ctrl+Shift+C, or Ctrl+C while text is selected | Copies the selection. |
| ⌘V | Ctrl+V or Ctrl+Shift+V | Pastes. |

On Windows, Ctrl+C with no text selected reaches the program as an interrupt, as in Windows Terminal.

On macOS, Option types the character macOS gives it, such as ∂. Switch on **Use Option as Meta key** in Settings' Terminal tab to have Option send Esc and the key instead, for word jumps in the shell and Emacs-style shortcuts.

## Keys in a file and in the Files panel

| macOS | Windows | Where | Description |
|---|---|---|---|
| ⌘F | Ctrl+F | a file shown | Opens find. |
| ⌘A | Ctrl+A | a file shown | Selects the whole file. |
| ⌘S | Ctrl+S | a file shown | Saves what you typed into it. |
| ⌘Z, ⇧⌘Z | Ctrl+Z, Ctrl+Shift+Z | a file you're typing into | Undoes and redoes. |
| Tab, Shift+Tab | the same | a file you're typing into | Indents and unindents the line. |
| Enter, Shift+Enter | the same | find in a file | Goes to the next match, or the one before. |
| Esc | Esc | find in a file | Closes find. |
| arrows, Home, End, Enter, Space | the same | the **Files** tab | Moves through the tree and opens a file. |
| Esc | Esc | the Files panel, or Settings | Closes the panel or Settings. |
| Down, Enter, Esc | the same | Search docs | Steps into the results, opens the first, or clears the search and then goes back to the project's rows. |
| Esc | Esc | a dialog | Cancels the dialog, as its Cancel button does. A click outside a dialog does nothing, except outside **Go to**, which closes it. |

## Keys in Read manuscript

Read manuscript's keys work while its pages have the focus, and the same zoom keys zoom a sheet in Page view while the sheet has the focus.

| macOS | Windows | Description |
|---|---|---|
| ⌘= or ⌘+ | Ctrl+= or Ctrl++ | Zooms the pages in, up to 200%. |
| ⌘- | Ctrl+- | Zooms the pages out, down to 50%. |
| ⌘0 | Ctrl+0 | Sets the zoom back to 100%, where the pages fit the view's width. |
| ⌘⇧O | Ctrl+Shift+O | Opens the book's table of contents, to jump to a part, chapter or sheet. |

## Related pages

- [Terminals and commands](/docs/terminals.md): what a terminal does with the rest of your keys.
- [Files & Docs](/docs/docs-view.md): reading and finding in a project's files and docs.
- [Settings](/docs/settings.md): the Terminal tab and the other tabs ⌘, opens.
