# Command palette

Go to any project, session or view, or start something, with one key and a few letters.

You've got a dozen projects across three workspaces, and the agent you need is somewhere in the
second one. Rather than clicking through the rail and the sidebar, press **⌘K** (**Ctrl+Shift+K** on
Windows) anywhere in the main window, a terminal included, type a few letters into
`Go to a project, agent, terminal or view`, and press Enter. If the key slips your mind, the **Go to** button
at the bottom of the rail, just above the bell, opens the same palette.

## What the palette finds

The palette searches every workspace, not only the one on screen, so you can jump straight across:

- **Projects.** The current workspace's come first. A project in another workspace shows that
  workspace's name, as does any project whose name another one shares.
- **Sessions.** Each agent and terminal of each project.
- **Views.** A project's Files, its Docs (when it has a docs folder), its Changes (when it's a git
  repository) and each of its commands.
- **Actions.** Start any of your agents in a project, open a new terminal there, or start a command
  that isn't running. Nothing starts until you choose it.

## How typing matches

Every word you type in the palette has to match a row's name or its project, so two short words narrow things fast.
Matches at the start of a name rank highest, then the start of a word inside it, then anywhere in it.
Letters in order work too: `rda` finds `rundesk-app`, and `files api` finds the Files view of your api
project.

## Go back to where you just were

The palette remembers where you've been: whatever you chose recently comes first, and with nothing
typed, the list opens on your last choice other than where you are now. That makes hopping back to
where you just were two keys: ⌘K, then Enter. Rundesk holds these choices only while it runs and never
stores them.

## Keys in the palette

| Key | Description |
|---|---|
| ↑ ↓ | Move through the rows |
| Page Up, Page Down | Move a page at a time |
| Enter | Go to the row, or start it |
| Esc, or click outside it | Close the palette and put your focus back where it was |

## What happens when you go to a project

Going to a project opens it in the sidebar and puts the focus on its header, so Tab carries you on
into its rows, as [Keyboard shortcuts](/docs/keyboard-shortcuts.md#work-the-sidebar-from-the-keyboard) describes. If another
project in that workspace is pinned and open, Rundesk collapses it so the one you chose shows, and the
pin stays.

## Related pages

- [Keyboard shortcuts](/docs/keyboard-shortcuts.md): every key Rundesk takes, on macOS and Windows.
- [Workspaces and projects](/docs/projects.md): workspaces, projects and the sidebar.
- [Work across several projects in a day](/docs/a-day-across-projects.md): moving between clients and projects all day.
