Files
helder/docs/guide/right-click-menu.md
T
2026-10-28 16:18:03 +01:00

336 lines
16 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. Read aloud has a speaker icon. Plak has a note icon with a plus.
## 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 |
| **Read aloud** | Markdown files only. Reads the file aloud with the system voice. Stop it with **Stop** in the [title bar](title-bar.md#read-aloud). | 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 |
+----------------------------------------+
```
A Markdown file (`.md`), in the Explorer or on a git row, gets one extra group after the copy items:
```text
+----------------------------------------+
| docs/setup.md |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
| * Pass on file name |
| # Copy file name |
|----------------------------------------|
| )) Read aloud |
|----------------------------------------|
| / Rename file |
| ... |
+----------------------------------------+
```
- **Read aloud**: reads the headings, paragraphs, list items, quotes and table cells aloud. Markup and link addresses are left out, and code blocks are skipped. The open file is read as it stands in the editor, unsaved edits included. A file with nothing to read shows `Nothing to read`. Reading another file stops the first one.
- **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 |
|----------------------------------------|
| )) Read aloud selection |
|----------------------------------------|
| >> Plak |
+----------------------------------------+
```
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).
- **Read aloud selection** reads the selected text aloud. In a Markdown file the markup is left out. Stop it with **Stop** in the [title bar](title-bar.md#read-aloud).
- **Plak** sends the selected text to [Plak](#plak). On a marked line it comes before Show diff.
- **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`, and has no Read aloud selection and no Plak. To hear a previewed file, right-click it in the Explorer and choose **Read aloud**.
- `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 |
|----------------------------------------|
| )) Read aloud selection |
|----------------------------------------|
| >> Plak |
|----------------------------------------|
| ? Wait what? |
+----------------------------------------+
```
Wait what? shows only in the Claude Code pane, not in the Command line pane.
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.
- **Read aloud selection** (only with a selection): reads the selected text with the system voice. Markdown markup is left out. With nothing left to read, a [notification](notifications.md) says `Nothing to read`. Stop it with **Stop** in the [title bar](title-bar.md#read-aloud).
- **Plak** (only with a selection): sends the selected text to [Plak](#plak).
- **Wait what?** (Claude Code pane, only with a selection): inserts ``/wait-what `selected text` `` into the [Claude Code](claude-code.md) input, not sent. Spaces and blank lines around the selection are trimmed. A [notification](notifications.md) says `Passed to agent`.
### Plak
**Plak** sends the selected text to Plak, the scratchpad app for macOS. Plak must be installed.
- The text, with spaces and blank lines around it trimmed, goes to the end of the Plak page as a new block.
- Plak opens (it starts if it is not running), scrolls to the new block and takes the focus.
- A blank selection sends nothing. A [notification](notifications.md) says `Nothing to send`.
- A very long selection (more than about 100 KB) goes through the clipboard. Helder puts your own clipboard back one second later.
## 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.