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

326 lines
15 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 view rows and branches, 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)
| / Rename file |
| [] Show in Finder |
| (4) x Delete file |
+----------------------------------------+
```
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**: Delete reads in amber-deep, so it stands out.
Each item has a small icon. Add-type items (New file, New folder) have a teal icon. Copy file name 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 an [Explorer](explorer.md) row opened with the keyboard, the menu opens beside the column, level with the row, so it never covers the list.
- **With the keyboard**: in 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 file row in the [Git](git.md) view. The header is the file's path.
```text
+----------------------------------------+
| app/Http/UserController.php |
|----------------------------------------|
| [] Open in editor |
| <> Open diff |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
+----------------------------------------+
```
- **Open in editor** (bold): closes the Git view and opens the file in the [File view](file-view.md). A deleted file has nothing to open, so its menu holds only the two reference items.
- **Open diff**: closes the Git view, opens the file and shows its full-screen [Diff](file-view-diff.md). Not on a deleted file.
- **Pass on reference**: closes the Git view, then opens the [Pass on](pass-on-to-agent.md) prompt with the file's path.
- **Copy reference**: copies the file's path.
Stage, unstage, discard, delete and restore are buttons on the row itself, not menu items. See [Row actions](git.md#row-actions).
### 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 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.
A `.log` file gets one extra group after the copy items:
```text
|----------------------------------------|
| >_ Tail log |
|----------------------------------------|
```
- **Tail log**: opens the [tail block](explorer.md#tail-a-log-file) at the bottom of the Explorer, running `tail -f` on the file. A running tail on another file stops first.
- **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 |
+----------------------------------------+
```
The [tail block](explorer.md#tail-a-log-file) in the Explorer has the same menu without **Paste** and **Wait what?**. Without a selection it opens no menu.
- **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 (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 and Delete on a [Git](git.md) row ask 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 and branches 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 Show diff leads.
- [Notifications](notifications.md): the confirmations after Copy and file actions.