adds nice git interface
This commit is contained in:
@@ -79,16 +79,16 @@ Example `config.json`:
|
||||
| `editor.tabSize` | `4` | Spaces per indent step for `Tab` and `Shift+Tab`. Helder indents with spaces |
|
||||
| `editor.wordWrap` | `"markdown"` | Fold long lines: `"off"` never, `"on"` always, `"markdown"` only in Markdown files. The Diff never wraps |
|
||||
|
||||
### git: the Git column
|
||||
### git: the Git view
|
||||
|
||||
| Setting | Default | Effect |
|
||||
|---|---|---|
|
||||
| `git.confirmDiscard` | `true` | Ask before Discard changes |
|
||||
| `git.confirmStage` | `false` | Ask before staging a file |
|
||||
| `git.confirmUnstage` | `false` | Ask before unstaging a file |
|
||||
| `git.confirmDiscard` | `true` | Ask before Discard and Delete in the Git view. Restore never asks |
|
||||
| `git.defaultDiffMode` | `"updated"` | How a changed file opens: `"updated"` on the live file, `"diff"` in the full-screen Diff |
|
||||
| `git.refreshInterval` | `10000` | Milliseconds between automatic git status checks. `0` turns the check off. File watching still works |
|
||||
|
||||
`git.confirmStage` and `git.confirmUnstage` are gone: staging never asks. An older `config.json` that still has them loads fine; Helder ignores them.
|
||||
|
||||
### files: the Explorer and search
|
||||
|
||||
| Setting | Default | Effect |
|
||||
|
||||
+10
-13
@@ -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.
|
||||
|
||||
@@ -37,7 +37,7 @@ The Explorer is the project's file tree. It is the second column from the left,
|
||||
- Click a folder to expand it. Click it again to collapse it.
|
||||
- Each click also re-reads that folder from disk, so files the agent just added show up.
|
||||
- A project opens with every folder collapsed.
|
||||
- Opening a file from anywhere (Git column, [Go to file](go-to-file.md), [Search](search.md)) expands its folders and highlights it in the tree.
|
||||
- Opening a file from anywhere (the [Git](git.md) view, [Go to file](go-to-file.md), [Search](search.md)) expands its folders and highlights it in the tree.
|
||||
- Folders come first, then files, each sorted by name. Case does not matter in the sort.
|
||||
|
||||
### Icons
|
||||
|
||||
@@ -34,8 +34,8 @@ The Diff is a full-screen, side-by-side comparison of a changed file. It covers
|
||||
### Open the Diff
|
||||
- Click **Diff** in the [file view](file-view.md) bar. The button shows only on a file with git changes.
|
||||
- Right-click a marked (teal) line in the file view and choose **Show diff**. The Diff opens centred on that line.
|
||||
- Right-click a row in [Git](git.md) and choose **Open diff**.
|
||||
- A file you open from a Git row remembers that row. The **Diff** button then shows that row's half (staged or unstaged). Show diff on a marked line always compares the last commit with the file on disk.
|
||||
- Show diff on a marked line always compares the last commit with the file on disk.
|
||||
- The [Git](git.md) view has its own inline diff per file row. **Open in editor** on a row opens the file; click **Diff** there for the full-screen view.
|
||||
|
||||
### Layout
|
||||
- The Diff covers all columns. The window's shortcuts still work over it.
|
||||
@@ -95,6 +95,6 @@ The Diff is a full-screen, side-by-side comparison of a changed file. It covers
|
||||
## Related
|
||||
|
||||
- [File view](file-view.md): the live view with teal line marks, where **Show diff** opens the Diff.
|
||||
- [Git](git.md): the changes, the staged and unstaged halves, and **Open diff**.
|
||||
- [Git](git.md): the Git view, with an inline diff per changed file.
|
||||
- [Pass on to Agent](pass-on-to-agent.md): the reference format and the prompt.
|
||||
- [Right-click menu](right-click-menu.md): the menus across Helder.
|
||||
|
||||
@@ -33,7 +33,7 @@ The file view is the third column (Col C), between the [Explorer](explorer.md) a
|
||||
## Features
|
||||
|
||||
### Open a file
|
||||
- Click a file in the [Explorer](explorer.md) or a row in [Git](git.md), pick a result in [Search](search.md), or use [Go to file](go-to-file.md).
|
||||
- Click a file in the [Explorer](explorer.md), choose **Open in editor** on a row in the [Git](git.md) view, pick a result in [Search](search.md), or use [Go to file](go-to-file.md).
|
||||
- The new file replaces the one that was open. Helder shows one file at a time.
|
||||
- A file always opens fresh from disk.
|
||||
- When you open a file at a line (from Search or the [symbol popup](code-symbols.md)), that line moves to the middle of the pane and flashes amber for about a second.
|
||||
@@ -53,7 +53,7 @@ The file view is the third column (Col C), between the [Explorer](explorer.md) a
|
||||
- Type to edit. Undo and redo work as usual (`Cmd+Z`, `Cmd+Shift+Z`).
|
||||
- `Cmd+S` saves the file. A "Saved" [notification](notifications.md) confirms it. If the write fails, you see "Save failed" and the file stays open with your edits.
|
||||
- `Cmd+S` on a file without edits does nothing.
|
||||
- After a save, the [Git](git.md) column updates.
|
||||
- After a save, git re-reads, so the [Git](git.md) view and the status bar update.
|
||||
|
||||
### Auto-save
|
||||
- Auto-save is off by default. Turn it on with `editor.autoSave` in the [configuration](configuration.md).
|
||||
|
||||
@@ -1,98 +1,76 @@
|
||||
# Git commit form
|
||||
|
||||
The commit form sits at the foot of the [Git](git.md) column, edge to edge. It holds the commit message field, the Commit button and the Push button.
|
||||
The commit form is the block at the top of the [Git](git.md) view, under its top bar. It holds the commit message, the author, and the Commit split button.
|
||||
|
||||
[Guide index](index.md) · Related: [Git](git.md), [Notifications](notifications.md), [Keyboard shortcuts](keyboard-shortcuts.md)
|
||||
|
||||
## At a glance
|
||||
|
||||
```text
|
||||
+-------------------------------------+
|
||||
| (1) Shift+Enter to commit |
|
||||
| |
|
||||
| |
|
||||
|-------------------------------------|
|
||||
| (2) Commit ^ | (3)^ |
|
||||
+-------------------------------------+
|
||||
+----------------------------------------------------------------------------+
|
||||
| (1) fix the login form_ |
|
||||
|----------------------------------------------------------------------------|
|
||||
| (2) Jonathan <jonathan@example.com> (3) Cmd+Enter commits |
|
||||
| (4) [ Commit 2 files | v ] |
|
||||
+----------------------------------------------------------------------------+
|
||||
(5)
|
||||
+------------------------+
|
||||
| v Commit |
|
||||
| ^ Commit and push |
|
||||
+------------------------+
|
||||
```
|
||||
|
||||
1. **Message field**: one line of commit message. The grey hint `Shift+Enter to commit` shows while it is empty.
|
||||
2. **Commit button**: amber when there is something staged.
|
||||
3. **Push button**: a narrow button with an up arrow. It lights up when the branch has commits to push.
|
||||
1. **Message field**: the commit message. The grey placeholder `Commit message` shows while it is empty.
|
||||
2. **Author**: `user.name <user.email>` from your git config, read when the view opens. With no email set, only the name shows; with no name, nothing.
|
||||
3. **Hint**: `⌘↵ commits`.
|
||||
4. **Commit button**: `Commit N files`, or `Nothing staged`. The caret on its right opens the menu.
|
||||
5. **Commit menu**: **Commit** and **Commit and push**.
|
||||
|
||||
## Features
|
||||
|
||||
### Write the message
|
||||
|
||||
- Click the field, or press `Cmd+C` anywhere outside a terminal with no text selected. `Cmd+C` also shows the [Git](git.md) column when it is hidden.
|
||||
- The focused field gets an amber outline.
|
||||
- Opening the [Git](git.md) view puts the cursor in the field. `Cmd+C` with no text selected, outside a terminal, opens the view there too.
|
||||
- The field gets an amber line under it while it has the cursor.
|
||||
- The field grows with long text and scrolls after about seven lines.
|
||||
- A commit message in Helder is always **one lowercase line**:
|
||||
- Capitals become lowercase as you type or paste.
|
||||
- A line break becomes a space. Pressing `Enter` on its own does not start a new line.
|
||||
- A line break becomes a space. `Enter` does not start a new line, and it does not commit.
|
||||
- This keeps dictated or pasted text as one short subject line.
|
||||
- The draft stays in the field while you work elsewhere in the window.
|
||||
- The draft stays in the field while the view is closed.
|
||||
|
||||
### Commit
|
||||
|
||||
You can commit in three ways:
|
||||
|
||||
- Click **Commit**.
|
||||
- Press `Shift+Enter` (or `Cmd+Enter`, or `Ctrl+Enter`) in the message field.
|
||||
- Press `Cmd+Enter` anywhere in the window.
|
||||
- Click **Commit N files**.
|
||||
- Choose **Commit** from the caret menu.
|
||||
- Press `Cmd+Enter` while the view is open. This works from the message field too, but not from the console input.
|
||||
|
||||
A commit only happens when both are true:
|
||||
The button is amber when at least one file is staged and the message is not empty. Otherwise it is grey. A click always runs `git commit`, also when the button is grey, so git's own refusal shows in the [console](git.md#console).
|
||||
|
||||
- At least one file is staged.
|
||||
- The message is not empty (spaces alone do not count).
|
||||
|
||||
The **Commit** button follows the first rule only. It is amber when something is staged and grey and disabled when nothing is. With files staged but an empty message, the button looks ready but a click does nothing. Type a message first.
|
||||
### Commit and push
|
||||
- Choose **Commit and push** from the caret menu. It commits, and when the commit succeeds it pushes, the same as the **Push** button. See [Pull and push](git.md#pull-and-push).
|
||||
|
||||
### After a commit
|
||||
|
||||
- The message field clears.
|
||||
- The committed files leave **Staged Changes**. Unstaged edits stay in **Changes**.
|
||||
- The committed files leave the **staged** section. Unstaged edits stay where they were.
|
||||
- A [notification](notifications.md) says `Committed N files`, with the start of your message below it (cut off after 34 characters).
|
||||
- The Push button lights up, because the branch is now ahead of its remote.
|
||||
- **Push** in the top bar shows `↑N`, because the branch is now ahead of its remote.
|
||||
|
||||
### When a commit fails
|
||||
|
||||
- Your message comes back in the field, so you can fix and retry.
|
||||
- A notification says `Commit failed`, with git's own error text below it. A typical cause is a git hook that rejected the commit.
|
||||
|
||||
### Push
|
||||
|
||||
- Click the **Push** button right of Commit, or press `Cmd+P`.
|
||||
- The button is **lit** (amber arrow on an amber tint) when there is something to push:
|
||||
- The branch is ahead of its remote branch, or
|
||||
- The branch has no remote branch yet.
|
||||
- It is grey when there is nothing to push. A click still runs the push; git then reports it is up to date.
|
||||
- Hover the button for a tooltip: `Push 2 commits to remote (⌘P)`, `Push the branch to remote (⌘P)`, or `Nothing to push (⌘P)`.
|
||||
|
||||
What happens when you push:
|
||||
|
||||
- A notification says `Pushing…`. The button dims and ignores clicks until the push ends.
|
||||
- A branch with no remote branch is pushed to `origin` and set to track it, so the next push needs nothing extra.
|
||||
- Helder never asks for a password. Git must already have access to the remote, for example through an SSH key or a credential helper.
|
||||
- A push that takes longer than two minutes stops.
|
||||
- When it ends, a notification says `Pushed` with git's summary line, or `Push failed` with git's last error line.
|
||||
- The Git column re-reads git, so the Push button goes back to grey.
|
||||
|
||||
Pull, fetch and branch switching are not part of Helder. Use the [Command line](command-line.md) for those.
|
||||
- Your message stays in the field, so you can fix and retry.
|
||||
- A notification says `Commit failed`, with git's first error line below it. The full output is in the console. Typical causes are nothing staged, an empty message, or a git hook that rejected the commit.
|
||||
- When the message was empty, the cursor goes back to the field.
|
||||
|
||||
## Keyboard
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Cmd+C` | Focus the message field (no text selected, not in a terminal) |
|
||||
| `Shift+Enter` | Commit, while in the message field |
|
||||
| `Cmd+Enter` | Commit, from anywhere in the window |
|
||||
| `Ctrl+Enter` | Commit, while in the message field |
|
||||
| `Cmd+C` | Open the Git view on the message field (no text selected, not in a terminal) |
|
||||
| `Cmd+Enter` | Commit, while the Git view is open (not from the console input) |
|
||||
| `Cmd+P` | Push the current branch |
|
||||
|
||||
## Related
|
||||
|
||||
- [Git](git.md): the column that holds this form, and where you stage files.
|
||||
- [Git](git.md): the view that holds this form, and where you stage files.
|
||||
- [Notifications](notifications.md): the messages after a commit or push.
|
||||
- [Status bar](status-bar.md): shows the branch you commit and push to.
|
||||
- [Command line](command-line.md): for git commands Helder has no button for.
|
||||
- [Keyboard shortcuts](keyboard-shortcuts.md): every shortcut in one list.
|
||||
|
||||
+125
-129
@@ -1,163 +1,162 @@
|
||||
# Git
|
||||
|
||||
The Git column (Source Control) is the leftmost column of the window. It lists every changed file in the project's git repository, lets you stage and unstage them, and holds the commit box at its foot.
|
||||
The Git view is a full-screen page for everything git: it lists every changed file with an inline diff, stages and commits, pulls and pushes, switches branches, and shows each git command it runs in a console. Open it with `Cmd+G`.
|
||||
|
||||
[Guide index](index.md) · Related: [Git commit form](git-commit-form.md), [Right-click menu](right-click-menu.md), [Dialogs](dialogs.md), [File view: Diff](file-view-diff.md), [Status bar](status-bar.md)
|
||||
[Guide index](index.md) · Related: [Git commit form](git-commit-form.md), [Right-click menu](right-click-menu.md#git-rows), [Dialogs](dialogs.md), [Notifications](notifications.md), [Status bar](status-bar.md)
|
||||
|
||||
## At a glance
|
||||
|
||||
```text
|
||||
+-------------------------------------+
|
||||
| (1) STAGED CHANGES - 2 |
|
||||
| (2) [] app/Http |
|
||||
| (3) M [php] UserController.php +4 |
|
||||
| A [php] Invoice.php +31 |
|
||||
|-------------------------------------|
|
||||
| (1) CHANGES + 3 |
|
||||
| [] . |
|
||||
| M [md] README.md +2 -1 |
|
||||
| [] tests/Feature |
|
||||
| (4) M [php] UserTest.php [ + ] |
|
||||
| D [php] -OldTest.php- -12 |
|
||||
| |
|
||||
|-------------------------------------|
|
||||
| (5) Shift+Enter to commit |
|
||||
| |
|
||||
|-------------------------------------|
|
||||
| (6) Commit ^ | (7) ^ |
|
||||
+-------------------------------------+
|
||||
+----------------------------------------------------------------------------+
|
||||
| (1) [ git ] <> main 1 ahead of origin [Pull] [Push ^1] [Close CmdG] |
|
||||
|----------------------------------------------------------------------------|
|
||||
| (2) fix the login form_ |
|
||||
| Jonathan <jonathan@example.com> Cmd+Enter commits [Commit 2 files|v] |
|
||||
|----------------------------------------------------------------------------|
|
||||
| (3)|v staged (2) [ ] [Unstage all]|
|
||||
| |> [M] app/Http/UserController.php +4 -1 [Unstage] |
|
||||
| |> [A] app/Models/Invoice.php +31 -0 [Unstage] |
|
||||
| |
|
||||
| (3) v changed (1) [Discard all] [Stage all]|
|
||||
| (4) v [M] README.md +2 -1 [Discard] [Stage] |
|
||||
| (5) 12 | old line || 12 | new line |
|
||||
| 13 | same line || 13 | same line |
|
||||
| ... 40 unchanged lines |
|
||||
| v new . untracked (1) [Delete all] [Stage all]|
|
||||
| v deleted (1) [Restore all] [Stage all]|
|
||||
|----------------------------------------------------------------------------|
|
||||
| (6) [ console ] git (x) | (7) [ branches ] clean . ... |
|
||||
| $ git add -- README.md | local |
|
||||
| $ git commit -m "fix the login form" | |<> main current |
|
||||
| $ git _ | <> feature/a switch -> |
|
||||
| | remote . origin |
|
||||
| | () origin/feature/b checkout->|
|
||||
+----------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
1. **Group header**: `Staged Changes` or `Changes`, with the row count in amber on the right. Hover the header to see its quick action: `-` (Unstage all) or `+` (Stage all).
|
||||
2. **Folder line**: the folder that the rows below it live in. `.` is the project root.
|
||||
3. **Row**: status letter, file-type badge, file name, and line counts.
|
||||
4. **Hover quick action**: a `+` or `-` that replaces the line counts while you hover or select the row.
|
||||
5. **Commit message**: see [Git commit form](git-commit-form.md).
|
||||
6. **Commit button**: see [Git commit form](git-commit-form.md).
|
||||
7. **Push button**: see [Git commit form](git-commit-form.md).
|
||||
1. **Top bar**: the branch, where it stands against origin, and the Pull, Push and Close buttons.
|
||||
2. **Commit block**: the message, the author and the Commit button. See [Git commit form](git-commit-form.md).
|
||||
3. **Section header**: the section name, its row count, and the bulk actions.
|
||||
4. **File row**: status badge, path, line counts and the row actions.
|
||||
5. **Inline diff**: the last commit on the left, the working tree on the right.
|
||||
6. **Console**: every git command the view runs, with its output, and an input line for your own.
|
||||
7. **Branches**: local branches and the branches on origin.
|
||||
|
||||
## Features
|
||||
|
||||
### Two groups: staged and unstaged
|
||||
### Open and close the view
|
||||
- `Cmd+G`, the **Git** toggle in the [Title bar](title-bar.md), or View > Show Git opens it. The toggle reads `Git N`, where N counts the changed files.
|
||||
- The view covers the whole window: title bar, columns and status bar. The columns stay as they were under it. Terminals keep running.
|
||||
- When it opens, the keyboard goes to the commit message.
|
||||
- `Cmd+C` with no text selected, outside a terminal, also opens the view on the commit message.
|
||||
- Close it with `Cmd+G`, `Esc`, or the **Close** button. The keyboard goes back to the column that had it.
|
||||
- Dialogs, right-click menus, [Search](search.md), the full-screen [Diff](file-view-diff.md) and [notifications](notifications.md) show on top of the view. `Esc` closes those first, then the view.
|
||||
- While the view is open, the column keys rest (arrows, `Cmd+Left` / `Cmd+Right`). `Cmd+1`, `Cmd+2` and `Cmd+3` still toggle the columns under it.
|
||||
- The view is not remembered: a project always opens with it closed.
|
||||
|
||||
- **Staged Changes** sits on top. It lists what the next commit will hold.
|
||||
- **Changes** sits below. It lists edits in the working tree that are not staged yet.
|
||||
- Each group shows its row count on the right of its header.
|
||||
- Inside a group, rows are grouped by folder. Each folder gets a small folder line with its path. Hover a folder line to see the full path; the project root reads `.`.
|
||||
- One file can show up twice: once in Staged Changes and once in Changes. That happens when you staged a file and then edited it again. Each row stands for its own half of the change.
|
||||
### Top bar
|
||||
- `[ git ]`, then the current branch in amber.
|
||||
- Next to it, where the branch stands against its remote: `in sync with origin`, `1 ahead of origin`, `2 behind origin`, `1 ahead · 2 behind origin`, or `no upstream`.
|
||||
- **Pull** shows `↓N` when there are commits to pull. **Push** shows `↑N` when there are commits to push.
|
||||
- Opening the view runs `git fetch origin`, so the ahead and behind numbers are up to date. A repository without an `origin` skips this.
|
||||
|
||||
There is no column header or title. The column starts with the first group.
|
||||
### Sections
|
||||
The changes sit in up to four sections, in this order. A section with no rows is left out.
|
||||
|
||||
### Row anatomy
|
||||
| Section | Colour | What it holds | Row actions | Bulk actions |
|
||||
|---|---|---|---|---|
|
||||
| **staged** | amber | Everything staged for the next commit, whatever its status | Unstage | Unstage all |
|
||||
| **changed** | light amber | Unstaged edits to tracked files; also renames and conflicts | Discard, Stage | Discard all, Stage all |
|
||||
| **new · untracked** | teal | New files git does not track yet | Delete, Stage | Delete all, Stage all |
|
||||
| **deleted** | lilac | Tracked files deleted from disk | Restore, Stage | Restore all, Stage all |
|
||||
|
||||
- Click a section header to fold or unfold it.
|
||||
- One file can show up twice: once in staged and once in another section. That happens when you staged a file and then edited it again. Each row stands for its own half.
|
||||
- A conflicted row (`U`) only offers **Stage**. Staging it marks the conflict as resolved.
|
||||
|
||||
### File rows
|
||||
Every row, left to right:
|
||||
|
||||
- **Status letter** (see the table below).
|
||||
- **File-type badge**, the same badge the [Explorer](explorer.md) uses.
|
||||
- **File name**. A deleted file has its name struck through and dimmed. Files under `tests/` or `cypress/` show in a dimmer grey, so source files stand out.
|
||||
- **Line counts** on the far right: `+N` in teal for added lines, `−N` in amber-deep for removed lines. A count of zero is left out.
|
||||
- A chevron: click anywhere on the row to show or hide its inline diff.
|
||||
- A status badge: `A` new, `M` modified, `D` deleted, `R` renamed, `U` conflict. Hover it for the word.
|
||||
- The path: the folder dim, the file name bright. A deleted file is struck through.
|
||||
- The line counts: `+N` in teal and `−N` in light amber.
|
||||
- The row actions, from the table above.
|
||||
|
||||
Hover a row to see its full project-relative path in a tooltip.
|
||||
Staged rows carry an amber bar on their left edge.
|
||||
|
||||
### Status letters and colours
|
||||
### Row actions
|
||||
- **Stage** and **Unstage** run at once. They never ask.
|
||||
- **Discard** throws away the unstaged changes of a file. The file goes back to its staged version, or to the last commit when nothing is staged.
|
||||
- **Delete** removes a new file from disk.
|
||||
- **Restore** brings a deleted file back.
|
||||
- Discard and Delete ask first by default (`git.confirmDiscard`). See [Dialogs](dialogs.md#discard-changes). Restore never asks.
|
||||
- An open file in the [File view](file-view.md) reloads after a Discard, Delete or Restore.
|
||||
|
||||
| Letter | Meaning | Colour in Staged Changes | Colour in Changes |
|
||||
|---|---|---|---|
|
||||
| `A` | Added: a new file, also an untracked one or a copy | teal | amber |
|
||||
| `M` | Modified; a merge conflict also reads `M` | teal | amber |
|
||||
| `D` | Deleted | teal | amber-deep |
|
||||
| `R` | Renamed | teal | light grey |
|
||||
### Inline diff
|
||||
- The last commit (or the staged version) is on the left, the working tree on the right, lines side by side.
|
||||
- Removed lines have an amber tint, added lines a teal tint. In a changed line pair, the part that differs is highlighted.
|
||||
- Each change keeps 3 unchanged lines around it. Longer unchanged runs fold into `⋯ N unchanged lines`.
|
||||
- A file over 1 MB shows `Too big.`. A file with no text changes shows `— No line changes.`.
|
||||
- For the full-screen comparison, open the file and use the [Diff](file-view-diff.md).
|
||||
|
||||
Staged letters are always teal, whatever the status. Unstaged letters follow the status. A merge conflict shows as one `M` row in Staged Changes, because git cannot stage half of a conflict.
|
||||
### Right-click a row
|
||||
Right-click a file row for **Open in editor**, **Pass on reference** and **Copy reference**. See the [right-click menu](right-click-menu.md#git-rows). Open in editor and Pass on reference close the view first.
|
||||
|
||||
### Open a file from a row
|
||||
### Pull and push
|
||||
- **Pull** runs `git pull --no-rebase`. When your branch and origin both have new commits, git merges them.
|
||||
- **Push** runs `git push`, or `Cmd+P` from anywhere. A branch with no upstream yet is pushed again with `git push -u origin <branch>`, so the next push needs nothing extra.
|
||||
- While one runs, its button reads `Pulling…` or `Pushing…` and the console header says so. A second Pull or Push is ignored until it ends.
|
||||
- Pull and push stop after 120 seconds.
|
||||
- Helder never asks for a password. Git must already have access to the remote, for example through an SSH key or a credential helper.
|
||||
- A [notification](notifications.md) says how it ended, for example `Pushed 2 commits to origin/main` or `Push failed` with git's error line.
|
||||
|
||||
- **Click** a row to open that file in the [File view](file-view.md). It opens on the live file, not the full-screen Diff.
|
||||
- The row remembers which half you clicked. When the file has rows in both groups, the Diff for that file then compares just that half: `HEAD → staged` for a staged row, `staged → actual` for an unstaged row.
|
||||
- The row of the open file stays highlighted.
|
||||
- To go straight into the full-screen Diff, use **Open diff** in the [right-click menu](right-click-menu.md#git-rows).
|
||||
### Console
|
||||
- Every action in the view logs the exact git command, such as `$ git add -- README.md`, and then git's output as it arrives.
|
||||
- Errors read in amber, hints dim, staged and unstaged files from `status` in their colours, and a pushed branch in teal.
|
||||
- Type your own command after `$ git` and press `Enter`. A leading `git` is allowed: `status` and `git status` do the same.
|
||||
- `clear` empties the console. So does the eraser button in its header.
|
||||
- `log` on its own shows the last 30 commits, one line each.
|
||||
- `Up` brings back the commands you typed before, newest first.
|
||||
- Commands run one at a time, in order. Typed commands also stop after 120 seconds.
|
||||
- Git cannot ask you anything here: there is no editor and no pager. A command that needs an editor, such as `commit` without `-m`, stops with git's error.
|
||||
- Click the console log without selecting text to put the cursor on the input line.
|
||||
- The console keeps the last 400 lines.
|
||||
|
||||
### Stage and unstage one file
|
||||
### Branches
|
||||
- **local** lists your local branches. **remote · origin** lists the branches on origin.
|
||||
- The current branch has an amber bar and reads `current`. A remote branch that has a local branch reads `tracked`.
|
||||
- Click a branch to switch to it (`switch →`).
|
||||
- Click a remote branch with no local branch to check it out (`checkout →`). Git creates a local branch that tracks it.
|
||||
- Switching is locked while there are uncommitted changes. The header then reads `— N uncommitted files · switching locked`, the other branches are dimmed, and a click shows a notification that asks you to commit or discard first.
|
||||
|
||||
- Hover a row. Its line counts make way for a quick action button:
|
||||
- `+` on a row in Changes: **Stage changes**.
|
||||
- `−` on a row in Staged Changes: **Unstage changes**.
|
||||
- Click the button. The row moves to the other group.
|
||||
- The same actions sit in the [right-click menu](right-click-menu.md#git-rows).
|
||||
- By default there is no confirmation. Turn on `git.confirmStage` or `git.confirmUnstage` to get a [confirm dialog](dialogs.md#confirm-dialog) first.
|
||||
|
||||
### Stage all and unstage all
|
||||
|
||||
- Hover the **Changes** header and click `+` (**Stage all**). Every unstaged file is staged.
|
||||
- Hover the **Staged Changes** header and click `−` (**Unstage all**). Every staged file goes back to Changes.
|
||||
- The button only shows while the group has rows.
|
||||
- Stage all and Unstage all never ask for confirmation.
|
||||
|
||||
### Discard changes
|
||||
|
||||
- Right-click a row and choose **Discard changes**. See the [right-click menu](right-click-menu.md#git-rows).
|
||||
- It asks first by default (`git.confirmDiscard`). See [Dialogs](dialogs.md#discard-changes).
|
||||
- A file that exists in the last commit goes back to that version, in the staging area and on disk. Both its staged and its unstaged changes are gone.
|
||||
- A file that is not in the last commit (a new file) is unstaged and deleted from disk.
|
||||
- A staged rename also gets its old file back.
|
||||
- An open file reloads from disk after a discard.
|
||||
|
||||
### Row cursor and keyboard
|
||||
|
||||
The column has a keyboard cursor: one highlighted row.
|
||||
|
||||
- Click the column, or move focus to it with `Cmd+Left` / `Cmd+Right`, to make it the active column.
|
||||
- `Up` and `Down` move the cursor through the rows: first all staged rows, then all unstaged rows, folder by folder.
|
||||
- `Enter` opens the row under the cursor, the same as a click.
|
||||
- `Cmd+Right` opens the row's [right-click menu](right-click-menu.md#git-rows), beside the column at the row's height.
|
||||
- Hovering a row with the pointer also moves the cursor to it.
|
||||
- When the cursor's row disappears, for example after a commit, the next `Up` or `Down` starts again at the top.
|
||||
|
||||
### Empty states
|
||||
|
||||
- **Not a repository**: the column shows `— Not a git repository.` and nothing else. The commit box stays at the foot.
|
||||
- **Clean working tree**: the column shows `— No changes. The working tree is clean.`
|
||||
- **Nothing staged**: under the Staged Changes header, `— Nothing staged.`
|
||||
- **Everything staged**: under the Changes header, `— All changes are staged.`
|
||||
|
||||
### Branch and totals
|
||||
|
||||
The column itself shows no branch. The current branch, the line totals of all changes, and the staged and unstaged counts sit on the left of the [Status bar](status-bar.md). The branch cannot be switched from Helder.
|
||||
### When the view is empty
|
||||
- **Not a repository**: `— Not a git repository.`
|
||||
- **Clean working tree**: `— No changes. The working tree is clean.`
|
||||
|
||||
### Worktrees
|
||||
|
||||
A project folder that is a git worktree (or a submodule) works like a normal repository. Helder finds the real git folder and watches it for changes. There is no worktree list or worktree switcher.
|
||||
|
||||
### How the list stays up to date
|
||||
|
||||
You do not need to refresh by hand. The list updates by itself:
|
||||
|
||||
- **On every change**: Helder watches the project folder and the git folder. Edits by you, by the agent, or by git in a terminal update the list after a short pause.
|
||||
- **On a timer**: as a backstop, git is re-read every 10 seconds by default (`git.refreshInterval`).
|
||||
- **When you click into the column**: moving focus into the Git column from another column re-reads git.
|
||||
- **After every action**: stage, unstage, discard, commit and push all re-read git when they finish.
|
||||
- **By hand**: `Cmd+R` (View → Refresh) re-reads git, the file tree and the open file. The column flashes briefly to show it.
|
||||
|
||||
When a git action fails, a [notification](notifications.md) names the action, for example `Stage failed`, with the file or git's own error line.
|
||||
|
||||
### Show or hide the column
|
||||
|
||||
- `Cmd+G`, or the **Git** toggle in the [Title bar](title-bar.md), shows or hides the column.
|
||||
- `Cmd+C` (with no text selected and outside a terminal) shows a hidden column and puts the cursor in the commit message.
|
||||
- See [Layout](layout.md) for column widths and splitters.
|
||||
- **When the view opens**: git is re-read, then origin is fetched.
|
||||
- **After every action**: every git command from the view, typed ones included, re-reads git and the branches when it ends. Pull, a branch switch and typed commands also re-read the file tree and the open file.
|
||||
- **By hand**: `Cmd+R` (View > Refresh) re-reads git, the file tree and the open file.
|
||||
|
||||
## Keyboard
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Up` / `Down` | Move the row cursor (Git column active) |
|
||||
| `Enter` | Open the row under the cursor |
|
||||
| `Cmd+Right` | Open the right-click menu of the row under the cursor |
|
||||
| `Cmd+Left` / `Cmd+Right` | Move focus to the column on the left or right |
|
||||
| `Cmd+C` | Focus the commit message (no text selected, not in a terminal) |
|
||||
| `Cmd+Enter` | Commit the staged files |
|
||||
| `Cmd+G` | Open or close the Git view |
|
||||
| `Esc` | Close the Git view (after any dialog, menu, search or Diff on top of it) |
|
||||
| `Cmd+C` | Open the view on the commit message (no text selected, not in a terminal) |
|
||||
| `Cmd+Enter` | Commit, while the view is open (not from the console input) |
|
||||
| `Cmd+P` | Push the current branch |
|
||||
| `Cmd+G` | Show or hide the Git column |
|
||||
| `Enter` | Run the command in the console input |
|
||||
| `Up` | Recall the previous console command |
|
||||
| `Cmd+R` | Re-read git, the file tree and the open file |
|
||||
|
||||
## Settings
|
||||
@@ -166,20 +165,17 @@ All settings live in `.helder/config.json`. See [Configuration](configuration.md
|
||||
|
||||
| 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 |
|
||||
| `git.refreshInterval` | `10000` | Milliseconds between automatic git re-reads; `0` turns the timer off |
|
||||
| `git.defaultDiffMode` | `updated` | How a changed file opens; see [File view: Diff](file-view-diff.md) |
|
||||
|
||||
## Related
|
||||
|
||||
- [Git commit form](git-commit-form.md): the message field, Commit and Push at the foot of this column.
|
||||
- [Right-click menu](right-click-menu.md#git-rows): every action on a git row.
|
||||
- [Dialogs](dialogs.md): the confirm dialog for discard, stage and unstage.
|
||||
- [File view](file-view.md): where a clicked row opens.
|
||||
- [File view: Diff](file-view-diff.md): the full-screen comparison behind Open diff.
|
||||
- [Git commit form](git-commit-form.md): the message, author and Commit button at the top of the view.
|
||||
- [Right-click menu](right-click-menu.md#git-rows): the menu on a file row.
|
||||
- [Dialogs](dialogs.md): the confirm dialog for Discard and Delete.
|
||||
- [File view: Diff](file-view-diff.md): the full-screen comparison of one file.
|
||||
- [Explorer](explorer.md): shows the same status letters in the file tree.
|
||||
- [Status bar](status-bar.md): branch, line totals and counts.
|
||||
- [Notifications](notifications.md): the messages after a commit, push or failed action.
|
||||
- [Status bar](status-bar.md): branch, line totals and counts while the view is closed.
|
||||
- [Notifications](notifications.md): the messages after a commit, pull, push or branch switch.
|
||||
- [Keyboard shortcuts](keyboard-shortcuts.md): every shortcut in one list.
|
||||
|
||||
+14
-14
@@ -8,22 +8,22 @@ This guide explains Helder from the user's side: what each part of the window sh
|
||||
|
||||
```text
|
||||
+----------------------------------------------------------------------------+
|
||||
| (1) Helder console / src / app.php [Git][Explorer][File][Claude] ... ? |
|
||||
+-----------+-----------+----------------------------------+-----------------+
|
||||
| (2) GIT | (3) | (4) FILE | (5) CLAUDE |
|
||||
| | EXPLORER | | |
|
||||
| STAGED | > src | 12 function handle() { | > _ |
|
||||
| M app.php| app.php | 13 return true; | |
|
||||
| CHANGES | > tests | 14 } +-----------------+
|
||||
| | | | (6) TERMINAL |
|
||||
| [commit] | | | $ _ |
|
||||
+-----------+-----------+----------------------------------+-----------------+
|
||||
| (1) Helder console / src / app.php [Explorer][File][Claude] [Git 2] .. ? |
|
||||
| (2) |
|
||||
+----------------+-----------------------------------+-----------------------+
|
||||
| (3) EXPLORER | (4) FILE | (5) CLAUDE |
|
||||
| > src | 12 function handle() { | > _ |
|
||||
| app.php | 13 return true; | |
|
||||
| > tests | 14 } +-----------------------+
|
||||
| | | (6) TERMINAL |
|
||||
| | | $ _ |
|
||||
+----------------+-----------------------------------+-----------------------+
|
||||
| (7) main +50 -38 Ln 12, Col 4 UTF-8 PHP |
|
||||
+----------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
1. [Title bar](title-bar.md): breadcrumb, pane toggles and toolbar.
|
||||
2. [Git](git.md): staged and unstaged changes, with the [commit form](git-commit-form.md) at its foot.
|
||||
2. [Git](git.md): the full-screen Git view (`Cmd+G`), with the [commit form](git-commit-form.md), a console and the branches.
|
||||
3. [Explorer](explorer.md): the project's file tree.
|
||||
4. [File view](file-view.md): one open file, with [Markdown preview](file-view-markdown.md) and [Diff](file-view-diff.md).
|
||||
5. [Claude Code](claude-code.md): the agent session.
|
||||
@@ -41,10 +41,10 @@ This guide explains Helder from the user's side: what each part of the window sh
|
||||
- [Recent projects](recent-projects.md): switch to or open another project.
|
||||
- [Notifications](notifications.md): the short messages that confirm or warn.
|
||||
|
||||
### Source control and files
|
||||
### Git and files
|
||||
|
||||
- [Git](git.md): the Source Control column.
|
||||
- [Git commit form](git-commit-form.md): write a message, commit and push.
|
||||
- [Git](git.md): the full-screen Git view: changes, inline diffs, pull, push, console and branches.
|
||||
- [Git commit form](git-commit-form.md): write a message, commit, or commit and push.
|
||||
- [Explorer](explorer.md): browse, create, rename and delete files.
|
||||
|
||||
### The file view
|
||||
|
||||
@@ -38,9 +38,9 @@ Helder is built to run from the keyboard. Press `?` to see a short list of the m
|
||||
- Close it with `Esc`, or by clicking the dimmed backdrop.
|
||||
- It scrolls only when the window is too short to show all of it.
|
||||
- It holds the main shortcuts, in four groups:
|
||||
- **Navigate**: search, list movement, column movement, recent projects, open folder, new window, PHP class lookup, and this list.
|
||||
- **Navigate**: search, list movement, column movement, the Explorer row cursor, the column toggles `Cmd+1` to `Cmd+3`, recent projects, open folder, new window, PHP class lookup, and this list.
|
||||
- **Agent**: pass the selection to the agent.
|
||||
- **Git**: focus the commit message, commit, Git column on or off, push.
|
||||
- **Git**: open or close the Git view, focus the commit message, commit, push.
|
||||
- **File**: save, Markdown preview, close, refresh, hidden files, select all, Fluid columns, zoom, and `Esc`.
|
||||
- The full reference is below.
|
||||
|
||||
@@ -48,6 +48,8 @@ Helder is built to run from the keyboard. Press `?` to see a short list of the m
|
||||
- A text field, the code, or a terminal keeps the keys it needs. Arrows, `Return`, `?`, `Cmd+A` and `Cmd+C` with a selection go to the field, not to Helder.
|
||||
- Keys with `Ctrl` or `Opt` always go to the field or terminal, except the menu shortcuts that use them.
|
||||
- While an overlay is open, it owns the keys. `Esc` closes it. The Diff is the exception: the workspace shortcuts keep working over it.
|
||||
- `Esc` closes the topmost layer: a right-click menu, a dialog, search or the Diff first, then the [Git](git.md) view. With none of those open, `Esc` goes to the terminal.
|
||||
- While the Git view is open, the column keys rest: arrows, `Return` and `Cmd+Left` / `Cmd+Right` do nothing in the columns under it.
|
||||
|
||||
## Keyboard
|
||||
|
||||
@@ -71,7 +73,9 @@ See [Window layout](layout.md) and [Title bar](title-bar.md).
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Cmd+G` | Show or hide the Git column |
|
||||
| `Cmd+1` | Show or hide the Explorer column |
|
||||
| `Cmd+2` | Show or hide the File column |
|
||||
| `Cmd+3` | Show or hide the Claude column |
|
||||
| `Cmd+L` | Fluid column widths on or off |
|
||||
| `Cmd+.` | Hidden files on or off |
|
||||
| `Cmd+Left` / `Cmd+Right` | Focus the column to the left or right (outside text fields and terminals) |
|
||||
@@ -87,18 +91,18 @@ See [Start screen](start-screen.md).
|
||||
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
|
||||
| `Return` | Open the selected row |
|
||||
|
||||
### Git column
|
||||
### Git view
|
||||
See [Git](git.md) and [Git commit form](git-commit-form.md).
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Up` / `Down` | Move the row cursor (when the column is active) |
|
||||
| `Return` | Open the selected file |
|
||||
| `Cmd+Right` | Open the selected row's menu |
|
||||
| `Cmd+C` | Focus the commit message (with no text selected, outside a terminal); shows the Git column if hidden |
|
||||
| `Cmd+Return` | Commit the staged files (from anywhere) |
|
||||
| `Shift+Return`, `Ctrl+Return` | Commit, while typing in the commit message |
|
||||
| `Cmd+P` | Push the current branch |
|
||||
| `Cmd+G` | Open or close the Git view |
|
||||
| `Esc` | Close the Git view (when nothing is on top of it) |
|
||||
| `Cmd+C` | Open the Git view on the commit message (with no text selected, outside a terminal) |
|
||||
| `Cmd+Return` | Commit, while the Git view is open (not from the console input) |
|
||||
| `Cmd+P` | Push the current branch (also with the view closed) |
|
||||
| `Return` | Run the command in the console input |
|
||||
| `Up` | Recall the previous console command |
|
||||
|
||||
### Explorer
|
||||
See [Explorer](explorer.md).
|
||||
@@ -180,7 +184,7 @@ See [Right-click menu](right-click-menu.md) and [Dialogs](dialogs.md).
|
||||
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move through a menu |
|
||||
| `Return` | Choose the menu item, confirm a dialog, or accept a name |
|
||||
| `Esc` | Close the menu or dialog |
|
||||
| `Ctrl+click` | Same as a right-click on a Git or Explorer row |
|
||||
| `Ctrl+click` | Same as a right-click on a Git view or Explorer row |
|
||||
|
||||
### Terminals
|
||||
See [Claude Code](claude-code.md) and [Command line](command-line.md).
|
||||
|
||||
+39
-39
@@ -1,6 +1,6 @@
|
||||
# Window layout
|
||||
|
||||
A Helder window holds one project. It has a title bar on top, four columns in the middle and a status bar at the bottom.
|
||||
A Helder window holds one project. It has a title bar on top, three columns in the middle and a status bar at the bottom. The [Git](git.md) view (`Cmd+G`) covers all of it when open.
|
||||
|
||||
[Guide index](index.md) · Related: [Title bar](title-bar.md), [Status bar](status-bar.md), [Keyboard shortcuts](keyboard-shortcuts.md), [Configuration](configuration.md)
|
||||
|
||||
@@ -8,39 +8,39 @@ A Helder window holds one project. It has a title bar on top, four columns in th
|
||||
|
||||
```text
|
||||
+----------------------------------------------------------------------------+
|
||||
| ooo Helder. shop . main app>User.php [Git|Expl|File|Claude] [Search..] [?]|
|
||||
| ooo Helder. shop . main app>User.php [Git 3|Expl|File|Claude] [Search] [?]|
|
||||
| (1) |
|
||||
+-----------+------------+-------------------------------+-------------------+
|
||||
| SOURCE | EXPLORER | User.php +12 -3 | (claude running) |
|
||||
| CONTROL | | | |
|
||||
| [message ]| > app | 1 <?php | > _ |
|
||||
| [Commit 2]| v Http | 2 | (5) |
|
||||
| | User.. | 3 class User | |
|
||||
| STAGED | > config | 4 { | |
|
||||
| M a.php | > routes | 5 ... +-------------------+
|
||||
| CHANGES | .env | | $ zsh |
|
||||
| A b.php | | | |
|
||||
| (2) | (3) | (4) | (6) |
|
||||
+-----------+------------+-------------------------------+-------------------+
|
||||
+-----------------+-------------------------------------+--------------------+
|
||||
| EXPLORER | User.php +12 -3 | (claude running) |
|
||||
| | | |
|
||||
| > app | 1 <?php | > _ |
|
||||
| v Http | 2 | (4) |
|
||||
| User.. | 3 class User | |
|
||||
| > config | 4 { | |
|
||||
| > routes | 5 ... +--------------------+
|
||||
| .env | | $ zsh |
|
||||
| | | |
|
||||
| (2) | (3) | (5) |
|
||||
+-----------------+-------------------------------------+--------------------+
|
||||
| main +50 -38 1 staged . 2 unstaged app/User.php . Ln 3, Col 1 . PHP |
|
||||
+----------------------------------------------------------------------------+
|
||||
^ ^ ^ (7)
|
||||
(8) (8) (8)
|
||||
^ ^ (6)
|
||||
(7) (7)
|
||||
```
|
||||
|
||||
1. **Title bar**: wordmark, project and branch, breadcrumb, pane toggles and toolbar. See [Title bar](title-bar.md).
|
||||
2. **Git column** (Source Control): staging, committing and pushing. See [Git](git.md).
|
||||
3. **Explorer column**: the project file tree. See [Explorer](explorer.md).
|
||||
4. **File column**: the one open file. See [File view](file-view.md).
|
||||
5. **Claude pane**: the agent terminal, top of the right column. See [Claude Code](claude-code.md).
|
||||
6. **Shell pane**: a plain terminal, bottom of the right column. See [Command line](command-line.md).
|
||||
7. **Status bar**: branch, change counts and file facts. See [Status bar](status-bar.md).
|
||||
8. **Splitters**: the thin lines between columns. Drag them to resize.
|
||||
1. **Title bar**: wordmark, project and branch, breadcrumb, the pane toggles, and the toolbar with the Git toggle. See [Title bar](title-bar.md).
|
||||
2. **Explorer column**: the project file tree. See [Explorer](explorer.md).
|
||||
3. **File column**: the one open file. See [File view](file-view.md).
|
||||
4. **Claude pane**: the agent terminal, top of the right column. See [Claude Code](claude-code.md).
|
||||
5. **Shell pane**: a plain terminal, bottom of the right column. See [Command line](command-line.md).
|
||||
6. **Status bar**: branch, change counts and file facts. See [Status bar](status-bar.md).
|
||||
7. **Splitters**: the thin lines between columns. Drag them to resize.
|
||||
|
||||
## Features
|
||||
|
||||
### The four columns
|
||||
- From left to right: **Git**, **Explorer**, **File**, and **Claude + Terminal**.
|
||||
### The three columns
|
||||
- From left to right: **Explorer**, **File**, and **Claude + Terminal**.
|
||||
- Git is not a column. The full-screen [Git](git.md) view opens over the window with `Cmd+G` and leaves the columns as they were.
|
||||
- The File column is the flexible one. It takes the width the other columns leave.
|
||||
- The right column holds two terminals stacked on top of each other: Claude on top, a shell below.
|
||||
|
||||
@@ -49,7 +49,6 @@ A Helder window holds one project. It has a title bar on top, four columns in th
|
||||
- Drag a vertical splitter to change a column's width.
|
||||
- Drag the horizontal splitter in the right column to share the height between Claude and the shell.
|
||||
- Columns have limits, so you cannot drag them away:
|
||||
- Git: 160 to 460 points wide.
|
||||
- Explorer: 160 to 520 points wide.
|
||||
- File: at least 280 points wide.
|
||||
- Claude + Terminal: at least 280 points, and never so wide that File drops below 280.
|
||||
@@ -58,8 +57,8 @@ A Helder window holds one project. It has a title bar on top, four columns in th
|
||||
|
||||
### Fluid column widths (`Cmd+L`)
|
||||
- With **Fluid** on, Helder sizes the columns for you. It re-fits them when you resize the window and when focus moves.
|
||||
- At a window width of 1600 points or more, the columns keep fixed shares: Git about 13%, Explorer about 16%, Claude about 27%, File the rest.
|
||||
- Below 1600 points, Git and Explorer take 15% each, and the right column follows your focus:
|
||||
- At a window width of 1600 points or more, the columns keep fixed shares: Explorer about 16%, Claude about 27%, File the rest.
|
||||
- Below 1600 points, Explorer takes 15%, and the right column follows your focus:
|
||||
- 30% when neither side has focus.
|
||||
- 20% when the File column has focus, or when you just opened a file.
|
||||
- 50% when a terminal has focus.
|
||||
@@ -68,13 +67,12 @@ A Helder window holds one project. It has a title bar on top, four columns in th
|
||||
- Toggle it with `Cmd+L`, the **Fluid** button in the title bar, or View > Fluid Column Widths / Lock Column Widths.
|
||||
|
||||
### Showing and hiding columns
|
||||
- Each column has a toggle in the title bar: **Git**, **Explorer**, **File**, **Claude**. A dot on the button shows that the column is on.
|
||||
- `Cmd+G` toggles the Git column. The View menu has Show/Hide items for all four.
|
||||
- Each column has a toggle in the title bar: **Explorer**, **File**, **Claude**. A dot on the button shows that the column is on.
|
||||
- `Cmd+1`, `Cmd+2` and `Cmd+3` toggle Explorer, File and Claude. The View menu has Show/Hide items for all three.
|
||||
- Hiding only hides. The terminals keep running, the open file keeps its edits and scroll position, and the tree keeps its open folders.
|
||||
- When a column hides, File takes the free width. With File hidden, the Claude + Terminal column fills the rest.
|
||||
- With every column hidden, the middle of the window is empty.
|
||||
- A hidden column cannot take focus. If you hide the column you are typing in, the keyboard goes back to the window, so nothing lands in a pane you cannot see.
|
||||
- `Cmd+C` (with no text selected, outside a terminal) shows the Git column again if it was hidden, and puts the cursor in the commit message.
|
||||
|
||||
### Hidden files (`Cmd+.`)
|
||||
- **Hidden** shows or hides dotfiles such as `.env` in the Explorer and in search.
|
||||
@@ -82,10 +80,10 @@ A Helder window holds one project. It has a title bar on top, four columns in th
|
||||
- Toggle it with `Cmd+.`, the **Hidden** button, or View > Show Hidden Files.
|
||||
|
||||
### Focus and the active column
|
||||
- Click inside a column to make it the active column. Git and Explorer get a lighter background when active.
|
||||
- Click inside a column to make it the active column. The Explorer gets a lighter background when active.
|
||||
- `Cmd+Left` and `Cmd+Right` move focus to the next visible column. This works when the keyboard is not inside a text field, the code, or a terminal. In those places the keys keep their normal meaning.
|
||||
- In the Git and Explorer columns, `Up` and `Down` move the row cursor and `Return` opens the row. See [Git](git.md) and [Explorer](explorer.md).
|
||||
- Clicking a row in Git or Explorer takes the keyboard out of a text field in another column.
|
||||
- In the Explorer, `Up` and `Down` move the row cursor and `Return` opens the row. See [Explorer](explorer.md).
|
||||
- Clicking an Explorer row takes the keyboard out of a text field in another column.
|
||||
|
||||
### The mouse pointer
|
||||
- A pointing hand means a left click runs an action: a button, a clickable row, the project name.
|
||||
@@ -126,7 +124,7 @@ A Helder window holds one project. It has a title bar on top, four columns in th
|
||||
|
||||
### What Helder remembers
|
||||
Per project, always:
|
||||
- Which of the four columns are shown.
|
||||
- Which of the three columns are shown.
|
||||
- Whether **Fluid** is on.
|
||||
- The column widths, when **Fluid** is off.
|
||||
|
||||
@@ -137,13 +135,14 @@ For all projects together:
|
||||
- The zoom level.
|
||||
- The height split between Claude and the shell.
|
||||
|
||||
Not remembered: **Hidden** files (starts off) and which column had focus.
|
||||
Not remembered: **Hidden** files (starts off), which column had focus, and whether the Git view was open.
|
||||
|
||||
## Keyboard
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Cmd+G` | Show or hide the Git column |
|
||||
| `Cmd+G` | Open or close the Git view |
|
||||
| `Cmd+1` / `Cmd+2` / `Cmd+3` | Show or hide the Explorer, File or Claude column |
|
||||
| `Cmd+L` | Fluid column widths on or off |
|
||||
| `Cmd+.` | Hidden files on or off |
|
||||
| `Cmd+Left` / `Cmd+Right` | Focus the column to the left or right (outside text and terminals) |
|
||||
@@ -162,7 +161,8 @@ Not remembered: **Hidden** files (starts off) and which column had focus.
|
||||
|
||||
## Related
|
||||
|
||||
- [Title bar](title-bar.md): the pane toggles and the Fluid and Hidden buttons live here.
|
||||
- [Title bar](title-bar.md): the pane toggles and the Git, Fluid and Hidden buttons live here.
|
||||
- [Git](git.md): the full-screen Git view.
|
||||
- [Status bar](status-bar.md): the bar along the bottom edge.
|
||||
- [Start screen](start-screen.md): what a window shows before a project is open.
|
||||
- [Recent projects](recent-projects.md): switch this window to another project.
|
||||
|
||||
@@ -14,7 +14,7 @@ Helder confirms what it just did with a toast: a small card that appears near th
|
||||
| +-------------------------------------------+ |
|
||||
| |# [] Committed 2 files [Fix the login fo..]| (1) |
|
||||
| +-------------------------------------------+ |
|
||||
| |# [] Pushed [main -> main] | |
|
||||
| |# [] Pushed 1 commit to origin/main | |
|
||||
| +-------------------------------------------+ |
|
||||
| ^ ^ ^ ^ |
|
||||
| (2)(3) (4) (5) |
|
||||
@@ -68,13 +68,15 @@ Git:
|
||||
| Title | Detail | When |
|
||||
|---|---|---|
|
||||
| Committed 1 file / Committed N files | commit subject (first 34 characters) | A commit succeeded |
|
||||
| Commit failed | git's error | The commit did not work; your message stays in the field |
|
||||
| Pushing… | none | A push started |
|
||||
| Pushed | git's message | The push succeeded |
|
||||
| Push failed | git's message | The push did not work |
|
||||
| Discarded changes | path | After Discard changes |
|
||||
| Discard failed | path | Discard did not work |
|
||||
| Stage failed / Unstage failed | path or git's error | Staging or unstaging did not work |
|
||||
| Commit failed | git's first error line | The commit did not work; your message stays in the field |
|
||||
| `Pushed N commits to origin/<branch>` | none | The push succeeded; without commits ahead it reads `Pushed to origin/<branch>` |
|
||||
| Push failed | git's first error line | The push did not work |
|
||||
| `Pulled N commits from origin/<branch>` | none | The pull brought in commits; `Pulled from origin/<branch>` when the count was not known. An up-to-date pull shows nothing |
|
||||
| Pull failed | git's first error line | The pull did not work |
|
||||
| `Switched to <branch>` | none | A branch switch from the Git view succeeded |
|
||||
| — Commit or discard N files before you switch. | none | You clicked a branch while there are uncommitted changes |
|
||||
|
||||
Stage, unstage, discard and typed console commands show no toast. Their output, errors included, is in the Git view's [console](git.md#console).
|
||||
|
||||
The agent:
|
||||
|
||||
@@ -90,7 +92,7 @@ Two other messages appear for a moment, but they are not toasts:
|
||||
|
||||
## Related
|
||||
|
||||
- [Git](git.md): commit, push, stage and discard, which report through toasts.
|
||||
- [Git](git.md): commit, pull, push and branch switches, which report through toasts.
|
||||
- [Explorer](explorer.md) and [Right-click menu](right-click-menu.md): the file actions behind most file toasts.
|
||||
- [Pass on to agent](pass-on-to-agent.md): the "Passed to agent" toast.
|
||||
- [Dialogs](dialogs.md): prompts that do ask you something, unlike toasts.
|
||||
|
||||
@@ -78,7 +78,7 @@ Pass on to Agent sends a pointer to your code to the [Claude Code](claude-code.m
|
||||
- Without a selection, `Cmd+Right` in the code keeps its normal meaning (end of line).
|
||||
|
||||
### Other things you can pass on
|
||||
- Files, folders and Git rows have their own pass-on items in their [right-click menu](right-click-menu.md), such as **Pass on file name**.
|
||||
- Files, folders and [Git](git.md) view rows have their own pass-on items in their [right-click menu](right-click-menu.md), such as **Pass on file name**.
|
||||
|
||||
## Keyboard
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
+12
-11
@@ -1,6 +1,6 @@
|
||||
# Search
|
||||
|
||||
Search is a large overlay over the whole window. One query searches the open file, the contents of the project and the file names at the same time.
|
||||
Search covers the whole window, edge to edge, like the [Git view](git.md). One query searches the open file, the contents of the project and the file names at the same time.
|
||||
|
||||
[Guide index](index.md) · Related: [Go to file](go-to-file.md), [File view](file-view.md), [Explorer](explorer.md)
|
||||
|
||||
@@ -9,14 +9,14 @@ Search is a large overlay over the whole window. One query searches the open fil
|
||||
```text
|
||||
+----------------------------------------------------------------------------+
|
||||
| (1) Q handle_ (2) [php][md] (3) 3 here . 39 hits . 2 f |
|
||||
+------------------+-----------------------------------------+---------------+
|
||||
| (4) app.php 3 | (5) PROJECT 39 | (6) FILES 2 |
|
||||
| 12 function han | src/app.php 3 | Handler.php |
|
||||
| 40 $this->handl | 12 function handle() { | src/ |
|
||||
| 88 handle($r); | 40 $this->handle($x); | handle.md * |
|
||||
| | tests/AppTest.php 1 | docs/ |
|
||||
| | 7 ->handle() | |
|
||||
+------------------+-----------------------------------------+---------------+
|
||||
+----------------------+---------------------------------+-------------------+
|
||||
| (4) app.php 3 | (5) PROJECT 39 | (6) FILES 2 |
|
||||
| 12 function handle | src/app.php 3 | Handler.php |
|
||||
| 40 $this->handle( | 12 function handle() { | src/ |
|
||||
| 88 handle($r); | 40 $this->handle($x); | handle.md * |
|
||||
| | tests/AppTest.php 1 | docs/ |
|
||||
| | 7 ->handle() | |
|
||||
+----------------------+---------------------------------+-------------------+
|
||||
| (7) Cmd+Left / Cmd+Right column Cmd+Up / Cmd+Down row Enter open esc |
|
||||
+----------------------------------------------------------------------------+
|
||||
```
|
||||
@@ -34,7 +34,7 @@ Search is a large overlay over the whole window. One query searches the open fil
|
||||
### Opening search
|
||||
- Press `Cmd+F`, or click **Search** in the [title bar](title-bar.md).
|
||||
- With text selected in the file view, the query starts with the first line of that selection.
|
||||
- The overlay fills the window, with a small margin. Click the dimmed area around it to close it.
|
||||
- Search covers the whole window, title bar and status bar included, with no margin. Press `Esc` to close it.
|
||||
|
||||
### Typing
|
||||
- Results update as you type.
|
||||
@@ -47,7 +47,8 @@ Search is a large overlay over the whole window. One query searches the open fil
|
||||
- File names that match on the name come first, before matches that only hit the folder path. Earlier and shorter matches rank higher.
|
||||
|
||||
### The three columns
|
||||
- The focused column is wide. The others shrink to the side. The focused column's title and count turn amber.
|
||||
- The columns keep a fixed width: This file 30 percent, Project 45 percent, Files 25 percent. Without an open file: Project 65 percent, Files 35 percent.
|
||||
- Moving the focus does not change a width. The focused column's title and count turn amber.
|
||||
- Each project file shows its path and its number of hits. Up to 12 hit lines are shown per file; the count still tells the full number.
|
||||
- Each hit line shows its line number and the line, with the match highlighted.
|
||||
- In **Files**, the folder sits below the name. An amber dot marks a file with uncommitted git changes.
|
||||
|
||||
@@ -32,7 +32,8 @@ The bar is one row in the app. It is drawn on two rows here to fit the page.
|
||||
|
||||
### Git summary (left)
|
||||
- The branch, the added and removed line totals, and the staged and unstaged counts.
|
||||
- These follow the [Git](git.md) column. They update when you stage, unstage, commit, or when files change on disk.
|
||||
- These follow git. They update when you stage, unstage or commit in the [Git](git.md) view, or when files change on disk.
|
||||
- The full-screen Git view covers the status bar while it is open.
|
||||
|
||||
### File facts (right)
|
||||
- The path, the cursor position and the language appear only while a file is open.
|
||||
|
||||
+18
-15
@@ -1,6 +1,6 @@
|
||||
# Title bar
|
||||
|
||||
The title bar is the 44-point strip across the top of a project window. It tells you which project, branch and file you are on, and holds the column toggles and the main tools.
|
||||
The title bar is the 44-point strip across the top of a project window. It tells you which project, branch and file you are on, and holds the column toggles, the Git toggle and the main tools.
|
||||
|
||||
[Guide index](index.md) · Related: [Window layout](layout.md), [Search](search.md), [Keyboard shortcuts](keyboard-shortcuts.md)
|
||||
|
||||
@@ -11,8 +11,8 @@ The title bar is the 44-point strip across the top of a project window. It tells
|
||||
| o o o Helder. shop . main app > Http > User.php * |
|
||||
| (1) (2) (3) (4) (5) (6) |
|
||||
| |
|
||||
| [.Git|.Explorer|.File|.Claude] [Search |.Fluid |.Hidden] [?] |
|
||||
| (7) (8) (9) (9) (10) |
|
||||
| [.Explorer|.File|.Claude] [Git 3 |Search |.Fluid |.Hidden] [?] |
|
||||
| (7) (8) (9) (10) (10) (11) |
|
||||
+----------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
@@ -21,7 +21,7 @@ The bar is one row in the app. It is drawn on two rows here to fit the page.
|
||||
While Helder reads aloud, a **Stop** button leads the toolbar:
|
||||
|
||||
```text
|
||||
| [.Stop |Search |.Fluid |.Hidden] [?] |
|
||||
| [.Stop |Git 3 |Search |.Fluid |.Hidden] [?] |
|
||||
```
|
||||
|
||||
1. **Window buttons**: the macOS close, minimize and zoom buttons.
|
||||
@@ -30,10 +30,11 @@ While Helder reads aloud, a **Stop** button leads the toolbar:
|
||||
4. **Branch**: the current git branch, in amber.
|
||||
5. **Breadcrumb**: the path of the open file, folder by folder.
|
||||
6. **Unsaved dot**: an amber dot when the open file has unsaved edits.
|
||||
7. **Pane toggles**: one button per column.
|
||||
8. **Search**: a button that opens an overlay.
|
||||
9. **Fluid** and **Hidden**: on/off toggles.
|
||||
10. **`?`**: opens the keyboard shortcuts.
|
||||
7. **Pane toggles**: each shows or hides one column.
|
||||
8. **Git N**: opens and closes the Git view.
|
||||
9. **Search**: a button that opens an overlay.
|
||||
10. **Fluid** and **Hidden**: on/off toggles.
|
||||
11. **`?`**: opens the keyboard shortcuts.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -52,26 +53,26 @@ While Helder reads aloud, a **Stop** button leads the toolbar:
|
||||
- The breadcrumb is for reading only. Clicking it does nothing.
|
||||
|
||||
### Pane toggles
|
||||
- Four buttons in one box: **Git**, **Explorer**, **File**, **Claude**.
|
||||
- Each button shows or hides its column. A dot on the button shows that the column is on.
|
||||
- The hover tooltip says whether the column is shown or hidden, and what a click does.
|
||||
- Three buttons in one box: **Explorer**, **File**, **Claude**.
|
||||
- Each shows or hides its column. A dot on the button shows that the column is on. `Cmd+1`, `Cmd+2` and `Cmd+3` do the same.
|
||||
- The hover tooltip says whether the column is shown, and what a click does.
|
||||
- The toggles sit in the centre of the window. They only move left when the toolbar would run into them.
|
||||
- Hiding a column keeps everything inside it. See [Window layout](layout.md).
|
||||
- `Cmd+G` does the same as the **Git** toggle.
|
||||
|
||||
### Toolbar
|
||||
The toolbar sits on the right. Each button shows its shortcut next to its label.
|
||||
|
||||
- **Git N** (`Cmd+G`): opens the full-screen [Git](git.md) view. N counts the changed files; a file that is both staged and unstaged counts once. With no changes it reads **Git**. The view covers the title bar, so close it with `Cmd+G`, `Esc` or its own **Close** button.
|
||||
- **Search** (`Cmd+F`): opens search over the open file, the project contents and the file names. See [Search](search.md).
|
||||
- **Fluid** (`Cmd+L`): when on, the columns re-fit on resize and when focus moves. When off, they keep their size. See [Window layout](layout.md).
|
||||
- **Hidden** (`Cmd+.`): when on, dotfiles appear in the Explorer and in search.
|
||||
- **`?`**: opens the keyboard shortcuts list. See [Keyboard shortcuts](keyboard-shortcuts.md).
|
||||
|
||||
Fluid and Hidden carry a state dot like the pane toggles. Search has no dot, because it is an action. Hover any button for a tooltip that explains its current state.
|
||||
Git, Fluid and Hidden carry a state dot like the pane toggles; Git's dot is on while the view is open. Search has no dot, because it is an action. Hover any button for a tooltip that explains its current state.
|
||||
|
||||
### Read aloud
|
||||
- **Stop** shows only while Helder reads a file or a selection aloud. Start the reading from the [right-click menu](right-click-menu.md): **Read aloud** on a Markdown file, **Read aloud selection** in the code.
|
||||
- It sits left of **Search**, in the same style, and its dot is on. The tooltip says "Read aloud: playing. Click to stop."
|
||||
- It sits left of **Git**, in the same style, and its dot is on. The tooltip says "Read aloud: playing. Click to stop."
|
||||
- Click it to switch it off: the reading stops and the button goes away.
|
||||
- The button also goes away when the reading reaches the end. Switching projects or closing the window stops the reading.
|
||||
|
||||
@@ -85,13 +86,15 @@ Drag an empty part of the title bar to move the window, as in any macOS app.
|
||||
| `Cmd+F` | Search |
|
||||
| `Cmd+L` | Fluid column widths on or off |
|
||||
| `Cmd+.` | Hidden files on or off |
|
||||
| `Cmd+G` | Git column on or off |
|
||||
| `Cmd+G` | Open or close the Git view |
|
||||
| `Cmd+1` / `Cmd+2` / `Cmd+3` | Explorer, File or Claude column on or off |
|
||||
| `?` | Keyboard shortcuts (when no text field has focus) |
|
||||
| `Cmd+O` | Open a folder (same as clicking the project name) |
|
||||
|
||||
## Related
|
||||
|
||||
- [Window layout](layout.md): what the pane toggles, Fluid and Hidden do to the columns.
|
||||
- [Git](git.md): the view the Git toggle opens.
|
||||
- [Search](search.md): the overlay the Search button opens.
|
||||
- [Keyboard shortcuts](keyboard-shortcuts.md): the overlay the `?` button opens.
|
||||
- [Recent projects](recent-projects.md): opening another folder.
|
||||
|
||||
Reference in New Issue
Block a user