Files
helder/docs/guide/right-click-menu.md
T

289 lines
12 KiB
Markdown

# Right-click menu
Helder draws its own right-click menu, in the same dark style everywhere. This page lists every menu in the app: on git rows, in the Explorer, in the code, in the Diff, and in the two terminal panes.
[Guide index](index.md) · Related: [Git](git.md), [Explorer](explorer.md), [Dialogs](dialogs.md), [Pass on to Agent](pass-on-to-agent.md), [File view](file-view.md), [File view: Diff](file-view-diff.md)
## At a glance
```text
+----------------------------------------+
| (1) app/Http/UserController.php |
|----------------------------------------|
| (2)|* Pass on reference |
| # Copy reference |
| * Pass on file name |
| # Copy file name |
|----------------------------------------| (3)
| + Stage changes |
| <> Open diff |
| (4) <- Discard changes |
+----------------------------------------+
```
1. **Header**: what you clicked: a path, or the project name ending in `/`. Folder, code, Diff and terminal menus have no header.
2. **Highlighted item**: an amber rule on the left. The first item is highlighted when the menu opens.
3. **Separator**: a thin line between groups of items.
4. **Destructive item**: Discard and Delete read in amber-deep, so they stand out.
Each item has a small icon. Add-type items (Stage, New file, New folder) have a teal icon. Copy file name, Unstage and Show in Finder have an amber icon.
## Features
### Open, use and close a menu
- **Right-click** (or `Ctrl`+click) to open a menu at the pointer.
- On a [Git](git.md) or [Explorer](explorer.md) row, the menu opens beside the column, level with the row, so it never covers the list.
- **With the keyboard**: in the Git column or the Explorer, move the row cursor with `Up` / `Down`, then press `Cmd+Right`. The menu opens for the row under the cursor.
- Inside the menu:
- `Up` / `Down` (or `Cmd+Up` / `Cmd+Down`) move the highlight. It wraps around and skips separators.
- Hovering an item highlights it.
- `Enter` or a click runs the highlighted item.
- `Esc` closes the menu.
- A click outside closes the menu, and the click still reaches what you clicked.
- The row of an open menu stays highlighted until the menu closes.
- No item is ever greyed out. An item that does not apply is simply not in the menu.
### What the shared items do
These items show up in several menus.
| Item | What it does | Asks first? |
|---|---|---|
| **Pass on reference** | Opens the [Pass on](pass-on-to-agent.md) prompt with the reference. On `Enter`, it lands in the [Claude Code](claude-code.md) input, not sent. | No |
| **Pass on selection** | The same, with the selected code added below the reference. | No |
| **Copy reference** | Copies the reference (a path, or `path:line`, or `path:start-end`) to the clipboard. A [notification](notifications.md) says `Copied reference`. | No |
| **Pass on file name** | Opens the Pass on prompt with only the file name, without folders. | No |
| **Copy file name** | Copies only the file name. A notification says `Copied`. | No |
| **Show in Finder** | Opens a Finder window with the item selected. | No |
### Git rows
Right-click a row in the [Git](git.md) column. The header is the file's path. The menu differs in one item between the two groups.
A row in **Changes** (unstaged):
```text
+----------------------------------------+
| app/Http/UserController.php |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
| * Pass on file name |
| # Copy file name |
|----------------------------------------|
| + Stage changes |
| <> Open diff |
| <- Discard changes |
+----------------------------------------+
```
A row in **Staged Changes**:
```text
+----------------------------------------+
| app/Http/UserController.php |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
| * Pass on file name |
| # Copy file name |
|----------------------------------------|
| - Unstage changes |
| <> Open diff |
| <- Discard changes |
+----------------------------------------+
```
- **Stage changes** (unstaged rows only): stages the file. Asks first only when `git.confirmStage` is on.
- **Unstage changes** (staged rows only): moves the file back to Changes. Asks first only when `git.confirmUnstage` is on.
- **Open diff**: opens the file in the full-screen [Diff](file-view-diff.md), comparing the last commit with the file on disk.
- **Discard changes**: throws away all changes to the file, staged and unstaged. A file that exists in the last commit goes back to it. A new file is deleted. It asks first by default (`git.confirmDiscard`); see [Dialogs](dialogs.md#discard-changes). It cannot be undone.
### Explorer: file
Right-click a file in the [Explorer](explorer.md). The header is the file's path.
```text
+----------------------------------------+
| app/Http/Kernel.php |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
| * Pass on file name |
| # Copy file name |
|----------------------------------------|
| / Rename file |
| [] Show in Finder |
| x Delete file |
+----------------------------------------+
```
- **Rename file**: opens the [name prompt](dialogs.md#name-prompt) with the current name. Only the part before the extension is selected, so typing keeps the extension.
- **Delete file**: always asks first; see [Dialogs](dialogs.md#delete-file-or-folder). The file is deleted for good, not moved to the Trash.
### Explorer: folder
Right-click a folder. This menu has no header.
```text
+----------------------------------------+
| * Pass on reference |
| # Copy reference |
|----------------------------------------|
| + New file |
| + New folder |
|----------------------------------------|
| / Rename folder |
| [] Show in Finder |
| x Delete folder |
+----------------------------------------+
```
- **Pass on reference** and **Copy reference** use the folder path with a trailing `/`, for example `app/Http/`.
- **New file**: opens the [name prompt](dialogs.md#name-prompt) for a file inside this folder. The new file opens in the [File view](file-view.md).
- **New folder**: opens the name prompt for a folder inside this folder.
- **Rename folder**: opens the name prompt with the current name.
- **Delete folder**: always asks first. The folder and everything inside it are deleted for good.
A folder directly inside the top-level `ontwikkelingen/` folder gets one extra group at the top. The archive folder `ontwikkelingen/ontwikkeld/` and deeper folders do not.
```text
+----------------------------------------+
| T Bouwen |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
| ... |
+----------------------------------------+
```
- **Bouwen**: inserts `/bouwen <folder name>` into the [Claude Code](claude-code.md) input, not sent. For example `/bouwen 2026-10-02-001-stats`. A [notification](notifications.md) says `Passed to agent`.
### Explorer: empty space
Right-click the empty space under the rows of the [Explorer](explorer.md). It stands for the project folder. The header is the project name with a trailing `/`.
```text
+----------------------------------------+
| console/ |
|----------------------------------------|
| + New file |
| [] Show in Finder |
+----------------------------------------+
```
- **New file**: a new file in the project root. Type a path with slashes, such as `docs/notes.md`, to create it in a folder.
- **Show in Finder**: opens the project folder in Finder.
There is no New folder here. Type `name/file` in New file, or right-click an existing folder.
### Code in the file view
Right-click in the code of the [File view](file-view.md). This menu has no header. The items use the reference:
- No selection: the path and the line you clicked, for example `src/app.php:42`.
- With a selection: the path and the first and last selected line, for example `src/app.php:42-58`.
Without a selection:
```text
+----------------------------------------+
| * Pass on reference |
| # Copy reference |
+----------------------------------------+
```
With a selection:
```text
+----------------------------------------+
| * Pass on selection |
| # Copy reference |
+----------------------------------------+
```
On a marked (teal) line of a changed file:
```text
+----------------------------------------+
| * Pass on reference |
| # Copy reference |
|----------------------------------------|
| <> Show diff |
+----------------------------------------+
```
- **Pass on selection** passes the reference and the selected code. See [Pass on to Agent](pass-on-to-agent.md).
- **Show diff** opens the full-screen [Diff](file-view-diff.md) of the file, centred on the line you right-clicked. Every marked line counts, a blank one and the space after the text included. A new file, where every line is marked, has no Show diff. A left click on a marked line only places the caret.
- The same menu shows on the rendered [Markdown preview](file-view-markdown.md) and on an image. There it refers to the file's first line, for example `README.md:1`.
- `Cmd+Right` with code selected opens the Pass on prompt straight away, without the menu.
### Diff
Right-click a line in the full-screen [Diff](file-view-diff.md). The menu stays inside the Diff. It has no header and no Show diff.
```text
+----------------------------------------+
| * Pass on reference |
| # Copy reference |
+----------------------------------------+
```
- The line number comes from the side you clicked: the left pane gives the old line number, the right pane the new one.
- An empty half of a row (a line that exists on one side only) refers to line 1.
- `Up`, `Down`, `Enter` and `Esc` work as in every menu. `Esc` closes the menu first; a second `Esc` closes the Diff.
### Terminal panes
Right-click in the [Claude Code](claude-code.md) pane or the [Command line](command-line.md) pane. This menu has no header.
With text selected in the pane:
```text
+----------------------------------------+
| # Copy |
| # Paste |
+----------------------------------------+
```
Without a selection:
```text
+----------------------------------------+
| # Paste |
+----------------------------------------+
```
- **Copy** (only with a selection): copies the selected terminal text.
- **Paste**: types the clipboard text into that pane, as a normal paste would. With an empty clipboard nothing happens.
## Keyboard
| Keys | Action |
|---|---|
| `Cmd+Right` | Open the menu of the row under the cursor (Git column or Explorer) |
| `Up` / `Down` | Move the highlight; wraps around |
| `Cmd+Up` / `Cmd+Down` | Move the highlight, the same as `Up` / `Down` |
| `Enter` | Run the highlighted item |
| `Esc` | Close the menu |
## Settings
| Setting | Default | Effect |
|---|---|---|
| `git.confirmDiscard` | `true` | Discard changes asks first |
| `git.confirmStage` | `false` | Stage changes asks first |
| `git.confirmUnstage` | `false` | Unstage changes asks first |
Delete file and Delete folder always ask; no setting turns that off.
## Related
- [Dialogs](dialogs.md): the confirm dialog and the name prompt that menu items open.
- [Pass on to Agent](pass-on-to-agent.md): what happens after a Pass on item.
- [Git](git.md): the rows behind the git menus.
- [Explorer](explorer.md): the rows behind the file, folder and empty-space menus.
- [File view: Diff](file-view-diff.md): where Open diff and Show diff lead.
- [Notifications](notifications.md): the confirmations after Copy and file actions.