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
+10 -13
View File
@@ -12,8 +12,8 @@ Helder asks you something in three ways: a confirm dialog before a risky action,
|////////// +------------------------------------------------+ ////////////|
|////////// | (1) Discard changes to app/Http/User.php? | ////////////|
|////////// | | ////////////|
|////////// | (2) This reverts the file to the last commit | ////////////|
|////////// | and cannot be undone. | ////////////|
|////////// | (2) This reverts to the last commit and | ////////////|
|////////// | cannot be undone. | ////////////|
|////////// | | ////////////|
|////////// | (3)[ Cancel esc ] (4)[ Discard enter ] | ////////////|
|////////// +------------------------------------------------+ ////////////|
@@ -24,7 +24,7 @@ Helder asks you something in three ways: a confirm dialog before a risky action,
1. **Title**: the question, often with the path it is about.
2. **Body**: what will happen. Not every confirm dialog has one.
3. **Cancel**: closes the dialog and does nothing. Its key is `Esc`.
4. **Confirm button**: amber-deep, named after the action (Discard, Delete, Stage, Unstage). Its key is `Enter`.
4. **Confirm button**: amber-deep, named after the action (Discard or Delete). Its key is `Enter`.
## Features
@@ -39,19 +39,18 @@ Helder shows a confirm dialog for these actions:
| Action | Title | Body | Button | When |
|---|---|---|---|---|
| Discard changes | `Discard changes to <path>?` | `This reverts the file to the last commit and cannot be undone.` | Discard | When `git.confirmDiscard` is on (default) |
| Stage changes | `Stage <path>?` | none | Stage | Only when `git.confirmStage` is on |
| Unstage changes | `Unstage <path>?` | none | Unstage | Only when `git.confirmUnstage` is on |
| Discard (Git view) | `Discard changes to <path>?` | `This reverts to the last commit and cannot be undone.` | Discard | When `git.confirmDiscard` is on (default) |
| Delete (Git view, new files) | `Delete <path>?` | `New files are removed from disk. This cannot be undone.` | Delete | When `git.confirmDiscard` is on (default) |
| Delete file | `Delete file?` | `<path> will be permanently deleted.` | Delete | Always |
| Delete folder | `Delete folder?` | `<path>/ and everything inside it will be permanently deleted.` | Delete | Always |
#### Discard changes
Comes from **Discard changes** on a [Git](git.md) row. On confirm, the file goes back to the last commit, both its staged and unstaged changes. A new file is deleted. An open copy in the [File view](file-view.md) reloads. A [notification](notifications.md) says `Discarded changes`.
Comes from **Discard** or **Delete** in the [Git](git.md) view, on a row or as **Discard all** / **Delete all** on a section. With more than one file, the title names the count instead of a path, for example `Discard changes to 3 files?`. When the files include a new file, the body says `New files are removed from disk. This cannot be undone.`
#### Stage and unstage
On confirm, a changed file loses its unstaged changes: it goes back to its staged version, or to the last commit when nothing is staged. A new file is deleted from disk. An open copy in the [File view](file-view.md) reloads.
Come from the hover `+` / `−` on a git row, or from the [right-click menu](right-click-menu.md#git-rows), but only when you turned the matching setting on. **Stage all** and **Unstage all** never ask.
**Restore** on a deleted file never asks. Stage and unstage never ask either.
#### Delete file or folder
@@ -151,15 +150,13 @@ With `editor.autoSave` on, opening another file saves the open one silently, wit
| Setting | Default | Effect |
|---|---|---|
| `git.confirmDiscard` | `true` | Ask before Discard changes |
| `git.confirmStage` | `false` | Ask before staging one file |
| `git.confirmUnstage` | `false` | Ask before unstaging one file |
| `git.confirmDiscard` | `true` | Ask before Discard and Delete in the Git view |
| `editor.autoSave` | `false` | Save the open file silently instead of asking, when you open another file |
## Related
- [Right-click menu](right-click-menu.md): where most of these dialogs start.
- [Git](git.md): discard, stage and unstage.
- [Git](git.md): discard and delete.
- [Explorer](explorer.md): new, rename and delete.
- [File view](file-view.md): saving, and the unsaved-edits dot.
- [Notifications](notifications.md): the message after each action.