adds claude-generated commit messages and a recent commits panel to the git view - adds log tailing in the explorer, branch merging and a clean up button
This commit is contained in:
+10
-6
@@ -12,7 +12,7 @@ Helder (executable) → HelderUI → HelderServices → HelderCore
|
||||
| Target | May import | Rules |
|
||||
|---|---|---|
|
||||
| `HelderCore` | Foundation | Pure logic and value types, all `Sendable`. No AppKit, no SwiftUI, no disk, no processes. Swift 6 mode. |
|
||||
| `HelderServices` | HelderCore, Foundation, CoreServices, AVFoundation | Everything that touches disk or spawns `git`/`rg`, behind a protocol. Processes only through `ProcessRunning`. |
|
||||
| `HelderServices` | HelderCore, Foundation, CoreServices, AVFoundation | Everything that touches disk or spawns `git`/`rg`/`php`/`claude`, behind a protocol. Processes only through `ProcessRunning`. |
|
||||
| `HelderUI` | Core, Services, SwiftUI, AppKit, SwiftTerm | `@Observable @MainActor` stores plus views. Never runs a process or touches project files directly, only through the service protocols (the SwiftTerm terminals are the one exception). |
|
||||
| `Helder` | HelderUI | The `@main` app. Keep it tiny. |
|
||||
|
||||
@@ -25,10 +25,11 @@ Helder (executable) → HelderUI → HelderServices → HelderCore
|
||||
- **Stores report, the model shows.** Stores raise toasts through `notify`/`showToast` hooks the model wires to `ToastStore`; the model never toasts a second time for the same action.
|
||||
- **Closing.** A window close, a project switch and ⌘Q all run `prepareToClose()` first: every unsaved file (at most the open one plus a vanished-file buffer) is asked about, and a cancel keeps everything open. Then `closeProject()` waits for running work, writes the session and ends the terminals.
|
||||
- **Lifecycle.** `start()`: recents → config (applied to every store and the terminals) → git, tree and the `.clean-copy` baseline in parallel → `editor.restore` → watcher → git polling (`git.refreshInterval`) → the PHP class list 1.5 s later. Watcher events: `.cleanCopy` (`.clean-copy` in the root, 150 ms debounce, fired besides `.project`) makes `CleanCopyStore` re-read the file and opens the `.cleanCopy` overlay for new non-blank text (the text found at load is the baseline; another open overlay makes it wait, keeping only the newest); `.project` re-reads git, the tree, the open file and every unsaved buffer (the edits kept), invalidates the symbol index and reloads the class list 2 s after the last change; `.git` re-reads git; `.config` re-resolves and re-applies the config. ⌘R re-reads git and the tree and lets the disk win in the open file. A project switch or window close saves the session, stops the watcher and polling, and ends both terminals.
|
||||
- **Terminals.** `TerminalStore` owns both panes' handles. Ending a pane goes through the store (`terminateAll`, `restart`, or `release` when a pane's window closes), which signals the child and lets `ChildReaper` collect it, so no zombie or orphan is left. A pane whose child exited restarts on the next key press. Right-click raises `contextMenuRequested`; the model shows the app's own menu (`.terminal` target: Copy with a selection, Paste). Font size follows `layout.textScale` (⌘0/⌘+/⌘−) live.
|
||||
- **Terminals.** `TerminalStore` owns both panes' handles. Ending a pane goes through the store (`terminateAll`, `restart`, or `release` when a pane's window closes), which signals the child and lets `ChildReaper` collect it, so no zombie or orphan is left. A pane whose child exited restarts on the next key press. Right-click raises `contextMenuRequested`; the model shows the app's own menu (`.terminal` target: Copy with a selection, Paste). Font size follows `layout.textScale` (⌘0/⌘+/⌘−) live. The Explorer's tail block is a third kind, `.tail` (`TerminalLaunch.tail`: `/usr/bin/tail -f <path>`, no shell): `startTail` ends the old one and bumps `tailGeneration`, which the block uses as its pane's `.id`, so each file gets a fresh view and process; `closeTail` and `terminateAll` end it, and `tailedPath` is never persisted.
|
||||
- **Git view.** ⌘G toggles `LayoutStore.isGitViewOpen` (never persisted, reset on a project switch). `WorkspaceView` draws `GitView` as an overlay over title bar, columns and status bar, under `OverlayHost`, so every overlay and toast sits above it; the columns stay mounted. `KeyContext.gitViewOpen` sends keys to `KeyRouter.gitViewKey` (column keys rest, ⌘↵ commits) and makes a bare Esc `.closeGitView` once no overlay is open; `inGitConsole` (first responder is a `GitConsoleFieldEditor`) keeps ⌘↵ from committing out of the console. `openGitView()` / `closeGitView()` in `+Commands` move the focus request (commit message in, previous `activePanel` out). Design source: `design/README.md`.
|
||||
- **Schema view.** ⌘D toggles `LayoutStore.isSchemaViewOpen` (never persisted, reset on a project switch); `openGitView`/`openSchemaView` close each other. It exists only when `SchemaStore.isLaravelApp` (an `artisan` file): the title-bar toggle, `KeyContext.schemaAvailable` for ⌘D and the View menu item follow it. `WorkspaceView` draws `SchemaView` like `GitView`. `SchemaStore.body` picks the command-missing prompt, the no-dump state or the diagram. The watcher's `.project` events and ⌘R carry `RefreshScope.schema`: `refresh(readingDump:)` re-checks the command and re-reads the dump only when its modification date moved, keeping viewport and positions (`SchemaLayout.positions(_:saved:)`). Card positions go to `AppServices.schemaLayouts` when a drag ends; the first dump in a store fits once the canvas has a size. `run()` streams `SchemaServicing.runDump` like the Git console and toasts through `notify`. Esc over the view: selection (`.clearSchemaSelection`), then the search text while `SchemaSearchFieldEditor` has the keyboard (`.clearSchemaSearch`), then `.closeSchemaView`. The canvas lays each card out at 100% and scales it into its on-screen frame, so the click and `.pointerHand()` area stay unscaled; scroll and pinch arrive through a local event monitor (`SchemaScrollCatcher`), since the cards would take them otherwise. Contract: [schema.md](schema.md).
|
||||
- **Git commands.** Every git write and every typed console command goes through `SourceControlStore.run`, which chains onto `commandTail` so two commands never race for `.git/index.lock`, logs `$ git …` and streams lines via `GitServicing.execute` → `ProcessRunning.stream` into the console (`GitOutputClassifier`, one per run). `execute` never throws and switches off prompts, editors and pagers (`GIT_TERMINAL_PROMPT=0`, `GIT_EDITOR=true`, `GIT_PAGER=cat`), so a run can never wait on input. Typed commands run without literal pathspecs (globs work); buttons always pass explicit paths, never `add -A`. Push/pull/fetch and typed commands get `remoteTimeout` (120 s). Commit always runs git, even when `canCommitNow` is false, so git's refusal is the error the user sees. Branch switching is refused in the store while `isDirty`, without asking git. The status read (`load`) stays on `ProcessRunning.run`.
|
||||
- **Git commands.** Every git write and every typed console command goes through `SourceControlStore.run`, which chains onto `commandTail` so two commands never race for `.git/index.lock`, logs `$ git …` and streams lines via `GitServicing.execute` → `ProcessRunning.stream` into the console (`GitOutputClassifier`, one per run). `execute` never throws and switches off prompts, editors and pagers (`GIT_TERMINAL_PROMPT=0`, `GIT_EDITOR=true`, `GIT_PAGER=cat`), so a run can never wait on input. Typed commands run without literal pathspecs (globs work); buttons always pass explicit paths, never `add -A`. Push/pull/fetch and typed commands get `remoteTimeout` (120 s). Commit always runs git, even when `canCommitNow` is false, so git's refusal is the error the user sees. Branch switching and merging are refused in the store while `isDirty`, without asking git. The status read (`load`) stays on `ProcessRunning.run`.
|
||||
- **Commit message generation.** `.generateCommitMessage` → `SourceControlStore.generateCommitMessage()`: `GitServicing.stagedDiff()` (stat + patch, outside `commandTail` and the console), `CommitMessagePrompt.make` (patch cut at 60 000 characters), then `WorkspaceServices.commitMessages` (`ClaudeCommitMessageService`: the binary from `ExecutableLocator.agent`, its folder first on PATH, the prompt via `ProcessRunning.run(input:)`, cleaned with `CommitMessagePrompt.clean`). Success goes through `setCommitMessage` (so it is lowercased) and `focusMessage`; a `CommitMessageError` toasts through `notify`. `isGeneratingMessage` drives the label and ignores a second click. A window close cancels the run with the rest of `work`, which kills the child.
|
||||
- **Git and files.** Git gets paths as literal pathspecs (`GIT_LITERAL_PATHSPECS=1`, so `pages/[id].vue` is one file). A changed file over `FileLimits.maxDiffFileBytes` (1 MB) keeps its row but loads no text: `GitFileChange.isTooBig` → `Diff.isTooBig`, and the Diff shows "Too big.". Saves are atomic (temp file, then rename, keeping permissions). Writes, creates, renames and deletes are refused when the entry's folder resolves (symlinks included) outside the project (`containedURL`). The watcher drops `IgnoreRules.walkIgnoredNames`, framework caches (`storage/framework/`, `bootstrap/cache/`, `.phpunit*`) and `files.exclude`.
|
||||
- **Processes.** Every new window (⇧⌘N, the Dock's New Window, Open Folder or Open Recent with no key window) is a new Helder process via `SystemActing.openNewInstance`: `NSWorkspace` with `createsNewApplicationInstance` in the bundle, `InstanceLauncher` (Foundation `Process`) under `swift run`. The folder travels as `-HelderProject <path>`, which `ProjectLocator.initialRoot` reads as its directory argument; a bare path could reach AppKit as a file to open. Switching projects (⌘O, Open Recent in a window) stays in the process. `AppName` renames the process to the project's title (the launcher is "Helder"), so Mission Control, the Dock and ⌘Tab tell projects apart. Windows are not restorable and `NSQuitAlwaysKeepsWindows` is off, so a launch opens exactly one window.
|
||||
- **Editor.** `EditorStore` shows exactly one file (`activePath`); opening another replaces it, and there are no tabs. Every `open` (Git view, Explorer, search, recent files, links) re-reads the file from disk; the disk wins. Unsaved edits do not outlive switching: opening any file, the same one included, while the open file is dirty asks Save / Don't Save / Cancel (with `editor.autoSave` on it saves silently). Cancel moves nothing, Explorer selection included; a failed save keeps the dirty file open. `dirtyPaths` is therefore at most the open file plus a vanished-file buffer, and the close/quit flow asks about each. ⌘W closes the open file (asking first when dirty) and shows the empty state. `EditorBar` above the code shows the type badge, the path, the unsaved dot and `+N`/`−N`, then a Preview button for Markdown and a Diff button for a changed file (`EditorPresentation.barButtons`). A changed file shows Actual (the live buffer with changed lines marked), an unchanged one plain code; ⌘M only flips Markdown between code and preview. The session stores the open file and its mode and side; a stored `openTabs` list and unknown modes are ignored.
|
||||
@@ -43,7 +44,8 @@ Sources/HelderCore/
|
||||
Diff/ Diff models, LineDiff, DiffViews, ViewMode
|
||||
Files/ FileNode + FileTree, PathUtils, FileType (language, badge), limits + ignore rules, ContextActions (menus)
|
||||
Git/ GitStatus/Change/GitSnapshot, Porcelain parsing (incl. behind/upstream), GitDerivation (rows, commit text),
|
||||
GitSections (the four sections, InlineDiff), GitConsole (echo, input parsing, line classifier), GitBranches
|
||||
GitSections (the four sections, InlineDiff), GitConsole (echo, input parsing, line classifier), GitBranches,
|
||||
GitCommitLog (recent commits, relative time), CommitMessagePrompt (staged-diff prompt, answer cleaning)
|
||||
Schema/ SchemaDump (tolerant schema.json decoding), SchemaModel, SchemaLayout (default lanes), SchemaGeometry
|
||||
(lines, fit, zoom, centre), SchemaHighlight + SchemaSearch, ArtisanConsole, SchemaCommandPrompt, SchemaPaths
|
||||
Highlight/ SyntaxHighlighter and one grammar per language
|
||||
@@ -53,9 +55,11 @@ Sources/HelderCore/
|
||||
Symbols/ PHP symbol models and line parsers
|
||||
Sources/HelderServices/
|
||||
Files/ FileServicing (read, readText → .binary), FileService, FSEventsWatcher + WatchDebounce
|
||||
Agent/ CommitMessageGenerating + ClaudeCommitMessageService (`claude -p`, prompt on stdin, no tools, 90 s)
|
||||
Git/ GitServicing, GitService, GitDirectory (worktrees)
|
||||
Logging/ Log (unified log) + FileLogger (~/Library/Logs/Helder/helder.log)
|
||||
Process/ ProcessRunner (`run`, and `stream` for line-by-line output), ExecutableLocator, ChildReaper, InstanceLauncher
|
||||
Process/ ProcessRunner (`run`, `run(input:)` for stdin, `stream` for line-by-line output), ExecutableLocator
|
||||
(`.agent` adds ~/.local/bin and ~/.claude/local), ChildReaper, InstanceLauncher
|
||||
Project/ ConfigService, RecentStores, SessionStore, ProjectLocator
|
||||
Schema/ SchemaServicing + SchemaService (`php artisan helder:schema` via PHPLocator, the dump), SchemaLayoutPersisting
|
||||
Search/ SearchServicing + RipgrepSearchService, ProjectScanner (rg, or a Swift walk)
|
||||
@@ -68,7 +72,7 @@ Sources/HelderUI/
|
||||
Components/ OverlayShell/OverlayCard/OverlayHeader/OverlayFooter, ContextMenuPanel/Header/Row/Separator,
|
||||
Keycap, EscChip, Primary/Secondary button styles, focusRing, SegmentButton, Splitter,
|
||||
ButtonGroup (pane toggles, toolbar), Tooltip, TypeBadge, PanelLabel/PanelHeader, Hairline, selectableRow, Blink
|
||||
GitView/ the full-screen Git view (⌘G): top bar, commit block, sections with inline diffs, console, branches;
|
||||
GitView/ the full-screen Git view (⌘G): top bar, commit block, sections with inline diffs, console, branches, commits;
|
||||
GitIcon and the console log/input the Schema view reuses
|
||||
SchemaView/ the full-screen Schema view (⌘D): top bar, table list, canvas with cards and lines, detail panel,
|
||||
artisan console, the no-dump and command-missing states
|
||||
|
||||
+25
-5
@@ -50,7 +50,7 @@ From top to bottom:
|
||||
|
||||
### Top bar
|
||||
|
||||
`[ git ]`, the current branch in amber, and its place against the upstream: `in sync with origin`, `N ahead of origin`, `N behind origin`, `N ahead · M behind origin`, or `no upstream`. Ahead and behind come from the status header. On the right: **Pull** (with `↓N` when behind), **Push** (with `↑N` when ahead) and **Close** (`⌘G`).
|
||||
`[ git ]`, the current branch in amber, and its place against the upstream: `in sync with origin`, `N ahead of origin`, `N behind origin`, `N ahead · M behind origin`, or `no upstream`. Ahead and behind come from the status header. On the right: **Pull** (with `↓N` when behind), **Push** (with `↑N` when ahead), **Clean up** and **Close** (`⌘G`).
|
||||
|
||||
Opening the view reads the author and the branches, re-reads git and runs `git fetch origin`, but only when an origin exists, so ahead/behind are current.
|
||||
|
||||
@@ -58,14 +58,21 @@ Opening the view reads the author and the branches, re-reads git and runs `git f
|
||||
- **Push** runs `git push`; when git reports there is no upstream, it retries with `git push -u origin <branch>`. `Cmd+P` pushes from anywhere.
|
||||
- Both time out after 120 seconds. While one runs its button reads `Pulling…` / `Pushing…`, the console header says so, and a second pull or push is ignored. Git never prompts: no terminal prompt, no editor, no pager.
|
||||
- The result is a toast: `Pushed N commits to origin/<branch>`, `Pulled N commits from origin/<branch>`, or `Push failed` / `Pull failed` with git's first error line.
|
||||
- **Clean up** goes back to the staged state: every unstaged change is reverted to the index (`git restore --worktree -- .`, only when a tracked file has unstaged changes) and every untracked file and folder is removed (`git clean -fd`, only when there are new files). Staged changes stay, and so do ignored files (`.env`, `vendor/`, `node_modules/`). It always asks first, whatever `git.confirmDiscard` says: `Clean up N files?` with **Clean up** in the destructive style. The toast reads `Cleaned up N files` or `Clean up failed` with git's first error line; the Explorer and the open file follow the disk. The button is disabled (dimmed, arrow cursor) when nothing is unstaged or untracked, during a merge conflict, or while a pull or push runs.
|
||||
|
||||
### Commit block
|
||||
|
||||
- The **commit message**: always one lowercase line. Capitals become lowercase and line breaks become spaces as the user types or pastes, so `Enter` never starts a second line. The field grows with wrapped text from 56 to 180 points. An amber underline shows focus.
|
||||
- **Gen. Commit Message**, a small secondary button with the pass-on spark, first on the left of the footer. It asks the Claude CLI for a message for the **staged** changes and puts the answer in the message field, replacing the draft, then focuses the field. The answer goes through the same one-lowercase-line rule as typed text.
|
||||
- The prompt holds the writing rules (one sentence, no quotes, no prefix, no body, English, a verb in the third person or past tense, two separate changes joined with ` - `), three example messages, `git diff --cached --stat` in full and `git diff --cached` cut after 60 000 characters (the prompt says when it is cut).
|
||||
- It runs `claude -p --output-format text --no-session-persistence --strict-mcp-config --disable-slash-commands --tools ""` with the prompt on stdin, in the project root, with the CLI's default model and no tools; `claude` is looked up on PATH, Homebrew, `~/.local/bin` and `~/.claude/local`. The run times out after 90 seconds. The first non-empty line of the answer, without surrounding quotes or backticks, becomes the message.
|
||||
- While it runs the label reads `Generating…` and a second click is ignored. It is disabled (dimmed, arrow cursor) when nothing is staged or while it runs.
|
||||
- A failure leaves the draft alone and toasts `Couldn't generate a commit message` with the reason: `claude not found`, the CLI's first error line, or `timed out`.
|
||||
- The **author**, `user.name <user.email>` from git config.
|
||||
- A `⌘↵ commits` hint.
|
||||
- A **Commit** split button: `Commit N files`, or `Nothing staged`. It is amber when something is staged and the message is not empty, grey otherwise. The caret opens **Commit** and **Commit and push**.
|
||||
- A commit always runs `git commit -m`, also from the grey button, so git's own refusal shows in the console. On success the message clears and a toast says `Committed N files` with the subject; on failure the message stays, a toast says `Commit failed`, and an empty message takes the focus back. **Commit and push** pushes only after a successful commit.
|
||||
- Three buttons side by side: **Add, Stage & Commit** and **Commit** (`Commit N files`, or `Nothing staged`), both secondary buttons with a hairline border, and **Commit and push**, the primary one. Commit and push is amber when something is staged and the message is not empty, grey otherwise. With nothing staged Commit and Commit and push are disabled: dimmed, the arrow pointer, and a click does nothing.
|
||||
- **Add, Stage & Commit** stages every unstaged path (edits, deletions and new files) with `git add -- <paths>`, then commits as **Commit** does, without a push. With an empty message it stages nothing, runs no git, and the message field takes the focus. It is disabled when there are no changes at all, during a merge conflict (staging a conflicted file marks it resolved), and while a push or pull runs. When `git add` fails, no commit runs.
|
||||
- With files staged a commit always runs `git commit -m`, also from the grey button, so git's own refusal (an empty message) shows in the console. `Cmd+Return` always runs it, staged files or not. On success the message clears and a toast says `Committed N files` with the subject; on failure the message stays, a toast says `Commit failed`, and an empty message takes the focus back. **Commit and push** pushes only after a successful commit.
|
||||
|
||||
### Sections
|
||||
|
||||
@@ -83,6 +90,10 @@ Four colour-coded sections, each only when it has rows, in this order:
|
||||
- **Discard** reverts unstaged changes (modified and deleted files from the index, new files removed). **Discard** and **Delete** ask first (`git.confirmDiscard`, default on); **Restore** never asks. Stage and unstage never ask.
|
||||
- **Right-click** a row: **Open in editor** (left out for a deleted file), **Pass on reference**, **Copy reference**. Open in editor and Pass on reference close the view first.
|
||||
|
||||
### Bottom strip
|
||||
|
||||
230pt tall: the console left, the branches right, sharing the width equally up to 820pt each. When the room left over is at least 260pt, the **commits** list fills it, after a hairline; otherwise that room stays empty.
|
||||
|
||||
### Console
|
||||
|
||||
The bottom-left panel. Every action logs the exact git command (`$ git add -- path`) and streams its output line by line, coloured by kind: errors, hints, staged and unstaged lines of `status`, and the ref update of a push. Below the log, a `$ git` input runs typed commands, with or without a leading `git`. `clear` empties the log, a bare `log` runs `log --oneline --decorate -n 30`, and `Up` recalls earlier input. Commands, typed or from buttons, run one at a time. The log keeps the last 400 lines.
|
||||
@@ -91,6 +102,14 @@ The bottom-left panel. Every action logs the exact git command (`$ git add -- pa
|
||||
|
||||
The bottom-right panel: **local** branches, then **remote · origin**. The current branch is marked; a remote branch with a local counterpart reads `tracked`. A click switches (`switch →`); a remote branch without a local one is checked out as a new tracking branch (`checkout →`). While there are uncommitted changes, switching is locked: the header says so, the other branches dim, and a click shows a toast instead of running git.
|
||||
|
||||
**Right-click** a branch other than the current one: the menu, headed by the branch name, has one item, **Merge into <current>**, which runs `git merge --no-edit <branch>` (local and `origin/` branches alike). With uncommitted changes the item is disabled: dimmed, with the arrow and the tooltip `Commit or discard your changes first`; `Up`/`Down` skip it and a click does nothing. The current branch opens no menu. The merge always asks first, `Merge <branch> into <current>?`, and runs only on **Merge**. A merge that stops on conflicts says `Merge conflict — resolve, then commit`.
|
||||
|
||||
### Commits
|
||||
|
||||
The bottom strip's right end on a wide window, headed `[ commits ]` with the current branch muted on the right. A scrolling list of the last 30 commits of the current branch (HEAD), newest first, one row each: the short hash (amber), the subject on one line, and right-aligned `author · 3 h ago`. The relative time ticks along. Rows are read-only: no click, no hover, the arrow cursor. A repository without commits reads `no commits yet`; outside a repository `— no repository`.
|
||||
|
||||
The list is read when the view opens and after every command, with the branches.
|
||||
|
||||
### Empty states
|
||||
|
||||
- Not a repository: `— Not a git repository.`
|
||||
@@ -153,6 +172,7 @@ The second column. A standard project file tree.
|
||||
- The tree hides paths matched by `files.exclude` and, when `files.followGitignore` is on, paths ignored by git.
|
||||
- **Right-click** a file offers **Copy reference**, which copies the file's project-relative path to the clipboard (the file-level form of the editor's Copy reference).
|
||||
- A Markdown file (`.md`) also offers **Read aloud**, in its own group after the pass-on and copy items, in the Explorer. Helder reads the text with the system voice: headings, paragraphs, list items, quotes and table cells, with the markup and link URLs left out and code blocks skipped. The open file is read as it stands in the editor, unsaved edits included. A file with nothing to read shows `Nothing to read`. A new Read aloud replaces the one that is playing. A `$` is read as "dollar", except before a digit (`$5` stays "five dollars").
|
||||
- A `.log` file (any case) also offers **Tail log**, in its own group after the pass-on and copy items (after Read aloud when both apply). It opens a block at the bottom of the Explorer, under the tree, about 40% of the column high: a header with `Tail` and the file name, a close button (`Stop tailing`) on the right, and a small live terminal that runs `tail -f <path>` in the project root. One tail runs at a time: Tail log on another file ends the running tail and starts a fresh one. The close button ends the tail and removes the block. A project switch or window close ends it, and a project always opens without one. The block has no splitter and no settings.
|
||||
|
||||
---
|
||||
|
||||
@@ -245,7 +265,7 @@ The bottom pane of the fourth column.
|
||||
|
||||
### Right-click in a terminal
|
||||
|
||||
Right-clicking in the agent pane or the terminal pane shows a menu without a header line. With a selection it holds **Copy**, **Paste**, a separator, **Read aloud selection**, a separator and **Plak**; the agent pane adds a separator and **Wait what?**. Without a selection it holds only **Paste**.
|
||||
Right-clicking in the agent pane or the terminal pane shows a menu without a header line. With a selection it holds **Copy**, **Paste**, a separator, **Read aloud selection**, a separator and **Plak**; the agent pane adds a separator and **Wait what?**. Without a selection it holds only **Paste**. The Explorer's tail block holds the same items minus **Paste** and **Wait what?**, so without a selection it opens no menu.
|
||||
|
||||
**Read aloud selection** reads the selected text with the system voice, as prose with the Markdown markup left out. A selection with no prose left, such as one code block, is read as it is. Blank text reads nothing and shows the toast "Nothing to read".
|
||||
|
||||
@@ -292,7 +312,7 @@ The pointer shows what a left click does at that spot. It depends only on what l
|
||||
|
||||
- **Pointing hand** only where a left click runs an action: buttons (title-bar toggles and tools, `?`, Preview, Diff, the Git view's buttons and section headers, dialog buttons, Collapse, search chips), clickable rows (Git view file rows and switchable branches, Schema table rows, cards and relation rows, Explorer rows, search results, recent files and projects, launcher rows, symbol popup rows, context-menu items) and the project name in the title bar. Never on a view that only reacts to a right-click, a tooltip or hover.
|
||||
- **I-beam** where a click places a caret or starts a selection: the code (also below the last line), the Markdown preview, both terminals, the commit message, the Git console and every overlay input.
|
||||
- **Arrow** everywhere else: labels, headers, folder labels, the gutter, the status bar, scrims, toasts, empty states, and a disabled button such as Commit with nothing staged.
|
||||
- **Arrow** everywhere else: labels, headers, folder labels, the gutter, the status bar, scrims, toasts, empty states, a disabled button such as Commit with nothing staged, and a disabled context-menu item.
|
||||
- With an overlay open, every column behind it, and the Git view, shows the arrow; the overlay's own buttons, rows and inputs keep theirs.
|
||||
- A splitter shows a resize arrow; `Cmd` over a known PHP class name in the code shows the hand. No other pointers are used: the Schema canvas pans with the arrow, without a grab hand.
|
||||
|
||||
|
||||
@@ -110,6 +110,26 @@ After the action:
|
||||
- A deleted file closes in the File view.
|
||||
- A [notification](notifications.md) confirms each action, or says why it failed.
|
||||
|
||||
### Tail a log file
|
||||
|
||||
Right-click a `.log` file and choose **Tail log**. A block opens at the bottom of the Explorer, under the tree:
|
||||
|
||||
```text
|
||||
|-------------------------------------|
|
||||
| TAIL laravel.log x |
|
||||
|-------------------------------------|
|
||||
| [2026-11-04 10:12:01] local.INFO ...|
|
||||
| [2026-11-04 10:12:03] local.ERROR ..|
|
||||
+-------------------------------------+
|
||||
```
|
||||
|
||||
- It is a small live terminal that runs `tail -f` on the file, so new lines show up as they are written.
|
||||
- It takes about 40% of the column. It has no splitter.
|
||||
- One tail runs at a time. Tail log on another file replaces the running one.
|
||||
- Click `x` (**Stop tailing**) to end the tail and close the block.
|
||||
- Switching projects or closing the window ends the tail. A project always opens without one.
|
||||
- Select text to copy it. Right-click a selection for **Copy**, **Read aloud selection** and **Plak**.
|
||||
|
||||
### Stay up to date
|
||||
|
||||
The tree follows the disk. Helder watches the project folder and reloads the tree after a short pause when files change. `Cmd+R` reloads it by hand, together with git and the open file.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Git commit form
|
||||
|
||||
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.
|
||||
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 Gen. Commit Message button, the author, and the three commit buttons.
|
||||
|
||||
[Guide index](index.md) · Related: [Git](git.md), [Notifications](notifications.md), [Keyboard shortcuts](keyboard-shortcuts.md)
|
||||
|
||||
@@ -10,21 +10,21 @@ The commit form is the block at the top of the [Git](git.md) view, under its top
|
||||
+----------------------------------------------------------------------------+
|
||||
| (1) fix the login form_ |
|
||||
|----------------------------------------------------------------------------|
|
||||
| (2) Jonathan <jonathan@example.com> (3) Cmd+Enter commits |
|
||||
| (4) [ Commit 2 files | v ] |
|
||||
| (2) [ * Gen. Commit Message ] (3) Jonathan <jonathan@example.com> |
|
||||
| (4) Cmd+Enter commits |
|
||||
| (5) [ Add, Stage & Commit ] (6) [ Commit 2 files ] (7) [ Commit and push ] |
|
||||
+----------------------------------------------------------------------------+
|
||||
(5)
|
||||
+------------------------+
|
||||
| v Commit |
|
||||
| ^ Commit and 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**.
|
||||
2. **Gen. Commit Message button**: asks Claude to write the message for your staged changes. See [Generate a message](#generate-a-message).
|
||||
3. **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.
|
||||
4. **Hint**: `⌘↵ commits`.
|
||||
5. **Add, Stage & Commit button**: stages every change, new files included, then commits. No push.
|
||||
6. **Commit button**: `Commit N files`, or `Nothing staged`. Commits without pushing.
|
||||
7. **Commit and push button**: the amber one. Commits, then pushes.
|
||||
|
||||
In the app all of row 2 to 7 is one footer line: the Gen. Commit Message button, the author and the hint on the left, the three commit buttons on the right.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -38,17 +38,30 @@ The commit form is the block at the top of the [Git](git.md) view, under its top
|
||||
- This keeps dictated or pasted text as one short subject line.
|
||||
- The draft stays in the field while the view is closed.
|
||||
|
||||
### Generate a message
|
||||
- Stage the files first. Then click **Gen. Commit Message**.
|
||||
- Helder sends the staged changes to the Claude Code CLI (`claude`, the same tool the agent terminal runs) and asks for one short sentence, such as `Adds a new button on the header to navigate to profile`. Two separate changes are joined with ` - `.
|
||||
- The answer replaces what is in the field, as one lowercase line, and the cursor goes to the field so you can edit it before you commit. Nothing is committed for you.
|
||||
- While Claude writes, the button reads `Generating…` and further clicks do nothing. It is dimmed when nothing is staged.
|
||||
- Only the staged diff is sent. A very large diff is cut after 60 000 characters; the list of changed files is always sent in full.
|
||||
- When it fails, your draft stays and a [notification](notifications.md) says `Couldn't generate a commit message`, with the reason: `claude not found` (install the Claude Code CLI), Claude's first error line (for example a sign-in problem), or `timed out` (after 90 seconds).
|
||||
|
||||
### Commit
|
||||
You can commit in three ways:
|
||||
You can commit in two ways:
|
||||
|
||||
- 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.
|
||||
|
||||
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).
|
||||
With nothing staged **Commit N files** and **Commit and push** are dimmed and do nothing; `Cmd+Enter` still runs `git commit`. With files staged a click always runs `git commit`, also with an empty message, so git's own refusal shows in the [console](git.md#console).
|
||||
|
||||
### 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).
|
||||
- Click **Commit and push**. It is amber when at least one file is staged and the message is not empty, grey otherwise. It commits, and when the commit succeeds it pushes, the same as the **Push** button. See [Pull and push](git.md#pull-and-push).
|
||||
|
||||
### Add, Stage & Commit
|
||||
- Click **Add, Stage & Commit** to stage every change and commit it in one go: edited, deleted and new files. It does not push.
|
||||
- With an empty message nothing is staged and nothing runs; the cursor goes to the message field.
|
||||
- It is dimmed and does nothing when there are no changes, during a merge conflict (resolve it first), or while a push or pull runs.
|
||||
- When staging fails, for example because another git process holds the index, nothing is committed. The error is in the [console](git.md#console).
|
||||
|
||||
### After a commit
|
||||
- The message field clears.
|
||||
|
||||
@@ -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 view rows and the Commit button, 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 branches, in the Explorer, in the code, in the Diff, and in the two terminal panes.
|
||||
|
||||
[Guide index](index.md) · Related: [Git](git.md), [Explorer](explorer.md), [Dialogs](dialogs.md), [Pass on to Agent](pass-on-to-agent.md), [File view](file-view.md), [File view: Diff](file-view-diff.md)
|
||||
|
||||
@@ -21,7 +21,7 @@ Helder draws its own right-click menu, in the same dark style everywhere. This p
|
||||
+----------------------------------------+
|
||||
```
|
||||
|
||||
1. **Header**: what you clicked: a path, or the project name ending in `/`. Folder, code, Diff, terminal and commit menus have no header.
|
||||
1. **Header**: what you clicked: a path, or the project name ending in `/`. Folder, code, Diff and terminal menus have no header.
|
||||
2. **Highlighted item**: an amber rule on the left. The first item is highlighted when the menu opens.
|
||||
3. **Separator**: a thin line between groups of items.
|
||||
4. **Destructive item**: Delete reads in amber-deep, so it stands out.
|
||||
@@ -79,20 +79,6 @@ Right-click a file row in the [Git](git.md) view. The header is 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
|
||||
+----------------------------------------+
|
||||
| v Commit |
|
||||
| ^ Commit and push |
|
||||
+----------------------------------------+
|
||||
```
|
||||
|
||||
- **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
|
||||
|
||||
Right-click a file in the [Explorer](explorer.md). The header is the file's path.
|
||||
@@ -132,6 +118,16 @@ A Markdown file (`.md`) in the Explorer gets one extra group after the copy item
|
||||
|
||||
- **Read aloud**: reads the headings, paragraphs, list items, quotes and table cells aloud. Markup and link addresses are left out, and code blocks are skipped. The open file is read as it stands in the editor, unsaved edits included. A file with nothing to read shows `Nothing to read`. Reading another file stops the first one.
|
||||
|
||||
A `.log` file gets one extra group after the copy items:
|
||||
|
||||
```text
|
||||
|----------------------------------------|
|
||||
| >_ Tail log |
|
||||
|----------------------------------------|
|
||||
```
|
||||
|
||||
- **Tail log**: opens the [tail block](explorer.md#tail-a-log-file) at the bottom of the Explorer, running `tail -f` on the file. A running tail on another file stops first.
|
||||
|
||||
- **Rename file**: opens the [name prompt](dialogs.md#name-prompt) with the current name. Only the part before the extension is selected, so typing keeps the extension.
|
||||
- **Delete file**: always asks first; see [Dialogs](dialogs.md#delete-file-or-folder). The file is deleted for good, not moved to the Trash.
|
||||
|
||||
@@ -282,6 +278,8 @@ Without a selection:
|
||||
+----------------------------------------+
|
||||
```
|
||||
|
||||
The [tail block](explorer.md#tail-a-log-file) in the Explorer has the same menu without **Paste** and **Wait what?**. Without a selection it opens no menu.
|
||||
|
||||
- **Copy** (only with a selection): copies the selected terminal text.
|
||||
- **Paste**: types the clipboard text into that pane, as a normal paste would. With an empty clipboard nothing happens.
|
||||
- **Read aloud selection** (only with a selection): reads the selected text with the system voice. Markdown markup is left out. With nothing left to read, a [notification](notifications.md) says `Nothing to read`. Stop it with **Stop** in the [title bar](title-bar.md#read-aloud).
|
||||
@@ -319,7 +317,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 and the Commit button behind the git menus.
|
||||
- [Git](git.md): the rows and branches behind the git menus.
|
||||
- [Explorer](explorer.md): the rows behind the file, folder and empty-space menus.
|
||||
- [File view: Diff](file-view-diff.md): where Show diff leads.
|
||||
- [Notifications](notifications.md): the confirmations after Copy and file actions.
|
||||
|
||||
Reference in New Issue
Block a user