211 lines
8.7 KiB
Markdown
211 lines
8.7 KiB
Markdown
# Keyboard shortcuts
|
|
|
|
Helder is built to run from the keyboard. Press `?` to see a short list of the main shortcuts in an overlay; this page lists every shortcut in the app, grouped by area.
|
|
|
|
[Guide index](index.md) · Related: [Window layout](layout.md), [Title bar](title-bar.md), [Configuration](configuration.md)
|
|
|
|
## At a glance
|
|
|
|
```text
|
|
+----------------------------------------------------------------------------+
|
|
| +----------------------------------------------+ |
|
|
| | (?) Keyboard shortcuts [esc] | (1) |
|
|
| +----------------------------------------------+ |
|
|
| | NAVIGATE (2) | |
|
|
| | [Cmd][F] Search contents and names (3) | |
|
|
| | [Cmd][Up Dn] Move through a list | |
|
|
| | ... | |
|
|
| | AGENT | |
|
|
| | [Cmd][->] Pass the selection to agent | |
|
|
| | ... | |
|
|
| | GIT | |
|
|
| | ... | |
|
|
| | FILE | |
|
|
| | ... | |
|
|
| +----------------------------------------------+ |
|
|
| (dimmed workspace behind) |
|
|
+----------------------------------------------------------------------------+
|
|
```
|
|
|
|
1. **Header**: a question-mark icon, the title and an `esc` chip.
|
|
2. **Group label**: NAVIGATE, AGENT, GIT and FILE.
|
|
3. **Row**: the keys as keycaps, then what they do.
|
|
|
|
## Features
|
|
|
|
### The shortcuts overlay
|
|
- Open it with `?` when no text field, code view or terminal has the keyboard. You can also click the `?` button in the [title bar](title-bar.md), or choose View > Keyboard Shortcuts or Help > Keyboard Shortcuts.
|
|
- Close it with `Esc`, or by clicking the dimmed backdrop.
|
|
- It scrolls only when the window is too short to show all of it.
|
|
- It holds the main shortcuts, in four groups:
|
|
- **Navigate**: search, list movement, column movement, the Explorer row cursor, the column toggles `Cmd+1` to `Cmd+3`, recent projects, open folder, new window, PHP class lookup, and this list.
|
|
- **Agent**: pass the selection to the agent.
|
|
- **Git**: open or close the Git view, focus the commit message, commit, push.
|
|
- **File**: save, Markdown preview, close, refresh, hidden files, select all, Fluid columns, zoom, and `Esc`.
|
|
- The full reference is below.
|
|
|
|
### How Helder decides who gets a key
|
|
- A text field, the code, or a terminal keeps the keys it needs. Arrows, `Return`, `?`, `Cmd+A` and `Cmd+C` with a selection go to the field, not to Helder.
|
|
- Keys with `Ctrl` or `Opt` always go to the field or terminal, except the menu shortcuts that use them.
|
|
- While an overlay is open, it owns the keys. `Esc` closes it. The Diff is the exception: the workspace shortcuts keep working over it.
|
|
- `Esc` closes the topmost layer: a right-click menu, a dialog, search or the Diff first, then the [Git](git.md) view. With none of those open, `Esc` goes to the terminal.
|
|
- While the Git view is open, the column keys rest: arrows, `Return` and `Cmd+Left` / `Cmd+Right` do nothing in the columns under it.
|
|
|
|
## Keyboard
|
|
|
|
### Window and project
|
|
See [Window layout](layout.md), [Start screen](start-screen.md) and [Recent projects](recent-projects.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Shift+Cmd+N` | New window, on the start screen |
|
|
| `Cmd+O` | Open a folder in this window |
|
|
| `Shift+Cmd+O` | Open a recent project |
|
|
| `Cmd+W` | Close the open file, or the window when no file is open |
|
|
| `Shift+Cmd+W` | Close the window |
|
|
| `Cmd+Q` | Quit (asks about unsaved files first) |
|
|
| `Cmd+R` | Refresh git, the file tree and the open file from disk |
|
|
| `Ctrl+Cmd+F` | Enter or exit full screen |
|
|
| `?` | Keyboard shortcuts overlay (outside text fields and terminals) |
|
|
|
|
### Layout and focus
|
|
See [Window layout](layout.md) and [Title bar](title-bar.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Cmd+1` | Show or hide the Explorer column |
|
|
| `Cmd+2` | Show or hide the File column |
|
|
| `Cmd+3` | Show or hide the Claude column |
|
|
| `Cmd+L` | Fluid column widths on or off |
|
|
| `Cmd+.` | Hidden files on or off |
|
|
| `Cmd+Left` / `Cmd+Right` | Focus the column to the left or right (outside text fields and terminals) |
|
|
| `Cmd++` | Zoom in (code, Diff and terminal text) |
|
|
| `Cmd+-` | Zoom out |
|
|
| `Cmd+0` | Actual size |
|
|
|
|
### Start screen
|
|
See [Start screen](start-screen.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
|
|
| `Return` | Open the selected row |
|
|
|
|
### Git view
|
|
See [Git](git.md) and [Git commit form](git-commit-form.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Cmd+G` | Open or close the Git view |
|
|
| `Esc` | Close the Git view (when nothing is on top of it) |
|
|
| `Cmd+C` | Open the Git view on the commit message (with no text selected, outside a terminal) |
|
|
| `Cmd+Return` | Commit, while the Git view is open (not from the console input) |
|
|
| `Cmd+P` | Push the current branch (also with the view closed) |
|
|
| `Return` | Run the command in the console input |
|
|
| `Up` | Recall the previous console command |
|
|
|
|
### Explorer
|
|
See [Explorer](explorer.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Up` / `Down` | Move the row cursor (when the column is active) |
|
|
| `Return` | Open the file, or open or close the folder |
|
|
| `Cmd+Right` | Open the selected row's menu |
|
|
|
|
### File view
|
|
See [File view](file-view.md), [Markdown](file-view-markdown.md) and [Code symbols](code-symbols.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Cmd+S` | Save the file |
|
|
| `Cmd+W` | Close the file |
|
|
| `Cmd+M` | Markdown: switch between code and the rendered preview |
|
|
| `Cmd+A` | Select all in the file (also when the code view does not have the keyboard) |
|
|
| `Cmd+Up` / `Cmd+Down` | Open the recent files list (when the File column has focus) |
|
|
| `Tab` / `Shift+Tab` | Indent or outdent the line or selection |
|
|
| `Cmd+click` on a PHP class name | Show its declaration and references |
|
|
| Click a line number | Select that line |
|
|
| `Shift+click` a line number | Extend the selection to that line |
|
|
| Right-click a marked (changed) line, **Show diff** | Open the Diff at that line |
|
|
|
|
### Recent files list
|
|
See [Go to file](go-to-file.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
|
|
| `Return` | Open the selected file |
|
|
| `Esc` | Close the list |
|
|
|
|
### Diff
|
|
See [Diff view](file-view-diff.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Esc` | Close the menu, then the pass-on prompt, then the Diff itself |
|
|
| `Cmd+A` | Select all lines on one side |
|
|
| `Cmd+C` | Copy the selected lines |
|
|
| `Up` / `Down`, `Return` | Move through and choose in the Diff's right-click menu |
|
|
|
|
### Pass on to the agent
|
|
See [Pass on to agent](pass-on-to-agent.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Cmd+Right` | Pass the selected code to the agent (with a selection in the File column) |
|
|
| `Return` | Insert the reference into the agent |
|
|
| `Esc` | Cancel |
|
|
|
|
### Search
|
|
See [Search](search.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Cmd+F` | Open search; selected text becomes the query |
|
|
| `Cmd+Left` / `Cmd+Right` | Move to the column on the left or right |
|
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move through the results in a column |
|
|
| `Return` | Open the selected result |
|
|
| `Esc` | Close search |
|
|
|
|
### Clean copy
|
|
See [Clean copy](clean-copy.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Cmd+Enter` | Copy the text and close the card |
|
|
| `Esc` | Close the card without copying |
|
|
|
|
### Right-click menus and dialogs
|
|
See [Right-click menu](right-click-menu.md) and [Dialogs](dialogs.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move through a menu |
|
|
| `Return` | Choose the menu item, confirm a dialog, or accept a name |
|
|
| `Esc` | Close the menu or dialog |
|
|
| `Ctrl+click` | Same as a right-click on a Git view or Explorer row |
|
|
|
|
### Terminals
|
|
See [Claude Code](claude-code.md) and [Command line](command-line.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Opt+Left` / `Opt+Right` | Jump back or forward one word (when `terminal.optionIsMeta` is off) |
|
|
| Select text | Copies it to the clipboard |
|
|
|
|
### Recent projects
|
|
See [Recent projects](recent-projects.md).
|
|
|
|
| Keys | Action |
|
|
|---|---|
|
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
|
|
| `Return` | Switch to the selected project |
|
|
| `Esc` | Close the list |
|
|
|
|
## Related
|
|
|
|
- [Window layout](layout.md): columns, focus and zoom.
|
|
- [Title bar](title-bar.md): the buttons that match many of these shortcuts.
|
|
- [Configuration](configuration.md): `terminal.optionIsMeta` changes what `Opt` does in a terminal.
|