adds nice git interface

This commit is contained in:
2026-10-30 13:21:45 +01:00
parent b9c03a7637
commit caec81e762
107 changed files with 6466 additions and 3992 deletions
+30 -40
View File
@@ -1,6 +1,6 @@
# 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.
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 the Commit button, 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)
@@ -15,26 +15,26 @@ Helder draws its own right-click menu, in the same dark style everywhere. This p
| * Pass on file name |
| # Copy file name |
|----------------------------------------| (3)
| + Stage changes |
| <> Open diff |
| (4) <- Discard changes |
| / 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.
1. **Header**: what you clicked: a path, or the project name ending in `/`. Folder, code, Diff, terminal and commit 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.
4. **Destructive item**: Delete reads in amber-deep, so it stands 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.
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 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.
- 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.
@@ -60,46 +60,38 @@ These items show up in several menus.
### 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):
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 |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
| * Pass on file name |
| # Copy file name |
|----------------------------------------|
| + Stage changes |
| <> Open diff |
| <- Discard changes |
+----------------------------------------+
```
A row in **Staged Changes**:
- **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.
- **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).
### Commit menu
Click the caret on the right of the **Commit** button in the [Git](git.md) view. The menu hangs under the caret and has no header.
```text
+----------------------------------------+
| app/Http/UserController.php |
|----------------------------------------|
| * Pass on reference |
| # Copy reference |
| * Pass on file name |
| # Copy file name |
|----------------------------------------|
| - Unstage changes |
| <> Open diff |
| <- Discard changes |
| v Commit |
| ^ Commit and push |
+----------------------------------------+
```
- **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.
- **Commit**: the same as the Commit button.
- **Commit and push** (bold): commits, then pushes when the commit succeeded. See [Git commit form](git-commit-form.md#commit-and-push).
### Explorer: file
@@ -120,7 +112,7 @@ Right-click a file in the [Explorer](explorer.md). The header is the file's path
+----------------------------------------+
```
A Markdown file (`.md`), in the Explorer or on a git row, gets one extra group after the copy items:
A Markdown file (`.md`) in the Explorer gets one extra group after the copy items:
```text
+----------------------------------------+
@@ -309,7 +301,7 @@ Without a selection:
| Keys | Action |
|---|---|
| `Cmd+Right` | Open the menu of the row under the cursor (Git column or Explorer) |
| `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 |
@@ -319,9 +311,7 @@ Without a selection:
| Setting | Default | Effect |
|---|---|---|
| `git.confirmDiscard` | `true` | Discard changes asks first |
| `git.confirmStage` | `false` | Stage changes asks first |
| `git.confirmUnstage` | `false` | Unstage changes asks first |
| `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.
@@ -329,7 +319,7 @@ Delete file and Delete folder always ask; no setting turns that off.
- [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.
- [Git](git.md): the rows and the Commit button 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.
- [File view: Diff](file-view-diff.md): where Show diff leads.
- [Notifications](notifications.md): the confirmations after Copy and file actions.