# Shortcuts and the command palette

> The keyboard shortcuts Rejarsume has, where each one works, and how to use the command palette to reach anything else.

## The modifier key

On Windows and Linux the modifier is Ctrl, so the command palette is

Ctrl + K.
On a Mac the modifier is ⌘, so the command palette is ⌘ +

K.

The rest of this page writes Ctrl. Read ⌘ on a Mac.

## The shortcuts

Open **Keyboard shortcuts** from the application menu, or from the command
palette, for the same list inside the app. It lists only what is bound.

Anywhere in the app:

| Keys                                              | Does                                         |
| ------------------------------------------------- | -------------------------------------------- |
| Ctrl + K                    | Opens the command palette                    |
| Ctrl + B                    | Collapses or expands the sidebar             |
| Ctrl + Z                    | Undoes the last change to the resume         |
| Ctrl + Shift + Z | Redoes (also Ctrl + Y) |

In the Markdown and CSS panes:

| Keys                           | Does                                         |
| ------------------------------ | -------------------------------------------- |
| Ctrl + Z | Undoes typing, a step at a time              |
| Ctrl + F | Finds in the pane                            |
| F1                  | Opens the code editor's own list of commands |

On the paper, in Visual mode:

| Keys              | Does                                              |
| ----------------- | ------------------------------------------------- |
| Enter  | Edits the highlighted text, then keeps the change |
| Escape | Finishes editing and discards the change          |

## Why some do not work everywhere

The code panes and the paper are not part of the page around them. The code
editor is a text editor of its own with its own bindings, and the paper is a
separate document, so a keystroke inside either does not reach the app. That
is deliberate. It means that while your cursor is in a code pane, or you are
editing a field on the paper, Ctrl + K and

Ctrl + B do nothing, and the undo shortcut undoes what you
typed there rather than the whole resume. Click outside them and the shortcut
means the app again. The buttons in the bar always act on the whole resume.

## The command palette

Ctrl + K opens the palette, which has a field marked
**Search commands…**. Type any part of what you want. It matches a command's
name, its description and some related words, so "folder" finds **New group**
and "dark" finds the theme command. If nothing matches it says **No command
matches that.** Choose a command with the mouse, or with the arrow keys and
Enter.

It is the quickest way to reach the rest of the app from the keyboard:

- **Create**: **New resume**, **New cover letter** and **New group**.
- **Go to**: **All resumes**, **Archived**, **Templates**, **Images**,
  **Fonts**, **Settings**, **About Rejarsume** and **Documentation**.
- **This app**: the light or dark theme, **Toggle sidebar**, **Keyboard
  shortcuts**, **Take the tour**, and, once the interface has more than one
  language, a switch to each of the others.