342 lines
31 KiB
Markdown
342 lines
31 KiB
Markdown
# Helder Functional Design
|
||
|
||
This document describes how Helder behaves: every panel, interaction, and state, at the functional and UX level. It does not cover technical architecture. It is written to match the agreed user interface exactly.
|
||
|
||
Helder is a dark, AI-first macOS code editor for reviewing and navigating code written by an AI agent. It opens one project per window and has no light mode and no theme toggle.
|
||
|
||
---
|
||
|
||
## 1. Window layout
|
||
|
||
The window has three horizontal regions stacked top to bottom:
|
||
|
||
1. A top bar.
|
||
2. The main body, split into three resizable columns.
|
||
3. A bottom status bar.
|
||
|
||
The three columns of the body, left to right, are:
|
||
|
||
1. **Explorer** (file tree)
|
||
2. **Editor** (one file and its code)
|
||
3. **Agent and Terminal**, a single column split into two stacked panes: the Claude agent pane on top and a shell terminal below it.
|
||
|
||
Git is not a column: the full-screen **Git view** (section 3) covers all three regions while it is open. In a Laravel app the full-screen **Schema view** (section 4) does the same; the two never show together.
|
||
|
||
Every boundary between panes is a draggable splitter. The vertical splitters between the three columns adjust their widths. The horizontal splitter between the agent pane and the terminal pane adjusts their heights. Splitter positions persist across launches. Panes have sensible minimum widths and heights so they cannot be collapsed to nothing by dragging.
|
||
|
||
The interface is dark only. Code is always syntax highlighted, in every panel and every view.
|
||
|
||
---
|
||
|
||
## 2. Top bar
|
||
|
||
The top bar contains, left to right:
|
||
|
||
- The Helder wordmark.
|
||
- A breadcrumb showing the path to the active file, for example `console / src / Http / Controller / UserController.php`. The breadcrumb is **display only** for now. It is not clickable and does not navigate.
|
||
- Centred on the window, the **pane toggles**: Explorer · File · Claude. Each shows or hides one column, all on by default (see Pane toggles in section 10). The breadcrumb truncates before it reaches them.
|
||
- On the right, the toolbar: **`Git N`** (`Cmd+G`) toggles the Git view (section 3); N counts the changed files, a file both staged and unstaged once, and the count is left out when there are none. In a Laravel app (an `artisan` file in the root) **Schema** (`Cmd+D`) follows it and toggles the Schema view (section 4); elsewhere it is left out. **Search** (`Cmd+F`) is an action; **Fluid** (`Cmd+L`) and **Hidden** (`Cmd+.`) are toggles. Then `?` for the keyboard shortcuts.
|
||
- While Helder reads aloud, a **Stop** toggle appears left of **Git**, in the same style and switched on. A click switches it off and stops the reading; the button then goes away. It also goes away when the reading reaches the end, and a project switch or window close stops the reading.
|
||
|
||
---
|
||
|
||
## 3. Git view
|
||
|
||
A full-screen view over the whole window (top bar, columns and status bar) for staging, committing, pulling, pushing and switching branches. `Cmd+G`, the `Git N` toggle and View › Show Git open it. `Cmd+G`, `Esc` and its **Close** button close it. Dialogs, context menus, search, the Diff and toasts sit above it. The columns stay mounted under it, so terminals keep running and the editor keeps its state. Opening it puts the keyboard in the commit message; closing it hands the keyboard back to the column that had it. It is not persisted: a project always opens with it closed.
|
||
|
||
While it is open, the columns' row, focus and editor keys rest. `Cmd+Return` commits, except from the console input. The other `Cmd` shortcuts keep working. `Cmd+C` with no selection, outside a terminal, opens the view on the commit message. `Esc` closes the topmost layer: an overlay (context menu, dialog, search, Diff) first, then the Git view; with neither open it reaches the terminal.
|
||
|
||
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`).
|
||
|
||
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.
|
||
|
||
- **Pull** runs `git pull --no-rebase`: diverged branches merge instead of failing on an unset `pull.rebase`.
|
||
- **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.
|
||
|
||
### 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.
|
||
- 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.
|
||
|
||
### Sections
|
||
|
||
Four colour-coded sections, each only when it has rows, in this order:
|
||
|
||
1. **staged**: every staged row, whatever its status. Row and bulk action: **Unstage** / **Unstage all**.
|
||
2. **changed**: unstaged edits to tracked files, including renames and conflicts. **Discard** and **Stage**.
|
||
3. **new · untracked**: **Delete** and **Stage**.
|
||
4. **deleted**: **Restore** and **Stage**.
|
||
|
||
- A header shows the name, a count badge and the bulk actions; a click folds the section.
|
||
- A row shows a chevron, a status badge (`A`, `M`, `D`, `R`, `U`), the path (folder dim, name bright, struck through when deleted), `+N` / `−N`, and its actions. A click expands an inline side-by-side diff of that row's half, last commit (or index) left and working tree right, with 3 lines of context around each change and longer unchanged runs folded into `⋯ N unchanged lines`. A file over the diff cap shows `Too big.`.
|
||
- A merge conflict (`UU`, `AA`, `DD`, or any `U`) is one unstaged `U` row in **changed**, never a staged row, and does not count toward `Commit N files`. Its badge is red, a red flag after the path has the tooltip `Merge conflict — resolve, then Stage`, and the row has a red left bar and a faint red fill. Its inline diff is the last commit against the file on disk, conflict markers included.
|
||
- A conflicted row offers only **Stage**: staging marks the resolution.
|
||
- **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.
|
||
|
||
### 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.
|
||
|
||
### Branches
|
||
|
||
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.
|
||
|
||
### Empty states
|
||
|
||
- Not a repository: `— Not a git repository.`
|
||
- Clean working tree: `— No changes. The working tree is clean.`
|
||
|
||
---
|
||
|
||
## 4. Schema view
|
||
|
||
A full-screen view, drawn like the Git view, that shows the database of a Laravel app as a diagram of tables and foreign-key lines. It exists only in a Laravel app: a project with an `artisan` file in its root. Elsewhere there is no **Schema** button, `Cmd+D` does nothing and View › Show Schema is disabled. `Cmd+D`, the **Schema** toggle and View › Show Schema open it; `Cmd+D`, `Esc` and its **Close** button close it. Opening it closes the Git view, and opening the Git view closes it. Dialogs, menus, search and toasts sit above it, and the columns stay mounted under it. It is not persisted: a project always opens with it closed.
|
||
|
||
Helder reads the diagram from `database/helder/schema.json`, which the app's own Artisan command `app/Console/Commands/HelderSchemaCommand.php` (`php artisan helder:schema`) writes. The file's contract is in [schema.md](schema.md).
|
||
|
||
While it is open, the columns' row, focus and editor keys rest, as over the Git view; `Cmd+Return` and `Cmd+C` do nothing. `Esc` closes the topmost layer: an overlay first, then the table selection, then the table search's text (only while the search has the keyboard), then the view.
|
||
|
||
### States
|
||
|
||
- **No command yet**: the app has no `HelderSchemaCommand.php`. The body shows `[ NO COMMAND YET ]`, a line that names the dump and the command, **Generate command** and **Copy prompt**, and a scrollable, selectable preview of the prompt. **Generate command** closes the view and pastes the prompt into the Claude prompt without sending it (toast `Passed to agent` · `Command prompt`). **Copy prompt** copies it (toast `Copied prompt`). The top bar reads `no command yet`, its Run button is disabled and the command path is hidden.
|
||
- **No dump yet**: the command exists, the dump does not. `[ NO DUMP YET ]`, a line about `database/helder/schema.json`, the Run button and `$ php artisan helder:schema`.
|
||
- **Diagram**: the table list, the canvas, and the detail panel while a table is selected.
|
||
|
||
The view flips between these states by itself: the watcher re-checks the command and re-reads the dump when its modification date changes, so a command that Claude writes and runs in the terminal shows its diagram without a click. A re-read keeps the pan, the zoom and the card positions; new tables get a default place.
|
||
|
||
### Top bar
|
||
|
||
`[ schema ]`, then (with a dump) the database icon and `driver · database` in amber, then `no command yet`, `no dump yet` or `dumped 14:32 · 16 tables · 23 relations`. On the right: the command path as a text button (it closes the view and opens the command in the editor), the amber Run button (`Run helder:schema`, `Re-run helder:schema` once a dump exists, `Dumping…` while it runs; clicks are ignored then) and **Close** (`⌘D`).
|
||
|
||
### Running the command
|
||
|
||
Run executes `php artisan helder:schema` in the project root with Herd's php, else the `php` on `PATH`. The console opens and shows `$ php artisan helder:schema`, then each output line as it arrives: errors in amber, `INFO`/`DONE`/`Wrote …` lines in teal. Exit code 0 re-reads the dump and toasts `Schema dumped · N tables`; any other code keeps the console open and toasts nothing more. A run stops after 120 seconds. A dump that is not valid JSON shows its error in the console and toasts `Could not read the schema`.
|
||
|
||
### Table list
|
||
|
||
240pt, left. A search field (`Find a table`) filters by substring; `Return` selects and centres the first match. `[ TABLES ] 16`, or `[ TABLES ] 3 of 16` while filtering. One row per table in name order with its row count. Hovering a row lights the table on the canvas as hovering the card does; a click selects and centres it.
|
||
|
||
### Canvas
|
||
|
||
Cards (240pt wide; a 33pt header with the name and row count, then a 22pt row per column with `PK`/`FK`/`UQ`, the name and the type, `?` for nullable) and one cubic line per foreign key, from the key's row to the referenced row: hollow end at the key, filled end at the target. Drag the background or scroll to pan; `Cmd`/`Ctrl` + scroll and pinch zoom around the pointer, 30–200%. The control bottom right zooms out, shows the percentage, zooms in (×1.2) and fits all cards (48pt margin, at most 110%). The first dump fits itself. Drag a card to move it (a press that moves less than 4pt is a click); its position is saved per project in Helder's settings when the drag ends.
|
||
|
||
Hovering a table lights every line in or out of it in amber, outlines related tables and dims the rest to 30%; hovering a foreign-key row narrows that to one relationship. A click selects a table (click it again or the empty canvas to deselect). Without a focus, the search outlines matching cards and dims the rest. Only colour and opacity change, over 160ms; nothing moves.
|
||
|
||
### Detail panel
|
||
|
||
320pt, right, while a table is selected: the name, the row count and a close button; `[ COLUMNS ] N` with each column's type and flags (`PRIMARY · NOT NULL`, `FK → users.id · NULL`, `UNIQUE · NOT NULL`); `[ BELONGS TO ]` (outgoing keys) and `[ HAS MANY ]` (incoming keys), whose rows light the other table on hover and select and centre it on click; or `— No foreign keys in or out.`. Footer: **Pass on to Claude** closes the view and inserts `@schema:<table>` into the Claude prompt; **Copy name** copies it (toast `Copied table name`).
|
||
|
||
### Console
|
||
|
||
150pt, at the bottom, from the first run: `[ CONSOLE ] ARTISAN` and the run output, kept at the newest line, at most 400 lines. The chevron hides it until the next run.
|
||
|
||
---
|
||
|
||
## 5. Explorer panel
|
||
|
||
The second column. A standard project file tree.
|
||
|
||
- An `EXPLORER` header.
|
||
- Folders expand and collapse. Files and folders use type icons.
|
||
- Files that have changes show their status letter (`A`, `M`, `R`, `D`, `U`) on the right of their row; a conflict's `U` is red.
|
||
- **Left-click** a file opens it in the editor. The selected file is highlighted.
|
||
- 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").
|
||
|
||
---
|
||
|
||
## 6. Editor
|
||
|
||
The third and widest column. It shows exactly one file: a bar on top and the code below. Opening another file replaces it. Opening a file always reads it fresh from disk. Edits are written only with `Cmd+S` (or by `editor.autoSave`). Opening a file, the same one included, while the open file has unsaved edits asks **Save**, **Don't Save** or **Cancel**: Save writes and then opens, Don't Save drops the edits and opens, Cancel keeps the current file, its edits and the Explorer selection. A failed save keeps the file open. With `editor.autoSave` on, the file saves silently instead of asking.
|
||
|
||
### Editor bar
|
||
|
||
A row above the code, holding for the open file, left to right:
|
||
|
||
- A type badge and the project-relative path.
|
||
- An unsaved indicator (a dot) when the file has unsaved edits. This matters because auto-save is off by default (`editor.autoSave`).
|
||
- For a file with changes relative to its committed state, the change counts: additions in teal (`+N`) and deletions in amber-deep (`−N`).
|
||
- On the right, a **Preview** button on Markdown files and a **Diff** button on changed files. The button of the active view is highlighted.
|
||
|
||
With no file open, the bar stays empty.
|
||
|
||
### Views
|
||
|
||
All are presentations of the same file:
|
||
|
||
1. **The live file**: the current, editable version. On a changed file it marks the changed lines in place, with a teal tint, a 2px teal left rule, and a teal line number. There is no sign column, no `+` or `-` pair, and no removed line inline. A pure deletion has no current line to mark, so the neighbouring current line carries a 2px amber-deep rule on its top edge, or on its bottom edge at the end of the file. An unchanged file shows plain code.
|
||
2. **Preview**: Markdown files only. It shows the rendered document instead of the source. `Cmd+M` switches a Markdown file between code and the rendered preview.
|
||
3. **Diff**: changed files only. The editor expands to full screen, covering the other columns. The original file is on the left and the updated file is on the right, lines aligned. `Esc`, or a collapse control in the corner, returns to the live file.
|
||
|
||
A changed file opens on the live file, or on the Diff when `git.defaultDiffMode` is `diff`.
|
||
|
||
**On the live file, Show diff in the right-click menu of a marked line opens the Diff.** A left click on a marked line places the caret like on any line. The full-screen side-by-side view comes up on the pair of the whole file, HEAD against disk, and both panes scroll so that the right-clicked line sits in the middle of the window. A line near the start or the end of the file goes as near to the middle as the file permits. `Esc` returns to the live file. Hover does nothing, and there is no animation. A new file, where every line is marked, offers no Show diff.
|
||
|
||
Shared rules: teal is what the file holds now, amber-deep is what it held before. There is no green and no red anywhere. Syntax highlighting stays on in all modes. Line numbers follow `editor.lineNumbers` (default absolute).
|
||
|
||
### Editing behavior
|
||
|
||
- A file with no changes opens directly in a normal editable view with no Diff button, since there is nothing to diff.
|
||
- Editing follows the editor settings: indentation, indent width, trim trailing whitespace, insert final newline, word wrap, indent guides, whitespace rendering, and active-line highlight, all read from configuration (section 11).
|
||
- **Word wrap** follows `editor.wordWrap`: `markdown` (default), `on`, or `off`. When it is on, a line too wide for the pane folds onto the next row instead of scrolling sideways. Only the first row of a folded line carries a line number; the rows below it stay blank. Diff never wraps, because its two panes align row by row.
|
||
|
||
### Right-click in code
|
||
|
||
Right-clicking inside the code area, with or without a selection, shows a context menu without a header line, with two items:
|
||
|
||
1. **Copy reference**: copies a reference to the clicked location to the clipboard. With no selection it is path plus single line, for example `src/Http/Controller/UserController.php:42`. With a selection it is path plus start and end line, for example `src/Http/Controller/UserController.php:42-58`. The path is project-relative.
|
||
2. **Pass on to Agent**: opens a small inline input popup anchored near the click or selection, with a single optional text field. On confirm (`Enter`), it composes one line, the typed text followed by the same reference, and inserts it into the agent pane's input. The insert does **not** submit. It lands as a new, unsubmitted line and the cursor sits on a fresh line, so the action can be repeated to stack several references before the user sends. `Esc` cancels with no insert. An empty field passes the bare reference.
|
||
|
||
With a selection, a separator and **Read aloud selection** follow Copy reference. It reads the selected text with the system voice; in a Markdown file the selection is read as prose, the markup left out. The rendered Markdown preview has no Read aloud selection; its selection is not Helder's (use Read aloud on the file).
|
||
|
||
With a selection, a separator and **Plak** follow Read aloud selection. It sends the selected text to Plak, the user's scratchpad app; see [Plak](#plak). The preview has no Plak.
|
||
|
||
On a marked line of the live file (any marked line, blank lines and the space after the text included), a separator and a last item follow: **Show diff**, which opens the Diff centred on that line. A new file, Preview and the Diff's own menu have no Show diff.
|
||
|
||
### File-state behavior in the views
|
||
|
||
- **Added file**: only the current content exists. The live file marks every line as added, and Diff shows an empty left pane with the file on the right.
|
||
- **Deleted file**: only the committed content exists. The editor shows a short placeholder saying there is no updated version, and Diff shows the file on the left with an empty right pane.
|
||
- **Binary or unsupported file**: cannot be shown as editable text. The editor shows a short placeholder stating the file cannot be displayed, and the Preview and Diff buttons are not shown.
|
||
|
||
---
|
||
|
||
## 7. Agent pane
|
||
|
||
The top pane of the fourth column.
|
||
|
||
- A `claude` header with an `agent session` label.
|
||
- It is a single terminal running the configured agent command. On launch it auto-runs that command when `ai.autoLaunch` is on (default), using `ai.command` (default `claude`).
|
||
- The pane shows the live agent session and has an input line at the bottom.
|
||
- It receives the **Pass on to Agent** inserts from the editor: text arrives in the input as content, never as a submitted command, so the user can stack several and send when ready.
|
||
- It is one terminal only. There are no additional agent sessions in this version.
|
||
- Both terminals run with `TERM_PROGRAM=Helder` in their environment, so the agent can tell it runs inside Helder.
|
||
|
||
### Clean copy
|
||
|
||
The agent hands the user text to copy through one file, `.clean-copy` in the project root. The agent overwrites the file each time; Helder only reads it and never clears or deletes it.
|
||
|
||
- When the file's contents change while the project is open, Helder reads it after a short pause (writes are not atomic) and opens the **From Claude** popup, a card at the top of the window. The contents found when the project opens are the baseline and never open the popup. An empty or blank file, or the same text as last seen, opens nothing.
|
||
- The popup holds an editable text area. **Copy** (or `Cmd+Enter`) copies the text, with the user's edits, to the clipboard as plain text, closes the popup and shows the "Copied" toast. `Esc` or a click outside closes it without copying.
|
||
- With another overlay open, the newest text waits and opens once that overlay closes. New text while the popup is open replaces its text only when the user has not edited it.
|
||
- The popup opens in the project's own window even when that window is in the background; Helder does not take focus.
|
||
|
||
---
|
||
|
||
## 8. Terminal pane
|
||
|
||
The bottom pane of the fourth column.
|
||
|
||
- A header showing the shell and working directory, for example `zsh` and the project path.
|
||
- It is a single shell terminal. It uses the operating system default shell, or the override in `terminal.shell` when set.
|
||
- It behaves as a normal terminal for that shell.
|
||
- It is one terminal only. There are no additional terminals in this version.
|
||
|
||
### 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**.
|
||
|
||
**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".
|
||
|
||
### Plak
|
||
|
||
**Plak** (code and terminal menus, only with a selection) sends the selected text, trimmed, to Plak, the user's macOS scratchpad app. The text lands at the end of the Plak page as a new block; Plak opens (it starts if needed), scrolls to the block and takes the focus. Blank text sends nothing and shows the toast "Nothing to send". Text up to about 100 KB goes in the URL; longer text goes through the clipboard, and Helder restores the user's clipboard one second later. The URL contract is in [plak.md](plak.md).
|
||
|
||
---
|
||
|
||
## 9. Status bar
|
||
|
||
A bar across the bottom of the window. All items are **display only** for now; none are clickable.
|
||
|
||
- On the left: the current branch and the working-tree line totals, for example `feat/payments-balance +50 -38`.
|
||
- On the right: cursor position (`Ln, Col`), indentation (`Spaces: 4`), encoding (`UTF-8`), language (`PHP`), and the active view.
|
||
|
||
---
|
||
|
||
## 10. Global interactions
|
||
|
||
### Go to File (`Cmd+P`)
|
||
|
||
Opens a fuzzy file-open overlay. The user types part of a file name or path, the list narrows as they type, and selecting a result opens that file in the editor. `Esc` closes the overlay.
|
||
|
||
### Search (`Cmd+F`)
|
||
|
||
Opens a modal search overlay that searches the open file, file contents and file names at once. Like the Git view, it covers the whole window edge to edge, title bar and status bar included: no margin, no dimmed background, no card. It sits above the Git view when opened from there; toasts sit above it.
|
||
|
||
Inside the overlay:
|
||
|
||
- A query field at the top, with the type chips and a summary.
|
||
- Result columns below, each with a fixed share of the width that never changes when the focus moves:
|
||
- **This file** (30 percent, only when a file is open): matches in the open file.
|
||
- **Project** (45 percent, 65 percent without This file): matches found inside files, grouped by file, each match shown as the matching line with the query highlighted in context.
|
||
- **Files** (25 percent, 35 percent without This file): files whose name or path matches the query.
|
||
- The focused column shows its focus only by its amber title and count.
|
||
- Selecting a content result opens the file and jumps to that line. Selecting a file-name result opens that file.
|
||
- When nothing matches, each column shows a brief no-results message.
|
||
- `Esc` closes the overlay; there is no area to click to close it. The respected excludes are the same as the Explorer (`files.exclude` and, when on, gitignore).
|
||
|
||
### Mouse pointer
|
||
|
||
The pointer shows what a left click does at that spot. It depends only on what lies under the mouse.
|
||
|
||
- **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.
|
||
- 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.
|
||
|
||
### Pane resizing
|
||
|
||
Dragging any splitter resizes the adjacent panes. Positions persist across launches.
|
||
|
||
### Pane toggles
|
||
|
||
Each column toggle in the title bar shows or hides its column; `Cmd+1`, `Cmd+2` and `Cmd+3` do the same for Explorer, File and Claude. Hiding only hides: the terminals and their processes, the editor buffer and scroll, and the Explorer's expanded folders survive any number of hide/show cycles. The editor absorbs the freed width; with the editor hidden the Agent and Terminal column fills the rest. With every column off the body shows the editor background. A hidden column cannot take focus, and hiding the focused column hands the keyboard back to the window. The three flags are saved per project. A saved layout from before the Git view still loads; its Git width and flag are ignored.
|
||
|
||
### Session restore
|
||
|
||
When `session.restoreOnLaunch` is on (default), reopening a project restores the previously open file, its view, and the pane and splitter layout.
|
||
|
||
---
|
||
|
||
## 11. Configuration
|
||
|
||
Settings are project-scoped and live in a `.helder` folder in the project root.
|
||
|
||
- **`.helder/config.json`**: the user's settings. It is sparse and holds only the values the user has overridden.
|
||
- **`.helder/config.default.json`**: the full set of defaults, with a default for every value. Helder regenerates this file on launch from its built-in defaults, so it always matches the installed version and serves as live documentation of every available setting. The app never reads user edits from this file.
|
||
- **Effective value** of any setting: the value from `config.json` if present, otherwise the value from `config.default.json`, merged key by key.
|
||
- There is no theme file. The code font and size are built in; `Cmd+0`, `Cmd++` and `Cmd+−` zoom the editor, Diff and terminal text.
|
||
|
||
Settings that affect behavior described above include indentation and editor display, file and search excludes, the default diff mode (`updated` or `diff`), the git discard confirmation, the terminal shell override, the agent auto-launch and command, and session restore.
|
||
|
||
---
|
||
|
||
## 12. States and edge cases summary
|
||
|
||
- **No project open**: the window shows an empty state inviting the user to open a project folder.
|
||
- **Clean working tree**: the Git view shows its clean message; the Explorer still shows the full tree.
|
||
- **Unchanged file open**: normal editable view, no Diff button.
|
||
- **Added or deleted file**: views behave as described in section 6.
|
||
- **Binary or unsupported file**: placeholder, no Preview or Diff button.
|
||
- **Search with no matches**: per-column no-results messages.
|
||
- **Agent command not available**: the agent pane is a terminal, so a missing or failing command surfaces as ordinary terminal output in that pane.
|
||
|
||
---
|
||
|
||
## Open assumptions to confirm
|
||
|
||
- In the Search overlay, content matches are on the left (70 percent) and file-name matches on the right (30 percent). Confirm this assignment, or swap the two sides.
|
||
- The editor bar shows an unsaved indicator because auto-save defaults to off. Confirm that behavior is wanted.
|
||
- The Explorer right-click offers a file-level Copy reference (path only), consistent with the editor's Copy reference. Confirm this is in scope. |