# Command Palette

The Command Palette gives you one searchable list of the actions available right now.

## Open it

Press **Ctrl+Shift+P**.

Start typing any part of an action name. *Lx* narrows the list as you type. A shortcut appears beside an action when it has one.

Press **Ctrl+Shift+P** again to close the palette.

## Choose an action

| Key | Action |
| --- | --- |
| Up or Down | Move through choices |
| Page Up or Page Down | Move through a page of choices |
| Home or End | Move to the first or last choice when the input is empty |
| Tab | Complete the selected name |
| Enter | Run the selected action |
| Escape or Ctrl+W | Close the palette |

The list changes with the active view. For example, editing actions appear while a text editor is active, but not while an image is active.

## Use an exact command name

Every action has a stable name, such as:

```text
doc:save
doc:set-format
browser:toggle
core:edit-user-settings
```

You can type the complete name and press **Enter**.

Some commands accept extra choices inside parentheses:

```text
format:surround(text: "*", depth: 2)
```

Only commands designed for these choices use them.

## Useful commands

| Command | What it does |
| --- | --- |
| `core:docs` | Open the documentation home page |
| `core:find-file` | Find a file in the current project |
| `core:edit-user-settings` | Open your personal settings |
| `core:edit-current-style` | Open the active appearance file |
| `core:reload-module(name: "module")` | Reload one module directly, or omit `name` to choose it |
| `core:reload-changed` | Reload loaded Lua modules changed since Lx started |
| `doc:set-format` | Change how the active document is understood |
| `doc:set-codepage` | Reopen legacy text with another codepage |
| `doc:reload` | Reload the active file from disk |
| `doc:reload-stale` | Reload every changed clean file |
| `keymap:generate-md` | Create a readable shortcut list |

## Repeat the last action

Run `core:repeat-last-command` to repeat the last suitable action, including any choices supplied in parentheses.

The supplied Alpha settings bind this to **F9**.

Opening the Command Palette and repeating a command do not replace the remembered action.

## Check a shortcut

Run `core:inspect-next-key`, then press a key combination. *Lx* writes the resolved key and its command names to the Log.

Press **F12** to open the Log.

See [Keyboard Shortcuts](keymap.md) to change bindings or generate a complete shortcut list.
