adds a functional design
This commit is contained in:
@@ -0,0 +1,112 @@
|
|||||||
|
# Claude Code
|
||||||
|
|
||||||
|
The Claude Code pane is the top half of the right-hand column. It is a live terminal that runs the Claude agent in your project folder.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Command line](command-line.md), [Pass on to Agent](pass-on-to-agent.md), [Layout](layout.md), [Right-click menu](right-click-menu.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+--------------------------------------------+
|
||||||
|
| (1) |
|
||||||
|
| Claude Code v2 |
|
||||||
|
| ...agent output... |
|
||||||
|
| |
|
||||||
|
| > explain src/app.php:12-14 (2) |
|
||||||
|
| ``` |
|
||||||
|
| function handle() { ... } |
|
||||||
|
| ```_ |
|
||||||
|
| |
|
||||||
|
+===== (3) drag to resize ===================+
|
||||||
|
| (4) Command line |
|
||||||
|
+--------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Agent terminal**: the whole pane is the terminal. There is no header bar above it.
|
||||||
|
2. **Composer**: Claude's input line. Passed references land here and wait for you.
|
||||||
|
3. **Splitter**: the bar between the two panes. Drag it to change their heights.
|
||||||
|
4. **Command line**: the shell pane below. See [Command line](command-line.md).
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Auto-launch
|
||||||
|
- When a project opens, Helder starts your login shell in the project folder and runs the agent command in it.
|
||||||
|
- The default command is `claude`. Set another with `ai.command`.
|
||||||
|
- The shell loads your profile and rc files first, so tools such as Homebrew and nvm are on the path.
|
||||||
|
- No prompt line and no echo of the command appear. You see the agent straight away.
|
||||||
|
- Turn `ai.autoLaunch` off and the pane opens a plain shell instead. You can then start the agent yourself.
|
||||||
|
- If the command is missing or fails, you see the error as normal terminal output in the pane.
|
||||||
|
- The pane takes the keyboard when it starts, so you can type to Claude at once.
|
||||||
|
|
||||||
|
### Passed references arrive unsubmitted
|
||||||
|
- [Pass on to Agent](pass-on-to-agent.md) and the [note](notes.md) send text into Claude's composer.
|
||||||
|
- The text arrives as a paste. It is never submitted. You press `Enter` when you are ready.
|
||||||
|
- Each new pass starts on a fresh line when the composer already holds text. So you can stack several references, then send them as one message.
|
||||||
|
- After a pass, the keyboard moves to the Claude pane and a short [notification](notifications.md) confirms it ("Passed to agent").
|
||||||
|
- Nothing is sent when the agent process is not running.
|
||||||
|
|
||||||
|
### Restart after the process exits
|
||||||
|
- When the agent exits (for example after `/exit`), the pane shows a grey line: `[process exited] · press any key to restart`.
|
||||||
|
- Press any key in the pane. Helder starts the agent again with the current settings.
|
||||||
|
- Closing the window ends the agent. Opening another project in the window starts a fresh agent there.
|
||||||
|
- Hiding the Claude column with its [title bar](title-bar.md) toggle does not stop the agent. It keeps running and keeps its output.
|
||||||
|
|
||||||
|
### Copy and paste
|
||||||
|
- Select text with the mouse. The selection is copied to the clipboard straight away. No `Cmd+C` is needed.
|
||||||
|
- Right-click the pane for a small menu: **Copy** (only with a selection) and **Paste**. See [Right-click menu](right-click-menu.md).
|
||||||
|
- Paste through the menu behaves like a normal clipboard paste. Claude treats it as pasted text and does not submit it.
|
||||||
|
|
||||||
|
### Focus
|
||||||
|
- Click anywhere in the pane to type in it. The first click works even when the window is not active.
|
||||||
|
- While the pane has the keyboard, keys such as arrows, `Enter`, `Cmd+A`, `Cmd+C`, `Cmd+Left` and `Cmd+Right` go to the terminal, not to Helder.
|
||||||
|
- `Option+Left` and `Option+Right` jump one word back or forward in the composer.
|
||||||
|
- The pointer is an I-beam over the text and an arrow over the scroll bar.
|
||||||
|
|
||||||
|
### Zoom
|
||||||
|
- View > Zoom In (`Cmd++`), Zoom Out (`Cmd+-`) and Actual Size (`Cmd+0`) change the text size in both terminals and in the code.
|
||||||
|
- Each step is half a zoom level. The zoom is remembered across launches.
|
||||||
|
|
||||||
|
### Colours and font
|
||||||
|
- The pane uses Helder's dark terminal theme: a slate background, light text and an amber cursor and selection.
|
||||||
|
- The default font is IBM Plex Mono. The cursor is a blinking bar.
|
||||||
|
- Bold text keeps its own colour. It does not switch to the bright variant unless you turn on `terminal.boldIsBright`.
|
||||||
|
- Both terminals share these settings. Changes apply to the running terminal; the agent keeps running.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Enter` | Send the composer to Claude |
|
||||||
|
| Any key, after exit | Restart the agent |
|
||||||
|
| `Option+Left` / `Option+Right` | Jump one word back / forward |
|
||||||
|
| `Cmd++` / `Cmd+-` / `Cmd+0` | Zoom terminal and code text in / out / reset |
|
||||||
|
| Mouse select | Copy the selection |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
All settings live in `.helder/config.json`. See [Configuration](configuration.md).
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `ai.autoLaunch` | `true` | Run the agent command when the pane starts. Off gives a plain shell. |
|
||||||
|
| `ai.command` | `claude` | The command the pane runs. |
|
||||||
|
| `terminal.shell` | your `$SHELL` | The shell that runs the command. |
|
||||||
|
| `terminal.fontFamily` | IBM Plex Mono | Terminal font. |
|
||||||
|
| `terminal.fontSize` | built-in size | Terminal text size, before zoom. |
|
||||||
|
| `terminal.cursorStyle` | `bar` | `bar`, `block` or `underline`. |
|
||||||
|
| `terminal.cursorBlink` | `true` | Blinking cursor. |
|
||||||
|
| `terminal.boldIsBright` | `false` | Show bold text in the bright colour. |
|
||||||
|
| `terminal.scrollback` | `8000` | Lines kept for scrolling back. |
|
||||||
|
| `terminal.optionIsMeta` | `false` | Option acts as Meta (for a CLI's `Option+Enter`), but then Option no longer types accents. |
|
||||||
|
| `terminal.theme` | Helder dark | Background, foreground, cursor, selection and the 16 ANSI colours, as CSS colour strings. |
|
||||||
|
|
||||||
|
`terminal.lineHeight` and `terminal.letterSpacing` exist in the file but have no effect in the terminals.
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Command line](command-line.md): the shell pane below, with the same look and copy behaviour.
|
||||||
|
- [Pass on to Agent](pass-on-to-agent.md): send code references into Claude's composer.
|
||||||
|
- [Notes](notes.md): send the project note to Claude with `Cmd+P`.
|
||||||
|
- [Right-click menu](right-click-menu.md): Copy and Paste in the terminal.
|
||||||
|
- [Layout](layout.md): the splitter, the Claude toggle and column widths.
|
||||||
|
- [Configuration](configuration.md): where `ai` and `terminal` settings live.
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
# Code symbols
|
||||||
|
|
||||||
|
Helder knows the PHP classes, interfaces, traits and enums your project declares. `Cmd`+click a class name in the [file view](file-view.md) to see where it is declared and every place that uses it, in a popup in the middle of the window.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [File view](file-view.md), [Search](search.md), [Explorer](explorer.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------+
|
||||||
|
| (1) App\Models\User (2) 14 references |
|
||||||
|
+----------------------------------------------------------------+
|
||||||
|
| (3) DEFINED IN |
|
||||||
|
| >[php] app/Models/User.php (4)[class] 12 |
|
||||||
|
| (5) EXTENDS [Authenticatable] |
|
||||||
|
| IMPLEMENTS [MustVerifyEmail] |
|
||||||
|
| USES [HasFactory] [Notifiable] |
|
||||||
|
| (6) USED IN |
|
||||||
|
| [php] app/Http/Controllers/UserController.php 3 |
|
||||||
|
| (7) 18 public function show(User $user) |
|
||||||
|
| 42 $user = User::findOrFail($id); |
|
||||||
|
| [php] app/Policies/UserPolicy.php 2 |
|
||||||
|
| 11 public function view(User $user): bool |
|
||||||
|
+----------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Name**: the class name. With exactly one declaration, the full name with its namespace.
|
||||||
|
2. **Reference count**: how many lines use the name.
|
||||||
|
3. **Defined in**: each declaration, with badge, path and line number.
|
||||||
|
4. **Kind**: `class`, `interface`, `trait` or `enum`.
|
||||||
|
5. **Relations**: what the declaration extends, implements and uses (traits). Each name is a chip.
|
||||||
|
6. **Used in**: the files that use the name, each with its number of hits.
|
||||||
|
7. **Hit**: the line number and the line itself.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Find a clickable class name
|
||||||
|
- Hold `Cmd` while the keyboard is in the code. Every class name the project declares gets a thin amber underline.
|
||||||
|
- Move the pointer over an underlined name: the pointer turns into a hand.
|
||||||
|
- Names from `vendor/` count too, so framework classes are clickable.
|
||||||
|
- The underline shows in PHP files, including Blade templates.
|
||||||
|
|
||||||
|
### Open the symbol popup
|
||||||
|
- `Cmd`+click an underlined class name.
|
||||||
|
- The popup opens at once and shows "Searching..." until the results are in.
|
||||||
|
- The popup sits in the middle of the window over a dimmed background.
|
||||||
|
|
||||||
|
### Defined in
|
||||||
|
- Lists every declaration of the name, project files before `vendor/` files, up to 25.
|
||||||
|
- "No declaration in this project" means the name has no declaration Helder can find.
|
||||||
|
- Under a declaration, the **EXTENDS**, **IMPLEMENTS** and **USES** rows show related names.
|
||||||
|
- A related name the project declares lights amber when you hover it. Click it to load the popup for that name. Other names are grey and do nothing.
|
||||||
|
|
||||||
|
### Used in
|
||||||
|
- Lists every line that uses the name, grouped by file. `vendor/` is left out.
|
||||||
|
- Import lines (`use App\Models\User;`) and the declaration line itself are left out.
|
||||||
|
- Up to 300 files are listed.
|
||||||
|
- Click a hit to open that file at that line. Click a file header to open the file at its first hit.
|
||||||
|
- The line you land on moves to the middle of the pane and flashes amber.
|
||||||
|
|
||||||
|
### Move with the keyboard
|
||||||
|
- `Up` and `Down` move the highlight through the declarations first, then every hit.
|
||||||
|
- `Enter` opens the highlighted row.
|
||||||
|
- `Esc`, or a click outside the popup, closes it.
|
||||||
|
|
||||||
|
### Keeping up to date
|
||||||
|
- When files change on disk, Helder rebuilds its list of class names. New classes become clickable without a restart.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd` (hold) | Underline the clickable class names |
|
||||||
|
| `Cmd`+click | Open the symbol popup for a class name |
|
||||||
|
| `Up` / `Down` | Move through declarations and hits |
|
||||||
|
| `Enter` | Open the highlighted declaration or hit |
|
||||||
|
| `Esc` | Close the popup |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [File view](file-view.md): where you `Cmd`+click, and where a result opens.
|
||||||
|
- [Search](search.md): free-text search across all files.
|
||||||
|
- [Explorer](explorer.md): the opened file is revealed in the tree.
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
# Command line
|
||||||
|
|
||||||
|
The command line is the bottom half of the right-hand column. It is a normal shell, opened in your project folder.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Claude Code](claude-code.md), [Layout](layout.md), [Right-click menu](right-click-menu.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+--------------------------------------------+
|
||||||
|
| (1) Claude Code |
|
||||||
|
| |
|
||||||
|
+===== (2) drag to resize ===================+
|
||||||
|
| (3) |
|
||||||
|
| ~/code/myproject $ php artisan test |
|
||||||
|
| ... |
|
||||||
|
| ~/code/myproject $ _ |
|
||||||
|
| |
|
||||||
|
+--------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Claude Code**: the agent pane above. See [Claude Code](claude-code.md).
|
||||||
|
2. **Splitter**: the bar between the two panes. Drag it up or down.
|
||||||
|
3. **Shell terminal**: the whole pane is the terminal. There is no header bar; your shell prompt shows where you are.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### The shell
|
||||||
|
- Helder starts your shell as a login shell in the project folder.
|
||||||
|
- The shell loads your profile, so Homebrew, nvm and your aliases work, even when Helder was opened from the Finder.
|
||||||
|
- It is a plain terminal. Run any command, editor or tool you like.
|
||||||
|
- There is one shell pane per window. There are no tabs.
|
||||||
|
|
||||||
|
### Choosing the shell
|
||||||
|
- By default Helder uses the shell in your `$SHELL`, else `/bin/zsh`.
|
||||||
|
- Set `terminal.shell` to another shell, for example `/bin/bash`. The same shell also hosts the [Claude Code](claude-code.md) pane.
|
||||||
|
|
||||||
|
### Restart
|
||||||
|
- When the shell exits (for example after `exit`), the pane shows a grey line: `[process exited] · press any key to restart`.
|
||||||
|
- Press any key in the pane to start a fresh shell.
|
||||||
|
- Closing the window ends the shell. Opening another project in the window starts a fresh shell in the new folder.
|
||||||
|
- Hiding the Claude column hides this pane too. The shell keeps running and keeps its output.
|
||||||
|
|
||||||
|
### Copy and paste
|
||||||
|
- Select text with the mouse. It is copied to the clipboard straight away.
|
||||||
|
- Right-click for **Copy** (only with a selection) and **Paste**. See [Right-click menu](right-click-menu.md).
|
||||||
|
|
||||||
|
### Focus
|
||||||
|
- Click in the pane to type in it. The first click works even when the window is not active.
|
||||||
|
- While the pane has the keyboard, arrows, `Enter`, `Cmd+A`, `Cmd+C`, `Cmd+Left` and `Cmd+Right` go to the shell, not to Helder.
|
||||||
|
- `Option+Left` and `Option+Right` jump one word back or forward.
|
||||||
|
|
||||||
|
### Splitter between Claude and the shell
|
||||||
|
- Drag the bar between the two panes to share the height.
|
||||||
|
- Claude starts with about half the column. Each pane keeps at least about a fifth of it.
|
||||||
|
- The position is remembered across launches, and is the same in every project.
|
||||||
|
|
||||||
|
### Look
|
||||||
|
- Same font, colours, cursor and zoom as the [Claude Code](claude-code.md) pane. `Cmd++`, `Cmd+-` and `Cmd+0` zoom both terminals.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| Any key, after exit | Restart the shell |
|
||||||
|
| `Option+Left` / `Option+Right` | Jump one word back / forward |
|
||||||
|
| `Cmd++` / `Cmd+-` / `Cmd+0` | Zoom terminal and code text in / out / reset |
|
||||||
|
| Mouse select | Copy the selection |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `terminal.shell` | your `$SHELL` | The shell for both terminal panes. |
|
||||||
|
| `terminal.scrollback` | `8000` | Lines kept for scrolling back. |
|
||||||
|
| `terminal.optionIsMeta` | `false` | Option acts as Meta, but no longer types accents. |
|
||||||
|
|
||||||
|
The font, cursor and colour settings are shared with Claude Code. See [Claude Code](claude-code.md#settings) and [Configuration](configuration.md).
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Claude Code](claude-code.md): the agent pane above, with the same terminal behaviour.
|
||||||
|
- [Layout](layout.md): column widths, the Claude toggle and the splitters.
|
||||||
|
- [Right-click menu](right-click-menu.md): Copy and Paste in the terminal.
|
||||||
|
- [Configuration](configuration.md): the `terminal` settings.
|
||||||
@@ -0,0 +1,152 @@
|
|||||||
|
# Configuration
|
||||||
|
|
||||||
|
Helder's settings belong to a project. They live in a `.helder` folder in the project root, as plain JSON files you edit in any editor, Helder included.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Window layout](layout.md), [Keyboard shortcuts](keyboard-shortcuts.md), [Claude Code](claude-code.md), [Command line](command-line.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
my-project/
|
||||||
|
+-- .helder/ (1)
|
||||||
|
| +-- config.json (2) your settings, only what you change
|
||||||
|
| +-- config.default.json (3) every setting with its default
|
||||||
|
| +-- .gitignore (4) keeps the folder out of git
|
||||||
|
| +-- recent.json (5) recently opened files
|
||||||
|
+-- .notes.txt (6) the project note
|
||||||
|
+-- .env (7) APP_NAME sets the project title
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **`.helder` folder**: Helder creates it when you open the project.
|
||||||
|
2. **`config.json`**: your own settings. You create it. Put in only the keys you want to change.
|
||||||
|
3. **`config.default.json`**: the full list of settings and their defaults. Helder rewrites it each time the project opens.
|
||||||
|
4. **`.gitignore`**: ignores the whole `.helder` folder, because its content is local to your machine.
|
||||||
|
5. **`recent.json`**: the list behind the recent files navigator. See [Go to file](go-to-file.md).
|
||||||
|
6. **`.notes.txt`**: the project note. See [Notes](notes.md).
|
||||||
|
7. **`.env`**: Helder reads only `APP_NAME` from it, for the project title.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### `config.json` and `config.default.json`
|
||||||
|
- **`config.default.json`** is documentation. Read it to see every setting. Helder rewrites it from its built-in defaults every time the project opens, so it always matches your Helder version. Edits to it are lost and never read.
|
||||||
|
- **`config.json`** is yours. Copy only the keys you want to change. Leave the rest out.
|
||||||
|
- Helder merges the two key by key. A key in `config.json` wins. A missing key uses the default.
|
||||||
|
- A key with a wrong type, or `null`, keeps its default. The rest of the file still works.
|
||||||
|
- A file that is not valid JSON is ignored as a whole, and every setting uses its default.
|
||||||
|
|
||||||
|
Example `config.json`:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"editor": { "autoSave": true, "tabSize": 2 },
|
||||||
|
"git": { "defaultDiffMode": "diff" },
|
||||||
|
"files": { "exclude": ["vendor/**", "node_modules/**"] }
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### When changes take effect
|
||||||
|
- Helder watches `config.json`. Save it and the change applies right away to the editor, git prompts, the default diff mode and the terminal look (font, colours, cursor).
|
||||||
|
- `files.*` changes apply to the next search, and to the tree the next time it reloads. Press `Cmd+R` to reload it now.
|
||||||
|
- A few settings are read when the project opens: `ai.command`, `ai.autoLaunch`, `terminal.shell` and `git.refreshInterval`. Reopen the project, or open another one and come back, to apply them.
|
||||||
|
|
||||||
|
### Project title
|
||||||
|
- The project title is the `APP_NAME` value from the project's `.env` file, when it has one. Quotes around the value are removed.
|
||||||
|
- Without `APP_NAME`, the title is the folder name.
|
||||||
|
- The title shows in the Dock, in `Cmd+Tab` and in the Dock's right-click menu. See [Window layout](layout.md).
|
||||||
|
|
||||||
|
### Session restore
|
||||||
|
- With `session.restoreOnLaunch` on, a project reopens on the file you had open, in the same view (code or Markdown preview).
|
||||||
|
- A file that was in the full-screen Diff reopens on the live file.
|
||||||
|
- The column layout (which columns show, Fluid on or off, the locked widths) always comes back, whatever this setting says. See [Window layout](layout.md).
|
||||||
|
|
||||||
|
### Things that are not settings
|
||||||
|
- There is no theme and no light mode. Helder is dark only.
|
||||||
|
- The code font and size are built in. Use zoom (`Cmd++`, `Cmd+-`, `Cmd+0`) to change the size of the code and terminal text.
|
||||||
|
- **Hidden** files (`Cmd+.`) and **Fluid** widths (`Cmd+L`) are toggles in the [title bar](title-bar.md), not settings.
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
### ai: the Claude pane
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `ai.command` | `"claude"` | The command the Claude pane runs when the project opens |
|
||||||
|
| `ai.autoLaunch` | `true` | Run `ai.command` when the project opens. When off, the Claude pane starts as a plain shell |
|
||||||
|
|
||||||
|
### editor: the File view
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `editor.autoSave` | `false` | Save edits on their own 0.6 seconds after the last keystroke, without a "Saved" toast. Opening another file saves silently instead of asking |
|
||||||
|
| `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
|
||||||
|
|
||||||
|
| 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.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 |
|
||||||
|
|
||||||
|
### files: the Explorer and search
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `files.exclude` | `[]` | Glob patterns to leave out of the Explorer and search, for example `"vendor/**"` |
|
||||||
|
| `files.followGitignore` | `false` | Also leave out files that git ignores. Off by default, so files like `.env` stay visible |
|
||||||
|
|
||||||
|
### terminal: both terminal panes
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `terminal.shell` | `null` | The shell for both panes. `null` uses your login shell (`$SHELL`) |
|
||||||
|
| `terminal.fontFamily` | `null` | Terminal font. `null` uses the built-in IBM Plex Mono |
|
||||||
|
| `terminal.fontSize` | `null` | Terminal font size in points. `null` uses Helder's default size |
|
||||||
|
| `terminal.lineHeight` | `1.7` | Line height, as a multiple of the font size |
|
||||||
|
| `terminal.letterSpacing` | `0` | Extra space between letters |
|
||||||
|
| `terminal.cursorStyle` | `"bar"` | Cursor shape: `"bar"`, `"block"` or `"underline"` |
|
||||||
|
| `terminal.cursorBlink` | `true` | Blink the cursor |
|
||||||
|
| `terminal.boldIsBright` | `false` | Show bold text in the bright colour. Off keeps bold text in its own colour |
|
||||||
|
| `terminal.scrollback` | `8000` | Lines kept in the scroll history |
|
||||||
|
| `terminal.optionIsMeta` | `false` | Use `Opt` as the Meta key, for tools that need `Opt+Return`. When on, `Opt` no longer types accents and `Opt+Left/Right` no longer jump by word |
|
||||||
|
| `terminal.theme` | Helder dark | The terminal colours, see below |
|
||||||
|
|
||||||
|
### terminal.theme: terminal colours
|
||||||
|
|
||||||
|
Every value is a CSS colour string, such as `"#E8913A"` or `"rgba(232,145,58,0.22)"`. Set only the ones you want to change.
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `background` | `#101720` | Pane background |
|
||||||
|
| `foreground` | `#E4E7E6` | Normal text |
|
||||||
|
| `cursor` | `#E8913A` | Cursor colour |
|
||||||
|
| `cursorAccent` | `#101720` | Text under a block cursor |
|
||||||
|
| `selectionBackground` | `rgba(232,145,58,0.22)` | Selection in the focused pane |
|
||||||
|
| `selectionInactiveBackground` | `rgba(232,145,58,0.12)` | Selection in a pane without focus |
|
||||||
|
| `black` / `brightBlack` | `#232C39` / `#6C7783` | ANSI black |
|
||||||
|
| `red` / `brightRed` | `#C4741F` / `#E8913A` | ANSI red |
|
||||||
|
| `green` / `brightGreen` | `#8FBFB4` / `#A6D2C7` | ANSI green |
|
||||||
|
| `yellow` / `brightYellow` | `#F0B476` / `#F5C79A` | ANSI yellow |
|
||||||
|
| `blue` / `brightBlue` | `#8FA9C4` / `#A9BFD6` | ANSI blue |
|
||||||
|
| `magenta` / `brightMagenta` | `#C3A6CE` / `#D6BFDF` | ANSI magenta |
|
||||||
|
| `cyan` / `brightCyan` | `#8FC4C4` / `#A9D6D6` | ANSI cyan |
|
||||||
|
| `white` / `brightWhite` | `#BAC0C0` / `#F4F5F4` | ANSI white |
|
||||||
|
|
||||||
|
### session
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `session.restoreOnLaunch` | `true` | Reopen the last open file and its view when the project opens |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Window layout](layout.md): what Helder remembers outside these files.
|
||||||
|
- [Claude Code](claude-code.md): the pane `ai.*` controls.
|
||||||
|
- [Command line](command-line.md): the shell pane `terminal.*` controls.
|
||||||
|
- [Git](git.md): the prompts and refresh that `git.*` controls.
|
||||||
|
- [Explorer](explorer.md) and [Search](search.md): what `files.*` leaves out.
|
||||||
|
- [File view](file-view.md): what `editor.*` controls.
|
||||||
|
- [Diff view](file-view-diff.md): `git.defaultDiffMode`.
|
||||||
@@ -0,0 +1,166 @@
|
|||||||
|
# Dialogs
|
||||||
|
|
||||||
|
Helder asks you something in three ways: a confirm dialog before a risky action, a small name prompt for new and renamed entries, and the macOS unsaved-changes alert. This page shows each one, what it says, and which keys answer it.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Right-click menu](right-click-menu.md), [Git](git.md), [Explorer](explorer.md), [File view](file-view.md), [Notifications](notifications.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
|//////////////////////////// dimmed window /////////////////////////////////|
|
||||||
|
|////////// +------------------------------------------------+ ////////////|
|
||||||
|
|////////// | (1) Discard changes to app/Http/User.php? | ////////////|
|
||||||
|
|////////// | | ////////////|
|
||||||
|
|////////// | (2) This reverts the file to the last commit | ////////////|
|
||||||
|
|////////// | and cannot be undone. | ////////////|
|
||||||
|
|////////// | | ////////////|
|
||||||
|
|////////// | (3)[ Cancel esc ] (4)[ Discard enter ] | ////////////|
|
||||||
|
|////////// +------------------------------------------------+ ////////////|
|
||||||
|
|////////////////////////////////////////////////////////////////////////////|
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
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`.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Confirm dialog
|
||||||
|
|
||||||
|
The confirm dialog sits on top of a dimmed window. Nothing else takes keys while it is open.
|
||||||
|
|
||||||
|
- `Enter` or a click on the confirm button runs the action.
|
||||||
|
- `Esc`, a click on **Cancel**, or a click on the dimmed area outside cancels. Nothing changes.
|
||||||
|
|
||||||
|
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 |
|
||||||
|
| 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`.
|
||||||
|
|
||||||
|
#### Stage and unstage
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
#### Delete file or folder
|
||||||
|
|
||||||
|
Comes from **Delete file** or **Delete folder** in the [Explorer](explorer.md). It always asks. On confirm:
|
||||||
|
|
||||||
|
- The file, or the folder with everything inside it, is deleted for good. It does not go to the Trash.
|
||||||
|
- An open file that was deleted closes in the File view.
|
||||||
|
- A notification says `Deleted file` or `Deleted folder`, or `Delete failed`.
|
||||||
|
|
||||||
|
### Name prompt
|
||||||
|
|
||||||
|
The name prompt is a small panel for **New file**, **New folder**, **Rename file** and **Rename folder**. It opens where the right-click menu stood. The window is not dimmed.
|
||||||
|
|
||||||
|
```text
|
||||||
|
+------------------------------------------------+
|
||||||
|
| (1) [doc] New file (2)esc |
|
||||||
|
| +--------------------------------------------+ |
|
||||||
|
| | (3) file name... | |
|
||||||
|
| +--------------------------------------------+ |
|
||||||
|
| (4) creates [ app/Http/... ] |
|
||||||
|
| (5) enter create file esc cancel |
|
||||||
|
+------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Title**: a file or folder icon in amber, and `New file`, `New folder`, `Rename file` or `Rename folder`.
|
||||||
|
2. **Esc chip**: a reminder that `Esc` closes the prompt.
|
||||||
|
3. **Name field**: has the keyboard as soon as the prompt opens. The hint reads `file name…` or `folder name…`.
|
||||||
|
4. **Preview**: the path that `Enter` will produce, in an amber chip. It reads `creates` for a new entry and `renames to` for a rename. It shows `…` while the name cannot be used.
|
||||||
|
5. **Footer**: the keys: `↵ create file`, `↵ create folder`, `↵ rename file` or `↵ rename folder`, and `esc cancel`.
|
||||||
|
|
||||||
|
How it works:
|
||||||
|
|
||||||
|
- Type a name. The preview follows each key.
|
||||||
|
- `Enter` creates or renames, then closes the prompt.
|
||||||
|
- `Esc`, or a click anywhere outside the panel, cancels.
|
||||||
|
- For a rename, the field starts with the current name. Only the part before the extension is selected, so typing a new name keeps `.php` or `.md`.
|
||||||
|
|
||||||
|
What happens after `Enter`:
|
||||||
|
|
||||||
|
- **New file**: the file is created empty and opens in the [File view](file-view.md). Its folders expand in the [Explorer](explorer.md).
|
||||||
|
- **New folder**: the folder is created and expands.
|
||||||
|
- **Rename**: the entry gets its new name. An open file stays open under the new name.
|
||||||
|
- A notification confirms: `Created file`, `Created folder`, `Renamed file` or `Renamed folder`, with the new path.
|
||||||
|
|
||||||
|
#### Names the prompt accepts
|
||||||
|
|
||||||
|
There are no error messages inside the prompt. Instead, `Enter` does nothing while the preview shows `…`. That happens when:
|
||||||
|
|
||||||
|
- The name is empty or only spaces.
|
||||||
|
- For a rename: the name has a `/`, is `.` or `..`, or is the same as the current name.
|
||||||
|
|
||||||
|
For **New file** and **New folder**, a name with slashes creates the folders on the way. `tests/Unit/MathTest.php` creates `tests/Unit/` when it does not exist yet. Leading and trailing slashes are dropped. Spaces around the name are trimmed.
|
||||||
|
|
||||||
|
A rename that only changes capitals (`readme.md` to `README.md`) works.
|
||||||
|
|
||||||
|
When a file or folder with that name already exists, nothing is overwritten. The prompt closes and a notification says `Create failed` or `Rename failed`, with the name.
|
||||||
|
|
||||||
|
### Unsaved changes
|
||||||
|
|
||||||
|
When the open file has unsaved edits and you are about to lose them, Helder shows the standard macOS alert:
|
||||||
|
|
||||||
|
```text
|
||||||
|
+------------------------------------------------------+
|
||||||
|
| (!) Save changes to UserController.php? |
|
||||||
|
| |
|
||||||
|
| app/Http/UserController.php has unsaved edits. |
|
||||||
|
| They are lost if you close without saving. |
|
||||||
|
| |
|
||||||
|
| [ Save ] [ Don't Save ] [ Cancel ] |
|
||||||
|
+------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
It appears when you:
|
||||||
|
|
||||||
|
- open another file, or the same file again, from any place;
|
||||||
|
- close the file with `Cmd+W`;
|
||||||
|
- close the window or switch to another project. Each file with unsaved edits asks in turn.
|
||||||
|
|
||||||
|
The buttons:
|
||||||
|
|
||||||
|
- **Save** writes the file, then goes ahead. When the save fails, the file stays open and nothing else happens.
|
||||||
|
- **Don't Save** drops the edits and goes ahead.
|
||||||
|
- **Cancel** keeps the file, its edits and the selection in the [Explorer](explorer.md). Nothing happens.
|
||||||
|
|
||||||
|
`Enter` picks **Save**, `Esc` picks **Cancel**, as in every macOS alert.
|
||||||
|
|
||||||
|
With `editor.autoSave` on, opening another file saves the open one silently, without this alert.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Enter` | Confirm dialog: run the action. Name prompt: create or rename. Unsaved alert: Save |
|
||||||
|
| `Esc` | Cancel any of the three |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
| 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 |
|
||||||
|
| `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.
|
||||||
|
- [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.
|
||||||
|
- [Configuration](configuration.md): where the settings live.
|
||||||
@@ -0,0 +1,143 @@
|
|||||||
|
# Explorer
|
||||||
|
|
||||||
|
The Explorer is the project's file tree. It is the second column from the left, between the [Git](git.md) column and the [File view](file-view.md).
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Right-click menu](right-click-menu.md), [Dialogs](dialogs.md), [Git](git.md), [File view](file-view.md), [Layout](layout.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+-------------------------------------+
|
||||||
|
| (1) EXPLORER console |
|
||||||
|
|-------------------------------------|
|
||||||
|
| (2)v [] app |
|
||||||
|
| v [] Http |
|
||||||
|
| (3) > [] Controllers |
|
||||||
|
| (4) [php] Kernel.php (5)M|
|
||||||
|
| > [] config |
|
||||||
|
| > [] tests |
|
||||||
|
| [md] README.md |
|
||||||
|
| [json] composer.json A |
|
||||||
|
| |
|
||||||
|
| (6) |
|
||||||
|
+-------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Header**: the word `Explorer` on the left, the project name on the right.
|
||||||
|
2. **Open folder**: an amber `v` chevron and an open folder icon.
|
||||||
|
3. **Closed folder**: a grey `>` chevron and a closed folder icon.
|
||||||
|
4. **File**: a file-type badge and the file name, indented under its folder.
|
||||||
|
5. **Status letter**: the git status of a changed file.
|
||||||
|
6. **Empty space** under the rows: stands for the project folder itself. Right-click it for the project menu.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Expand and collapse folders
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
- Folders come first, then files, each sorted by name. Case does not matter in the sort.
|
||||||
|
|
||||||
|
### Icons
|
||||||
|
|
||||||
|
- Folders show a folder icon, open or closed, and a chevron.
|
||||||
|
- Files show a small file-type badge, for example `php`, `md` or `json`. The [Git](git.md) column and the [File view](file-view.md) bar use the same badges.
|
||||||
|
- An open folder shows its name in bright text.
|
||||||
|
|
||||||
|
### Status letters
|
||||||
|
|
||||||
|
A file with a git change shows a letter on the right of its row:
|
||||||
|
|
||||||
|
| Letter | Meaning | Colour |
|
||||||
|
|---|---|---|
|
||||||
|
| `A` | Added (new or untracked) | teal |
|
||||||
|
| `M` | Modified | teal |
|
||||||
|
| `R` | Renamed | teal |
|
||||||
|
| `D` | Deleted | amber-deep |
|
||||||
|
|
||||||
|
The letter is the file's overall status. When a file has both a staged and an unstaged change, the unstaged one wins. Folders do not show a letter.
|
||||||
|
|
||||||
|
### Selection
|
||||||
|
|
||||||
|
One row is highlighted. That is:
|
||||||
|
|
||||||
|
- the file open in the [File view](file-view.md), or
|
||||||
|
- the row under the keyboard cursor, while the Explorer is the active column, or
|
||||||
|
- the row whose [right-click menu](right-click-menu.md) is open.
|
||||||
|
|
||||||
|
Hovering a row moves the keyboard cursor to it. Hover a file to see its full project-relative path in a tooltip.
|
||||||
|
|
||||||
|
### Open a file
|
||||||
|
|
||||||
|
- Click a file to open it in the [File view](file-view.md).
|
||||||
|
- When the open file has unsaved edits, Helder asks first: Save, Don't Save or Cancel. See [Dialogs](dialogs.md#unsaved-changes).
|
||||||
|
|
||||||
|
### Keyboard navigation
|
||||||
|
|
||||||
|
- Click the Explorer, or move focus to it with `Cmd+Left` / `Cmd+Right`, to make it the active column.
|
||||||
|
- `Up` and `Down` move the cursor through the visible rows.
|
||||||
|
- `Enter` on a file opens it. `Enter` on a folder expands or collapses it.
|
||||||
|
- `Cmd+Right` opens the [right-click menu](right-click-menu.md#explorer-file) of the row under the cursor, beside the column.
|
||||||
|
|
||||||
|
### What the tree leaves out
|
||||||
|
|
||||||
|
- **Hidden files**: names that start with a dot (`.env`, `.github`) are hidden. Press `Cmd+.` or click **Hidden** in the [Title bar](title-bar.md) to show them. The choice holds for the whole window.
|
||||||
|
- **Build and tool folders**: these never show: `node_modules`, `vendor`, `.git`, `out`, `dist`, `build`, `.cache`, `coverage`, `.helder`, `.next`, `.nuxt`, `.turbo`, `.idea`, `.vscode`, and `.DS_Store` files.
|
||||||
|
- **Your own excludes**: glob patterns in `files.exclude` hide matching paths.
|
||||||
|
- **Git-ignored files**: shown by default, so files like `.env` stay reachable. Set `files.followGitignore` to `true` to hide them.
|
||||||
|
- **Symbolic links** are not shown.
|
||||||
|
|
||||||
|
The same rules apply to [Search](search.md) and [Go to file](go-to-file.md).
|
||||||
|
|
||||||
|
### Create, rename and delete
|
||||||
|
|
||||||
|
All file actions start from the [right-click menu](right-click-menu.md):
|
||||||
|
|
||||||
|
- **New file** and **New folder**: right-click a folder. **New file** in the project root: right-click the empty space under the rows.
|
||||||
|
- **Rename file** and **Rename folder**: right-click the entry.
|
||||||
|
- **Delete file** and **Delete folder**: right-click the entry. Delete always asks first, and it deletes for good. It does not use the Trash.
|
||||||
|
|
||||||
|
New file, New folder and Rename open a small [name prompt](dialogs.md#name-prompt). Delete opens a [confirm dialog](dialogs.md#delete-file-or-folder).
|
||||||
|
|
||||||
|
After the action:
|
||||||
|
|
||||||
|
- A new file opens in the [File view](file-view.md). Its folders expand.
|
||||||
|
- A new folder expands, ready for its first file.
|
||||||
|
- A renamed file stays open under its new name. Expanded folders stay expanded.
|
||||||
|
- A deleted file closes in the File view.
|
||||||
|
- A [notification](notifications.md) confirms each action, or says why it failed.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Up` / `Down` | Move the row cursor (Explorer active) |
|
||||||
|
| `Enter` | Open the file, or expand or collapse the folder |
|
||||||
|
| `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+.` | Show or hide hidden files |
|
||||||
|
| `Cmd+R` | Reload the tree, git and the open file |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
All settings live in `.helder/config.json`. See [Configuration](configuration.md).
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `files.exclude` | `[]` | Glob patterns to hide from the tree and the search |
|
||||||
|
| `files.followGitignore` | `false` | `true` hides files that git ignores |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Right-click menu](right-click-menu.md): every action on a file, a folder and the empty space.
|
||||||
|
- [Dialogs](dialogs.md): the name prompt and the delete confirmation.
|
||||||
|
- [Git](git.md): the same status letters, with staging.
|
||||||
|
- [File view](file-view.md): where a clicked file opens.
|
||||||
|
- [Layout](layout.md): the Explorer toggle, Hidden and column widths.
|
||||||
|
- [Go to file](go-to-file.md): open a file by name without the tree.
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
# File view: Diff
|
||||||
|
|
||||||
|
The Diff is a full-screen, side-by-side comparison of a changed file. It covers the whole window: the old version on the left, the current version on the right, lines aligned.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [File view](file-view.md), [Git](git.md), [Pass on to Agent](pass-on-to-agent.md), [Right-click menu](right-click-menu.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| (1)[php] app/User.php (2)Modified +3 -2 (3)HEAD -> staged (4)[Collapse Esc]|
|
||||||
|
+-------------------------------------+--------------------------------------+
|
||||||
|
| (5)ORIGINAL before | (6)ACTUAL after |
|
||||||
|
+-------------------------------------+--------------------------------------+
|
||||||
|
| 10 public function name() | 10 public function name() |
|
||||||
|
| |11 return $this->first; (7) | |11 return $this->full; (8) |
|
||||||
|
| |12 // old | (9) |
|
||||||
|
| 13 } | 12 } |
|
||||||
|
+-------------------------------------+--------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **File**: the type badge and the path.
|
||||||
|
2. **Status and counts**: `Added`, `Modified` or `Deleted`, then added lines in teal (`+3`) and removed lines in amber-deep (`-2`).
|
||||||
|
3. **Which half**: only when the file has both staged and unstaged changes. `HEAD -> staged` shows the staged part, `staged -> actual` shows the part not yet staged.
|
||||||
|
4. **Collapse**: closes the Diff. Same as `Esc`.
|
||||||
|
5. **Original**: the file as it was before (left).
|
||||||
|
6. **Actual**: the file as it is now (right).
|
||||||
|
7. **Removed or old line**: amber-deep tint, left rule and number.
|
||||||
|
8. **Added or new line**: teal tint, left rule and number.
|
||||||
|
9. **Filler**: an empty half where the other side has a line with no partner.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Open the Diff
|
||||||
|
- Click **Diff** in the [file view](file-view.md) bar. The button shows only on a file with git changes.
|
||||||
|
- Click a marked (teal) line in the file view. 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). A click on a marked line always compares the last commit with the file on disk.
|
||||||
|
|
||||||
|
### Layout
|
||||||
|
- The Diff covers all columns. The window's shortcuts still work over it.
|
||||||
|
- Each side has its own line numbers, the numbers of that version of the file.
|
||||||
|
- Unchanged lines line up side by side. A run of removed lines pairs with the run of added lines next to it. Extra lines face an empty half.
|
||||||
|
- Both halves scroll together, up and down and sideways.
|
||||||
|
- Lines never wrap, so the rows stay aligned. Scroll sideways to read long lines.
|
||||||
|
- Syntax colours stay on, line by line.
|
||||||
|
- The text size follows View > Zoom (`Cmd++`, `Cmd+-`, `Cmd+0`).
|
||||||
|
|
||||||
|
### Colours
|
||||||
|
- Teal is what the file holds now. Changed lines on the right get a teal tint, a teal left rule and a teal number.
|
||||||
|
- Amber-deep is what it held before. Changed lines on the left get an amber-deep tint, rule and number.
|
||||||
|
- There is no green and no red.
|
||||||
|
|
||||||
|
### Special cases
|
||||||
|
- **Added file**: the left side is empty, the right side holds the whole file.
|
||||||
|
- **Deleted file**: the left side holds the old file, the right side is empty.
|
||||||
|
- **Too big**: a changed file over 1 MB shows "Too big." in place of the lines.
|
||||||
|
- **No changes**: if the file has no changes left, the Diff shows "No changes to compare."
|
||||||
|
- The Diff updates by itself when the file changes on disk or in git.
|
||||||
|
|
||||||
|
### Select and copy
|
||||||
|
- Drag over lines on one side to select whole lines. The selection stays on the side where you started.
|
||||||
|
- `Cmd+C` copies the selected lines of that side, without line numbers.
|
||||||
|
- `Cmd+A` selects every line of the side that holds the selection, or of the Original side.
|
||||||
|
- A click clears the selection.
|
||||||
|
|
||||||
|
### Right-click and pass on
|
||||||
|
- Right-click a line on either side for a small menu with **Pass on reference** and **Copy reference**.
|
||||||
|
- The reference is `path:line` with the line number of the side you clicked. An empty half refers to line 1.
|
||||||
|
- **Copy reference** puts the reference on the clipboard.
|
||||||
|
- **Pass on reference** opens the pass-on prompt inside the Diff. Type an optional note, press `Enter` to insert it into the [Claude Code](claude-code.md) pane. See [Pass on to Agent](pass-on-to-agent.md).
|
||||||
|
- Use `Up`, `Down` and `Enter` to pick a menu item with the keyboard.
|
||||||
|
|
||||||
|
### Close the Diff
|
||||||
|
- Press `Esc` or click **Collapse**.
|
||||||
|
- `Esc` closes the innermost layer first: the menu, then the prompt, then the Diff.
|
||||||
|
- You return to the view you came from, with the keyboard back in the code.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Esc` | Close the menu, the prompt, or the Diff |
|
||||||
|
| `Cmd+C` | Copy the selected lines |
|
||||||
|
| `Cmd+A` | Select all lines of one side |
|
||||||
|
| `Up` / `Down` / `Enter` | Move through and choose in the right-click menu |
|
||||||
|
| `Cmd++` / `Cmd+-` / `Cmd+0` | Zoom in / zoom out / actual size |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `git.defaultDiffMode` | `updated` | Meant to open changed files straight in the Diff when set to `diff`. In this version a changed file always opens in the live file view. |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [File view](file-view.md): the live view with teal line marks, where a click opens the Diff.
|
||||||
|
- [Git](git.md): the changes, the staged and unstaged halves, and **Open diff**.
|
||||||
|
- [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.
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
# File view: Markdown
|
||||||
|
|
||||||
|
Markdown files (`.md`) open in the [file view](file-view.md) like any other file, with one extra: a rendered Preview. You switch between the source and the Preview with the **Preview** button in the bar or with `Cmd+M`.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [File view](file-view.md), [Diff](file-view-diff.md), [Pass on to Agent](pass-on-to-agent.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+--------------------------------------------------------------------+
|
||||||
|
| (1)[md] docs/setup.md (2)[Preview] (3)[Diff] |
|
||||||
|
+--------------------------------------------------------------------+
|
||||||
|
| (4) |
|
||||||
|
| Setup |
|
||||||
|
| ----------------------------------------------- |
|
||||||
|
| Install the app with Herd. Read the [guide] first. (5) link |
|
||||||
|
| |
|
||||||
|
| -- First item |
|
||||||
|
| -- Second item |
|
||||||
|
| |
|
||||||
|
| +----------------------------------------------+ |
|
||||||
|
| | composer install | (6) code block |
|
||||||
|
| +----------------------------------------------+ |
|
||||||
|
+--------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Bar**: the badge `md` and the path, as for every file.
|
||||||
|
2. **Preview button**: switches between the source and the rendered document. It is lit while the Preview shows.
|
||||||
|
3. **Diff button**: only on a changed file. See [Diff](file-view-diff.md).
|
||||||
|
4. **Rendered document**: the Markdown as formatted text, in a readable column of about 68 characters.
|
||||||
|
5. **Link**: click to follow it.
|
||||||
|
6. **Code block**: fenced code in a dark panel, with syntax colours.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### The source view
|
||||||
|
- A Markdown file opens in its source view: editable text with syntax colours.
|
||||||
|
- Headings, list markers, quote markers, rules, code spans and link targets get their own colours.
|
||||||
|
- A fenced code block (with three or more backticks or tildes) uses the colours of its language, for example ```` ```php ````.
|
||||||
|
- Word wrap is on for Markdown by default, so long paragraphs fold onto the next row. `editor.wordWrap` changes this.
|
||||||
|
- On a changed file, the source view shows the teal line marks like any [file view](file-view.md).
|
||||||
|
|
||||||
|
### Switch to Preview
|
||||||
|
- Click **Preview** in the bar, or press `Cmd+M`. Press again to go back to the source.
|
||||||
|
- `Cmd+M` does nothing on a file that is not Markdown.
|
||||||
|
- The Preview shows the current text, unsaved edits included.
|
||||||
|
- The Preview is read-only. You can select and copy its text.
|
||||||
|
- Your undo history and unsaved edits stay intact while you are in the Preview.
|
||||||
|
|
||||||
|
### What the Preview renders
|
||||||
|
|
||||||
|
| Markdown | Shown as |
|
||||||
|
|---|---|
|
||||||
|
| `#` to `######` headings | Bold headings; a level-3 heading gets a thin rule under it |
|
||||||
|
| Paragraphs | Body text; lines of one paragraph join into one |
|
||||||
|
| `**bold**`, `__bold__` | Bold |
|
||||||
|
| `*italic*`, `_italic_` | Italic |
|
||||||
|
| `~~text~~` | Strikethrough |
|
||||||
|
| `` `code` `` | Inline code |
|
||||||
|
| ```` ``` ```` fenced blocks | Code panel with syntax colours, scrolls sideways |
|
||||||
|
| `>` quotes | Amber rule on the left, quote text; quotes may nest |
|
||||||
|
| `-`, `*`, `+` lists | Items with an amber dash |
|
||||||
|
| `1.` or `1)` lists | Numbered items |
|
||||||
|
| GFM tables | A table with a header row; `:---:` and `---:` set centre and right alignment |
|
||||||
|
| `---`, `***`, `___` | A thin horizontal rule |
|
||||||
|
| `` | The image, from the project or from the web; the alt text while it loads or when it fails |
|
||||||
|
| `[text](url)` | A link |
|
||||||
|
|
||||||
|
Not rendered: nested lists, task-list checkboxes, raw HTML, and headings underlined with `===` or `---`. Fenced code in the Preview needs backticks; a `~~~` fence shows as plain text.
|
||||||
|
|
||||||
|
### Links in the Preview
|
||||||
|
- A web link (`http`, `https`) opens in your browser.
|
||||||
|
- A `mailto:` link opens your mail app.
|
||||||
|
- A link to a file in the project opens that file in the file view.
|
||||||
|
- A link to an anchor (`#section`) is shown as text but does nothing.
|
||||||
|
- Links with other schemes, such as `javascript:`, are dropped for safety.
|
||||||
|
|
||||||
|
### Right-click in the Preview
|
||||||
|
- Right-click anywhere in the Preview for **Pass on reference** and **Copy reference**. The reference points at line 1 of the file. See [Pass on to Agent](pass-on-to-agent.md).
|
||||||
|
|
||||||
|
### Zoom
|
||||||
|
- The Preview keeps its own text size. `Cmd++` and `Cmd+-` zoom only the source view.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+M` | Switch between source and Preview |
|
||||||
|
| `Cmd+S` | Save (from the source view) |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `editor.wordWrap` | `markdown` | `markdown` wraps only Markdown files; `on` wraps every file; `off` wraps none |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [File view](file-view.md): editing, saving and the bar.
|
||||||
|
- [File view: Diff](file-view-diff.md): compare a changed Markdown file with its last commit.
|
||||||
|
- [Pass on to Agent](pass-on-to-agent.md): send a reference to the file to Claude.
|
||||||
|
- [Configuration](configuration.md): where `editor.wordWrap` lives.
|
||||||
@@ -0,0 +1,192 @@
|
|||||||
|
# File view
|
||||||
|
|
||||||
|
The file view is the third column (Col C), between the [Explorer](explorer.md) and the [Claude Code](claude-code.md) column. It shows one file at a time: a bar on top, the file below it.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Markdown](file-view-markdown.md), [Diff](file-view-diff.md), [Code symbols](code-symbols.md), [Pass on to Agent](pass-on-to-agent.md), [Status bar](status-bar.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+------------------------------------------------------------------+
|
||||||
|
| (1)[php] (2)app/Http/UserController.php (3)o (4)+12 -3 (5)[Diff] |
|
||||||
|
+------+-----------------------------------------------------------+
|
||||||
|
| (6)40| public function show(User $user) |
|
||||||
|
| 41| { |
|
||||||
|
| |42| $user->load('roles'); (7) changed line |
|
||||||
|
| |43| return view('users.show'); |
|
||||||
|
| =44| } (8) rule: lines removed here|
|
||||||
|
| 45| |
|
||||||
|
| | (9) the code: type here, select, right-click |
|
||||||
|
+------+-----------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Type badge**: a small coloured chip with the file extension.
|
||||||
|
2. **Path**: the file's path inside the project. A long path is cut at the start. Hover it to see it in full.
|
||||||
|
3. **Unsaved dot**: a small dot shows when the file has edits you have not saved.
|
||||||
|
4. **Change counts**: for a file with git changes, added lines in teal (`+12`) and removed lines in amber-deep (`-3`).
|
||||||
|
5. **View buttons**: **Preview** on Markdown files, **Diff** on changed files. The button of the current view is lit.
|
||||||
|
6. **Line numbers**: one number per line. Click a number to select that line.
|
||||||
|
7. **Changed line**: a line the change added or edited gets a teal tint, a teal left rule and a teal number.
|
||||||
|
8. **Removed-lines rule**: where lines were only removed, a thin amber-deep rule sits on the edge of the next line.
|
||||||
|
9. **Code**: the live, editable text of the file, with syntax colours.
|
||||||
|
|
||||||
|
## 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).
|
||||||
|
- 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.
|
||||||
|
- `composer.lock` never opens. A short "Too big." message shows over the column instead.
|
||||||
|
|
||||||
|
### The live view and changed lines
|
||||||
|
- A file without git changes opens as plain, editable code. It has no Diff button.
|
||||||
|
- A file with git changes opens in the same editable view, with its changed lines marked:
|
||||||
|
- Teal tint, teal left rule and teal line number: a line the file holds now that is new or edited.
|
||||||
|
- A thin amber-deep rule on the top edge of a line: lines were removed just above it. At the end of the file the rule sits under the last line.
|
||||||
|
- Removed lines never show inline. To see them, open the [Diff](file-view-diff.md).
|
||||||
|
- Click a marked line (a plain click, no drag) to open the Diff centred on that line.
|
||||||
|
- In a new file every line is teal, so a click there does not open the Diff.
|
||||||
|
- The marks follow your edits once git sees the saved file.
|
||||||
|
|
||||||
|
### Edit and save
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
### Auto-save
|
||||||
|
- Auto-save is off by default. Turn it on with `editor.autoSave` in the [configuration](configuration.md).
|
||||||
|
- With auto-save on, the file saves about 0.6 seconds after you stop typing. It shows no notification.
|
||||||
|
- Open edits are also written before the window closes or the project switches.
|
||||||
|
|
||||||
|
### Indentation
|
||||||
|
- `Tab` inserts spaces, never a tab character. The number of spaces is `editor.tabSize` (default 4).
|
||||||
|
- With several lines selected, `Tab` indents every line one level.
|
||||||
|
- `Shift+Tab` outdents every touched line one level. It removes one tab, or up to `tabSize` spaces.
|
||||||
|
- The [status bar](status-bar.md) shows the setting, for example `Spaces: 4`.
|
||||||
|
|
||||||
|
### Word wrap
|
||||||
|
- Long lines wrap onto the next row when word wrap is on. Otherwise you scroll sideways.
|
||||||
|
- `editor.wordWrap` sets it: `markdown` (default) wraps only Markdown files, `on` wraps every file, `off` wraps none.
|
||||||
|
- A wrapped line shows its number only on its first row.
|
||||||
|
|
||||||
|
### Line numbers and selection
|
||||||
|
- Line numbers are always shown.
|
||||||
|
- Click a line number to select that whole line. `Shift`+click another number to extend the selection to it.
|
||||||
|
- `Cmd+A` selects the whole file. It also works when the keyboard is not in the code, as long as a file is open.
|
||||||
|
- The [status bar](status-bar.md) shows the caret position as line and column.
|
||||||
|
|
||||||
|
### No guides or whitespace marks
|
||||||
|
- Helder draws no indent guides and no visible whitespace marks.
|
||||||
|
- The editable view does not tint the caret line. The caret itself is amber.
|
||||||
|
|
||||||
|
### Unsaved changes when you switch or close
|
||||||
|
- Open another file (or the same file again) while the current file has unsaved edits, and a dialog asks: **Save**, **Don't Save** or **Cancel**.
|
||||||
|
- **Save** writes the file, then opens the new one.
|
||||||
|
- **Don't Save** drops the edits, then opens the new one.
|
||||||
|
- **Cancel** keeps the current file and its edits.
|
||||||
|
- With auto-save on, Helder saves silently and does not ask.
|
||||||
|
- Closing the window or switching project asks the same question for every file with unsaved edits.
|
||||||
|
|
||||||
|
### Close a file
|
||||||
|
- `Cmd+W` closes the open file. With unsaved edits it asks Save, Don't Save or Cancel first.
|
||||||
|
- With no file open, `Cmd+W` closes the window.
|
||||||
|
|
||||||
|
### Empty state
|
||||||
|
With no file open, the bar is empty and the pane shows "No file open" with four shortcuts:
|
||||||
|
|
||||||
|
| Shortcut | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+O` | Open folder |
|
||||||
|
| `Cmd+Shift+O` | [Recent projects](recent-projects.md) |
|
||||||
|
| `Cmd+F` | [Search files & content](search.md) |
|
||||||
|
| `Cmd+N` | Project [note](notes.md) |
|
||||||
|
|
||||||
|
### Files that are not plain text
|
||||||
|
- **Images** (png, jpg, gif, webp, svg, bmp, ico, avif and more) show as a picture, centred, on a checkerboard so transparent parts stay visible. They are read-only. An image that cannot be read shows "Can't preview this image".
|
||||||
|
- **Binary files** (pdf, zip, fonts, audio, video, databases and the like, or any file whose content turns out binary) show "This file cannot be displayed". There is no Preview or Diff button.
|
||||||
|
- **Deleted in the change**: a file git sees as deleted shows "No updated version" with the note "This file was deleted in the change." The Diff button still opens the old content.
|
||||||
|
- **Added in the change**: a new file shows all its lines in teal. In the Diff, the left side is empty.
|
||||||
|
- **Removed from disk while open**: the text stays on screen as unsaved edits, so nothing is lost. The unsaved dot shows. Save to write the file back, or close and choose Don't Save.
|
||||||
|
- **Too big**: `composer.lock` never opens. A changed file over 1 MB opens, but shows no line marks, and its Diff says "Too big."
|
||||||
|
|
||||||
|
### Changes on disk
|
||||||
|
- Helder watches the project. When a file changes on disk (for example, the agent edits it), the open file updates by itself.
|
||||||
|
- If you have unsaved edits, Helder keeps your edits and does not overwrite them.
|
||||||
|
- `Cmd+R` re-reads git, the file tree and the open file. For the open file the disk wins: unsaved edits are dropped without a prompt.
|
||||||
|
|
||||||
|
### Find
|
||||||
|
- The file view has no find bar of its own.
|
||||||
|
- `Cmd+F` opens project-wide [Search](search.md). With text selected, the first line of the selection fills the search field.
|
||||||
|
|
||||||
|
### Zoom
|
||||||
|
- **View > Zoom In** (`Cmd++`), **Zoom Out** (`Cmd+-`) and **Actual Size** (`Cmd+0`) change the text size, about 10 percent per step.
|
||||||
|
- Zoom applies to the code, the Diff and the terminals. The Markdown preview keeps its size.
|
||||||
|
|
||||||
|
### Right-click and pass on
|
||||||
|
- Right-click in the code for **Pass on reference** (or **Pass on selection** with text selected) and **Copy reference**.
|
||||||
|
- `Cmd+Right` with text selected opens the pass-on prompt for that selection.
|
||||||
|
- See [Pass on to Agent](pass-on-to-agent.md) and the [right-click menu](right-click-menu.md).
|
||||||
|
|
||||||
|
### Class names in PHP
|
||||||
|
- Hold `Cmd` to underline the class names the project declares. `Cmd`+click one to open the [symbol popup](code-symbols.md).
|
||||||
|
|
||||||
|
### Recent files
|
||||||
|
- `Cmd+Up` or `Cmd+Down` while you work in the file view opens the list of recently opened files. See [Go to file](go-to-file.md).
|
||||||
|
|
||||||
|
### Syntax colours
|
||||||
|
These file types get syntax colours:
|
||||||
|
|
||||||
|
| Language | Extensions |
|
||||||
|
|---|---|
|
||||||
|
| PHP (including Blade, HTML with PHP parts) | `.php` |
|
||||||
|
| JavaScript | `.js`, `.mjs`, `.cjs`, `.jsx` |
|
||||||
|
| TypeScript | `.ts`, `.tsx` |
|
||||||
|
| Python | `.py` |
|
||||||
|
| HTML, XML and Vue | `.html`, `.xml`, `.vue` |
|
||||||
|
| CSS | `.css`, `.scss` |
|
||||||
|
| JSON | `.json` |
|
||||||
|
| Markdown | `.md` (code blocks get the colours of their language) |
|
||||||
|
| Shell | `.sh`, `.bash`, `.env` files |
|
||||||
|
| YAML | `.yml`, `.yaml` |
|
||||||
|
|
||||||
|
Every other text file shows plain text. The status bar shows the language name.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+S` | Save the open file |
|
||||||
|
| `Cmd+W` | Close the open file (or the window when none is open) |
|
||||||
|
| `Cmd+M` | Switch a Markdown file between code and Preview |
|
||||||
|
| `Cmd+A` | Select the whole file |
|
||||||
|
| `Tab` / `Shift+Tab` | Indent / outdent |
|
||||||
|
| `Cmd+Z` / `Cmd+Shift+Z` | Undo / redo |
|
||||||
|
| `Cmd+Right` | Pass on the selection to the agent (with text selected) |
|
||||||
|
| `Cmd`+click | Open the symbol popup for a PHP class name |
|
||||||
|
| `Cmd+F` | Search the project, seeded with the selection |
|
||||||
|
| `Cmd+Up` / `Cmd+Down` | Recent files |
|
||||||
|
| `Cmd+R` | Reload from disk (drops unsaved edits) |
|
||||||
|
| `Cmd++` / `Cmd+-` / `Cmd+0` | Zoom in / zoom out / actual size |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `editor.autoSave` | `false` | Save about 0.6 s after you stop typing, and never ask about unsaved edits |
|
||||||
|
| `editor.tabSize` | `4` | Spaces inserted by `Tab`, and the width of one indent level |
|
||||||
|
| `editor.wordWrap` | `markdown` | `markdown` wraps Markdown only, `on` wraps all files, `off` wraps none |
|
||||||
|
| `session.restoreOnLaunch` | `true` | Reopen the last open file when the project opens |
|
||||||
|
|
||||||
|
See [Configuration](configuration.md) for where these live.
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [File view: Markdown](file-view-markdown.md): the rendered Preview for Markdown files.
|
||||||
|
- [File view: Diff](file-view-diff.md): the full-screen side-by-side comparison.
|
||||||
|
- [Code symbols](code-symbols.md): where a PHP class is declared and used.
|
||||||
|
- [Pass on to Agent](pass-on-to-agent.md): send a line or a selection to Claude.
|
||||||
|
- [Git](git.md): the changes that drive the line marks and the counts.
|
||||||
|
- [Status bar](status-bar.md): caret position, indentation and language.
|
||||||
|
- [Layout](layout.md): how the File column shows, hides and resizes.
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
[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. **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.
|
||||||
|
|
||||||
|
## 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.
|
||||||
|
- 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.
|
||||||
|
- This keeps dictated or pasted text as one short subject line.
|
||||||
|
- The draft stays in the field while you work elsewhere in the window.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
|
A commit only happens when both are true:
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
### After a commit
|
||||||
|
|
||||||
|
- The message field clears.
|
||||||
|
- The committed files leave **Staged Changes**. Unstaged edits stay in **Changes**.
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
|
## 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+P` | Push the current branch (while the [note](notes.md) is open, `Cmd+P` passes the note on instead) |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Git](git.md): the column 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.
|
||||||
@@ -0,0 +1,185 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
[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)
|
||||||
|
|
||||||
|
## 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. **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).
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Two groups: staged and unstaged
|
||||||
|
|
||||||
|
- **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.
|
||||||
|
|
||||||
|
There is no column header or title. The column starts with the first group.
|
||||||
|
|
||||||
|
### Row anatomy
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
Hover a row to see its full project-relative path in a tooltip.
|
||||||
|
|
||||||
|
### Status letters and colours
|
||||||
|
|
||||||
|
| 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 |
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
### Open a file from a row
|
||||||
|
|
||||||
|
- **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).
|
||||||
|
|
||||||
|
### Stage and unstage one file
|
||||||
|
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
|
## 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+P` | Push the current branch |
|
||||||
|
| `Cmd+G` | Show or hide the Git column |
|
||||||
|
| `Cmd+R` | Re-read git, the file tree and the open file |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
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.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.
|
||||||
|
- [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.
|
||||||
|
- [Keyboard shortcuts](keyboard-shortcuts.md): every shortcut in one list.
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
# Go to file
|
||||||
|
|
||||||
|
Go to file is the **Recent files** list: a small card at the top of the window with the files you opened in this project, newest first. It opens from the file view with `Cmd+Up` or `Cmd+Down`.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Search](search.md), [File view](file-view.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+------------------------------------------------------+
|
||||||
|
| (1) Recent files (2) 12 files . Cmd+Dn Cmd+Up Ent |
|
||||||
|
+------------------------------------------------------+
|
||||||
|
| (3) [php] app.php |
|
||||||
|
| src/ |
|
||||||
|
| (4)>[php] Handler.php * |
|
||||||
|
| src/Http/ |
|
||||||
|
| [md] README.md |
|
||||||
|
+------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Header**: the title of the card.
|
||||||
|
2. **Count and keys**: how many files the list holds, and the keys to use.
|
||||||
|
3. **Row**: a type badge, the file name, and its folder below it.
|
||||||
|
4. **Selected row**: highlighted. An amber dot marks a file with uncommitted git changes.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### What the list holds
|
||||||
|
- Every file you open goes to the top of the list. A file appears only once.
|
||||||
|
- The list keeps up to 100 files per project, and is remembered across launches.
|
||||||
|
- Renamed files follow their new name. Deleted files drop out.
|
||||||
|
- With no history yet, the card says "No files opened yet".
|
||||||
|
|
||||||
|
### Opening the list
|
||||||
|
- Click in the [file view](file-view.md) so it has the focus, then press `Cmd+Down` or `Cmd+Up`.
|
||||||
|
- `Cmd+Down` starts on the previous file (the second row), so one `Cmd+Down` and `Enter` jumps back to it.
|
||||||
|
- `Cmd+Up` starts on the current file (the first row).
|
||||||
|
- The keys only open the list when there is at least one file in it.
|
||||||
|
|
||||||
|
### Moving and opening
|
||||||
|
- `Up`/`Down` or `Cmd+Up`/`Cmd+Down` move the selection. It stops at the first and last row.
|
||||||
|
- Hover a row to select it. Click a row to open it.
|
||||||
|
- `Enter` opens the selected file and closes the card.
|
||||||
|
- `Esc`, or a click outside the card, closes it.
|
||||||
|
|
||||||
|
### No typing
|
||||||
|
- This list has no search field and no fuzzy matching. To find a file by name, use the **Files** column of [Search](search.md) (`Cmd+F`).
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+Down` (in the file view) | Open the list on the previous file |
|
||||||
|
| `Cmd+Up` (in the file view) | Open the list on the current file |
|
||||||
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
|
||||||
|
| `Enter` | Open the selected file |
|
||||||
|
| `Esc` | Close |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Search](search.md): fuzzy file-name search with `Cmd+F`.
|
||||||
|
- [File view](file-view.md): where the file opens.
|
||||||
|
- [Explorer](explorer.md): the opened file is selected in the tree.
|
||||||
|
- [Keyboard shortcuts](keyboard-shortcuts.md): every key in one list.
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
# Helder user guide
|
||||||
|
|
||||||
|
This guide explains Helder from the user's side: what each part of the window shows, and what you can do there. Each page covers one area and has an ASCII sketch of it.
|
||||||
|
|
||||||
|
[Docs index](../index.md)
|
||||||
|
|
||||||
|
## The window
|
||||||
|
|
||||||
|
```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] | | | $ _ |
|
||||||
|
+-----------+-----------+----------------------------------+-----------------+
|
||||||
|
| (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.
|
||||||
|
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.
|
||||||
|
6. [Command line](command-line.md): a shell in the project folder.
|
||||||
|
7. [Status bar](status-bar.md): branch, totals and cursor details.
|
||||||
|
|
||||||
|
## All areas
|
||||||
|
|
||||||
|
### Window and project
|
||||||
|
|
||||||
|
- [Layout](layout.md): columns, splitters, pane toggles, Fluid and Hidden.
|
||||||
|
- [Title bar](title-bar.md): the bar across the top.
|
||||||
|
- [Status bar](status-bar.md): the bar across the bottom.
|
||||||
|
- [Start screen](start-screen.md): the window before a project is open.
|
||||||
|
- [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](git.md): the Source Control column.
|
||||||
|
- [Git commit form](git-commit-form.md): write a message, commit and push.
|
||||||
|
- [Explorer](explorer.md): browse, create, rename and delete files.
|
||||||
|
|
||||||
|
### The file view
|
||||||
|
|
||||||
|
- [File view](file-view.md): open, read and edit one file.
|
||||||
|
- [File view: Markdown](file-view-markdown.md): Markdown source and rendered preview.
|
||||||
|
- [File view: Diff](file-view-diff.md): the full-screen side-by-side comparison.
|
||||||
|
- [Code symbols](code-symbols.md): PHP symbol lookup.
|
||||||
|
- [Pass on to Agent](pass-on-to-agent.md): send code references to Claude.
|
||||||
|
|
||||||
|
### Agent and terminal
|
||||||
|
|
||||||
|
- [Claude Code](claude-code.md): the agent pane.
|
||||||
|
- [Command line](command-line.md): the shell pane.
|
||||||
|
|
||||||
|
### Finding things
|
||||||
|
|
||||||
|
- [Search](search.md): search file contents and names at once.
|
||||||
|
- [Go to file](go-to-file.md): the Recent files list, to jump back to a file you had open.
|
||||||
|
- [Notes](notes.md): the project's scratch note.
|
||||||
|
|
||||||
|
### Menus, dialogs and keys
|
||||||
|
|
||||||
|
- [Right-click menu](right-click-menu.md): every context menu in one place.
|
||||||
|
- [Dialogs](dialogs.md): confirmations and name prompts.
|
||||||
|
- [Keyboard shortcuts](keyboard-shortcuts.md): every shortcut, grouped by area.
|
||||||
|
- [Configuration](configuration.md): every setting in `.helder/config.json`.
|
||||||
@@ -0,0 +1,207 @@
|
|||||||
|
# Keyboard shortcuts
|
||||||
|
|
||||||
|
Helder is built to run from the keyboard. Press `?` to see a short list of the main shortcuts in an overlay; this page lists every shortcut in the app, grouped by area.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Window layout](layout.md), [Title bar](title-bar.md), [Configuration](configuration.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| +----------------------------------------------+ |
|
||||||
|
| | (?) Keyboard shortcuts [esc] | (1) |
|
||||||
|
| +----------------------------------------------+ |
|
||||||
|
| | NAVIGATE (2) | |
|
||||||
|
| | [Cmd][F] Search contents and names (3) | |
|
||||||
|
| | [Cmd][Up Dn] Move through a list | |
|
||||||
|
| | ... | |
|
||||||
|
| | AGENT | |
|
||||||
|
| | [Cmd][->] Pass the selection to agent | |
|
||||||
|
| | ... | |
|
||||||
|
| | GIT | |
|
||||||
|
| | ... | |
|
||||||
|
| | FILE | |
|
||||||
|
| | ... | |
|
||||||
|
| +----------------------------------------------+ |
|
||||||
|
| (dimmed workspace behind) |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Header**: a question-mark icon, the title and an `esc` chip.
|
||||||
|
2. **Group label**: NAVIGATE, AGENT, GIT and FILE.
|
||||||
|
3. **Row**: the keys as keycaps, then what they do.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### The shortcuts overlay
|
||||||
|
- Open it with `?` when no text field, code view or terminal has the keyboard. You can also click the `?` button in the [title bar](title-bar.md), or choose View > Keyboard Shortcuts or Help > Keyboard Shortcuts.
|
||||||
|
- 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.
|
||||||
|
- **Agent**: pass the selection to the agent, the project note, pass on the whole note.
|
||||||
|
- **Git**: focus the commit message, commit, Git column on or off, push.
|
||||||
|
- **File**: save, Markdown preview, close, refresh, hidden files, select all, Fluid columns, zoom, and `Esc`.
|
||||||
|
- The full reference is below.
|
||||||
|
|
||||||
|
### How Helder decides who gets a key
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
### Window and project
|
||||||
|
See [Window layout](layout.md), [Start screen](start-screen.md) and [Recent projects](recent-projects.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Shift+Cmd+N` | New window, on the start screen |
|
||||||
|
| `Cmd+O` | Open a folder in this window |
|
||||||
|
| `Shift+Cmd+O` | Open a recent project |
|
||||||
|
| `Cmd+W` | Close the open file, or the window when no file is open |
|
||||||
|
| `Shift+Cmd+W` | Close the window |
|
||||||
|
| `Cmd+Q` | Quit (asks about unsaved files first) |
|
||||||
|
| `Cmd+R` | Refresh git, the file tree and the open file from disk |
|
||||||
|
| `Ctrl+Cmd+F` | Enter or exit full screen |
|
||||||
|
| `?` | Keyboard shortcuts overlay (outside text fields and terminals) |
|
||||||
|
|
||||||
|
### Layout and focus
|
||||||
|
See [Window layout](layout.md) and [Title bar](title-bar.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+G` | Show or hide the Git 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) |
|
||||||
|
| `Cmd++` | Zoom in (code, Diff and terminal text) |
|
||||||
|
| `Cmd+-` | Zoom out |
|
||||||
|
| `Cmd+0` | Actual size |
|
||||||
|
|
||||||
|
### Start screen
|
||||||
|
See [Start screen](start-screen.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
|
||||||
|
| `Return` | Open the selected row |
|
||||||
|
|
||||||
|
### Git column
|
||||||
|
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 |
|
||||||
|
|
||||||
|
### Explorer
|
||||||
|
See [Explorer](explorer.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Up` / `Down` | Move the row cursor (when the column is active) |
|
||||||
|
| `Return` | Open the file, or open or close the folder |
|
||||||
|
| `Cmd+Right` | Open the selected row's menu |
|
||||||
|
|
||||||
|
### File view
|
||||||
|
See [File view](file-view.md), [Markdown](file-view-markdown.md) and [Code symbols](code-symbols.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+S` | Save the file |
|
||||||
|
| `Cmd+W` | Close the file |
|
||||||
|
| `Cmd+M` | Markdown: switch between code and the rendered preview |
|
||||||
|
| `Cmd+A` | Select all in the file (also when the code view does not have the keyboard) |
|
||||||
|
| `Cmd+Up` / `Cmd+Down` | Open the recent files list (when the File column has focus) |
|
||||||
|
| `Tab` / `Shift+Tab` | Indent or outdent the line or selection |
|
||||||
|
| `Cmd+click` on a PHP class name | Show its declaration and references |
|
||||||
|
| Click a line number | Select that line |
|
||||||
|
| `Shift+click` a line number | Extend the selection to that line |
|
||||||
|
| Click a marked (changed) line | Open the Diff at that line |
|
||||||
|
|
||||||
|
### Recent files list
|
||||||
|
See [Go to file](go-to-file.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
|
||||||
|
| `Return` | Open the selected file |
|
||||||
|
| `Esc` | Close the list |
|
||||||
|
|
||||||
|
### Diff
|
||||||
|
See [Diff view](file-view-diff.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Esc` | Close the menu, then the pass-on prompt, then the Diff itself |
|
||||||
|
| `Cmd+A` | Select all lines on one side |
|
||||||
|
| `Cmd+C` | Copy the selected lines |
|
||||||
|
| `Up` / `Down`, `Return` | Move through and choose in the Diff's right-click menu |
|
||||||
|
|
||||||
|
### Pass on to the agent
|
||||||
|
See [Pass on to agent](pass-on-to-agent.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+Right` | Pass the selected code to the agent (with a selection in the File column) |
|
||||||
|
| `Return` | Insert the reference into the agent |
|
||||||
|
| `Esc` | Cancel |
|
||||||
|
|
||||||
|
### Search
|
||||||
|
See [Search](search.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+F` | Open search; selected text becomes the query |
|
||||||
|
| `Cmd+Left` / `Cmd+Right` | Move to the column on the left or right |
|
||||||
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move through the results in a column |
|
||||||
|
| `Return` | Open the selected result |
|
||||||
|
| `Esc` | Close search |
|
||||||
|
|
||||||
|
### Notes
|
||||||
|
See [Notes](notes.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+N` | Open the project note |
|
||||||
|
| `Cmd+P` | Pass the whole note to the agent (while the note is open) |
|
||||||
|
| `Esc` | Close the note (it saves) |
|
||||||
|
|
||||||
|
### Right-click menus and dialogs
|
||||||
|
See [Right-click menu](right-click-menu.md) and [Dialogs](dialogs.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `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 |
|
||||||
|
|
||||||
|
### Terminals
|
||||||
|
See [Claude Code](claude-code.md) and [Command line](command-line.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Opt+Left` / `Opt+Right` | Jump back or forward one word (when `terminal.optionIsMeta` is off) |
|
||||||
|
| Select text | Copies it to the clipboard |
|
||||||
|
|
||||||
|
### Recent projects
|
||||||
|
See [Recent projects](recent-projects.md).
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Up` / `Down`, `Cmd+Up` / `Cmd+Down` | Move the selection |
|
||||||
|
| `Return` | Switch to the selected project |
|
||||||
|
| `Esc` | Close the list |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Window layout](layout.md): columns, focus and zoom.
|
||||||
|
- [Title bar](title-bar.md): the buttons that match many of these shortcuts.
|
||||||
|
- [Configuration](configuration.md): `terminal.optionIsMeta` changes what `Opt` does in a terminal.
|
||||||
@@ -0,0 +1,165 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Title bar](title-bar.md), [Status bar](status-bar.md), [Keyboard shortcuts](keyboard-shortcuts.md), [Configuration](configuration.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| ooo Helder. shop . main app>User.php [Git|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) |
|
||||||
|
+-----------+------------+-------------------------------+-------------------+
|
||||||
|
| main +50 -38 1 staged . 2 unstaged app/User.php . Ln 3, Col 1 . PHP |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
^ ^ ^ (7)
|
||||||
|
(8) (8) (8)
|
||||||
|
```
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### The four columns
|
||||||
|
- From left to right: **Git**, **Explorer**, **File**, and **Claude + Terminal**.
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
### Splitters and resizing
|
||||||
|
- A splitter is a 1-point line. It turns amber when you hover or drag it, and the pointer becomes a resize arrow.
|
||||||
|
- 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.
|
||||||
|
- The Claude pane takes between 18% and 82% of the right column's height.
|
||||||
|
- Dragging a column splitter switches **Fluid** off. The widths you set then stay put.
|
||||||
|
|
||||||
|
### 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:
|
||||||
|
- 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.
|
||||||
|
- With **Fluid** off, the columns keep the widths you dragged them to.
|
||||||
|
- When the window gets too narrow, the fixed columns shrink together, so File keeps at least 280 points.
|
||||||
|
- 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.
|
||||||
|
- 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.
|
||||||
|
- It starts off every time you open a project.
|
||||||
|
- 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.
|
||||||
|
- `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.
|
||||||
|
|
||||||
|
### Refresh (`Cmd+R`)
|
||||||
|
- Re-reads git, the file tree and the open file from disk. The disk wins over unsaved edits in the open file.
|
||||||
|
- Every column flashes lighter for a moment, so you can see the refresh happened even when nothing changed.
|
||||||
|
- Helder also watches the disk and refreshes by itself. `Cmd+R` is for when you want to be sure.
|
||||||
|
|
||||||
|
### Zoom
|
||||||
|
- View > Zoom In (`Cmd++`), Zoom Out (`Cmd+-`) and Actual Size (`Cmd+0`).
|
||||||
|
- Zoom changes the text size of the code, the Diff and both terminals. The rest of the interface stays the same size.
|
||||||
|
- Each step is a half step; one whole step is 20% larger. You can go 3 steps down and 5 steps up.
|
||||||
|
- The zoom level is shared by all projects and kept between launches.
|
||||||
|
|
||||||
|
### Full screen
|
||||||
|
- View > Enter Full Screen (`Ctrl+Cmd+F`).
|
||||||
|
- In full screen the title bar moves its content left, into the space the window buttons used.
|
||||||
|
|
||||||
|
### Windows: one project per window
|
||||||
|
- Every window shows exactly one project. There are no tabs.
|
||||||
|
- Each window runs as its own Helder app. The Dock and `Cmd+Tab` show the project's title, so you can tell projects apart.
|
||||||
|
- **New Window** (`Shift+Cmd+N`, File menu, or the Dock menu) opens a fresh window on the [start screen](start-screen.md).
|
||||||
|
- **Open Folder** (`Cmd+O`) and **Open Recent** switch the current window to another project. Helder asks about unsaved files first. See [Recent projects](recent-projects.md).
|
||||||
|
- A launch opens one window. macOS does not reopen old windows.
|
||||||
|
- The Dock's right-click menu shows the current project's title and a **New Window** item.
|
||||||
|
|
||||||
|
### Coming back to a window
|
||||||
|
- When you switch back to a Helder window, a small card shows the branch and the project name in the middle of the window for half a second.
|
||||||
|
- This tells you at a glance which project you are in. It does not show on launch.
|
||||||
|
|
||||||
|
### Closing and quitting
|
||||||
|
- `Cmd+W` closes the open file. With no file open, it closes the window.
|
||||||
|
- `Shift+Cmd+W` closes the window.
|
||||||
|
- Before a window closes, or the app quits with `Cmd+Q`, Helder asks about every file with unsaved edits. It saves the project note and the session too. Cancel keeps the window open.
|
||||||
|
|
||||||
|
### What Helder remembers
|
||||||
|
Per project, always:
|
||||||
|
- Which of the four columns are shown.
|
||||||
|
- Whether **Fluid** is on.
|
||||||
|
- The column widths, when **Fluid** is off.
|
||||||
|
|
||||||
|
Per project, when `session.restoreOnLaunch` is on (default):
|
||||||
|
- The open file and its view (code or Markdown preview). A file that was in the Diff opens on the live file.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+G` | Show or hide the Git 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) |
|
||||||
|
| `Cmd+R` | Refresh git, the tree and the open file |
|
||||||
|
| `Cmd++` / `Cmd+-` / `Cmd+0` | Zoom in, zoom out, actual size |
|
||||||
|
| `Ctrl+Cmd+F` | Enter or exit full screen |
|
||||||
|
| `Shift+Cmd+N` | New window |
|
||||||
|
| `Cmd+W` | Close the file, or the window when no file is open |
|
||||||
|
| `Shift+Cmd+W` | Close the window |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `session.restoreOnLaunch` | `true` | Reopens the last open file and its view when the project opens |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Title bar](title-bar.md): the pane toggles and the Fluid and Hidden buttons live here.
|
||||||
|
- [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.
|
||||||
|
- [Keyboard shortcuts](keyboard-shortcuts.md): every shortcut in one list.
|
||||||
|
- [Configuration](configuration.md): all per-project settings.
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
# Notes
|
||||||
|
|
||||||
|
The note is one plain-text scratch pad per project. It opens as a card at the top of the window with `Cmd+N`.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Claude Code](claude-code.md), [Pass on to Agent](pass-on-to-agent.md), [Title bar](title-bar.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------+
|
||||||
|
| (1) Note .notes.txt (2) [ To the agent Cmd+P ] |
|
||||||
|
+----------------------------------------------------------------+
|
||||||
|
| (3) |
|
||||||
|
| - check the refund flow after the merge |
|
||||||
|
| - ask Claude to add tests for Handler::handle_ |
|
||||||
|
| |
|
||||||
|
+----------------------------------------------------------------+
|
||||||
|
| (4) saved on focus loss . 92 characters |
|
||||||
|
+----------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Header**: the title and the file name, `.notes.txt`.
|
||||||
|
2. **To the agent**: sends the whole note to Claude.
|
||||||
|
3. **Text area**: plain text in a monospaced font, with an amber caret.
|
||||||
|
4. **Footer**: when the note saves, and how many characters it holds.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### What a note is
|
||||||
|
- One note per project. Use it for to-dos, questions for Claude, or anything you want to keep next to the code.
|
||||||
|
- It is plain text. There is no formatting and no Markdown preview.
|
||||||
|
- An empty note shows the hint "Anything you want to keep next to this project…".
|
||||||
|
|
||||||
|
### Where it is stored
|
||||||
|
- The note is the file `.notes.txt` in the root of the project.
|
||||||
|
- You can open and edit that file in any other editor too. When it changes outside Helder, the note picks up the change, unless you have unsaved typing in it.
|
||||||
|
- Like any file, `.notes.txt` shows up in [Git](git.md) unless you ignore it.
|
||||||
|
|
||||||
|
### Opening
|
||||||
|
- Press `Cmd+N`, or click **Note** in the [title bar](title-bar.md).
|
||||||
|
- The caret starts at the end of the text, so you can add a line at once.
|
||||||
|
|
||||||
|
### Saving
|
||||||
|
There is no save key. The note saves itself when:
|
||||||
|
- you close it (`Esc` or a click outside the card),
|
||||||
|
- the window loses focus,
|
||||||
|
- the window closes.
|
||||||
|
|
||||||
|
It only writes when the text changed. If a save fails, a [notification](notifications.md) says "Save failed".
|
||||||
|
|
||||||
|
### Passing the note to the agent
|
||||||
|
- Press `Cmd+P` or click **To the agent**.
|
||||||
|
- The whole note, trimmed, goes into Claude's composer. It is not submitted; press `Enter` in Claude to send it.
|
||||||
|
- The note closes, so you see the text land, and a notification says "Note passed to agent".
|
||||||
|
- An empty note sends nothing.
|
||||||
|
- In the note, `Cmd+P` passes the note. It does not push, as it does elsewhere.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+N` | Open the note |
|
||||||
|
| `Cmd+P` | Pass the note to Claude and close it |
|
||||||
|
| `Esc` | Close and save |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Claude Code](claude-code.md): where the passed note arrives.
|
||||||
|
- [Pass on to Agent](pass-on-to-agent.md): send code references instead of the note.
|
||||||
|
- [Title bar](title-bar.md): the Note button.
|
||||||
|
- [Notifications](notifications.md): the confirmation and the save-failed message.
|
||||||
|
- [Keyboard shortcuts](keyboard-shortcuts.md): every key in one list.
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
# Notifications
|
||||||
|
|
||||||
|
Helder confirms what it just did with a toast: a small card that appears near the bottom centre of the window and goes away on its own. Toasts never ask for anything and never block your work.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Window layout](layout.md), [Git](git.md), [Explorer](explorer.md), [Pass on to agent](pass-on-to-agent.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| |
|
||||||
|
| (workspace) |
|
||||||
|
| |
|
||||||
|
| +-------------------------------------------+ |
|
||||||
|
| |# [] Committed 2 files [Fix the login fo..]| (1) |
|
||||||
|
| +-------------------------------------------+ |
|
||||||
|
| |# [] Pushed [main -> main] | |
|
||||||
|
| +-------------------------------------------+ |
|
||||||
|
| ^ ^ ^ ^ |
|
||||||
|
| (2)(3) (4) (5) |
|
||||||
|
| |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| status bar |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Toast stack**: one card per message, newest at the bottom.
|
||||||
|
2. **Amber edge**: a thin amber rule on the left side of the card.
|
||||||
|
3. **Icon**: a small amber icon.
|
||||||
|
4. **Title**: what happened, in bright text.
|
||||||
|
5. **Detail**: the file, reference or message it is about, in a small amber chip.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### What a toast looks like
|
||||||
|
- A dark card with a thin border, a soft shadow and an amber rule on its left edge.
|
||||||
|
- The title says what happened, for example "Saved" or "Push failed".
|
||||||
|
- Most toasts carry a detail in an amber chip: a file path, a reference, a commit subject or a git message.
|
||||||
|
- A long detail is cut in the middle, so you see its start and its end.
|
||||||
|
- A card is never wider than 560 points.
|
||||||
|
|
||||||
|
### Where it appears
|
||||||
|
- Centred at the bottom of the window, 44 points above the bottom edge, just over the status bar.
|
||||||
|
- Several toasts stack on top of each other.
|
||||||
|
- Toasts may sit on top of an open overlay, such as search or the note.
|
||||||
|
|
||||||
|
### How it goes away
|
||||||
|
- Each toast disappears by itself after about 2.3 seconds.
|
||||||
|
- You cannot click a toast. Clicks go through it to whatever is underneath.
|
||||||
|
|
||||||
|
### When toasts appear
|
||||||
|
|
||||||
|
Files and the editor:
|
||||||
|
|
||||||
|
| Title | Detail | When |
|
||||||
|
|---|---|---|
|
||||||
|
| Saved | file path | You saved a file with `Cmd+S` (auto-save does not toast) |
|
||||||
|
| Save failed | file path | A file could not be written |
|
||||||
|
| Created file / Created folder | new path | After New File or New Folder |
|
||||||
|
| Renamed file / Renamed folder | new path | After Rename |
|
||||||
|
| Deleted file / Deleted folder | path | After Delete |
|
||||||
|
| Create failed / Rename failed / Delete failed | path or name | The file action did not work |
|
||||||
|
| Copied reference | the reference | After Copy reference, for example `app/User.php:42` |
|
||||||
|
| Copied | file name | After Copy file name |
|
||||||
|
|
||||||
|
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 |
|
||||||
|
|
||||||
|
The agent and the note:
|
||||||
|
|
||||||
|
| Title | Detail | When |
|
||||||
|
|---|---|---|
|
||||||
|
| Passed to agent | the reference | Text was inserted into the Claude pane |
|
||||||
|
| Note passed to agent | `.notes.txt` | You passed the whole note with `Cmd+P` |
|
||||||
|
| Save failed | `.notes.txt` | The project note could not be saved |
|
||||||
|
|
||||||
|
### Other short messages
|
||||||
|
Two other messages appear for a moment, but they are not toasts:
|
||||||
|
- **Too big.**: an amber word in the middle of the File column, for 1.6 seconds, when a file is too large to open, such as `composer.lock`. See [File view](file-view.md).
|
||||||
|
- **Branch and project card**: when you switch back to a Helder window, a card with the branch and the project name shows in the middle for half a second. See [Window layout](layout.md).
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Git](git.md): commit, push, stage and discard, 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.
|
||||||
|
- [Notes](notes.md): passing and saving the note.
|
||||||
|
- [Dialogs](dialogs.md): prompts that do ask you something, unlike toasts.
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
# Pass on to Agent
|
||||||
|
|
||||||
|
Pass on to Agent sends a pointer to your code to the [Claude Code](claude-code.md) pane: a file path with a line or a line range, and optionally the selected code and a note. Copy reference puts the same pointer on the clipboard instead.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [File view](file-view.md), [Diff](file-view-diff.md), [Claude Code](claude-code.md), [Right-click menu](right-click-menu.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
app/Http/UserController.php:42-45 (1) menu header
|
||||||
|
+--------------------------------------+
|
||||||
|
| * Pass on selection | (2)
|
||||||
|
| Copy reference | (3)
|
||||||
|
+--------------------------------------+
|
||||||
|
|
||||||
|
+----------------------------------------------+
|
||||||
|
| * Pass on to agent [esc] | (4)
|
||||||
|
| +------------------------------------------+ |
|
||||||
|
| | Add a note (optional)... | | (5)
|
||||||
|
| +------------------------------------------+ |
|
||||||
|
| Inserts [ check the eager load app/Http/ ] | (6)
|
||||||
|
| [ UserController.php:42-45 ] |
|
||||||
|
| [ ``` ] |
|
||||||
|
| [ $user->load('roles'); ] |
|
||||||
|
| [ ``` ] |
|
||||||
|
| (enter) insert into agent (esc) cancel | (7)
|
||||||
|
+----------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Header**: the reference the menu acts on.
|
||||||
|
2. **Pass on**: "Pass on selection" with text selected, else "Pass on reference". Opens the prompt.
|
||||||
|
3. **Copy reference**: copies the reference to the clipboard.
|
||||||
|
4. **Prompt title**: marked with the amber spark that marks every pass-on action.
|
||||||
|
5. **Note field**: an optional note. The keyboard starts here.
|
||||||
|
6. **Inserts**: a live preview of the exact text that goes to the agent.
|
||||||
|
7. **Hints**: `Enter` inserts, `Esc` cancels.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### The reference format
|
||||||
|
- A single line: `path:line`, for example `app/Http/UserController.php:42`.
|
||||||
|
- A range of lines: `path:start-end`, for example `app/Http/UserController.php:42-58`.
|
||||||
|
- The path is relative to the project folder.
|
||||||
|
- With text selected, the range covers every line the selection touches.
|
||||||
|
- With nothing selected, the reference is the line you right-clicked.
|
||||||
|
|
||||||
|
### Right-click in the code
|
||||||
|
- Right-click anywhere in the [file view](file-view.md). The menu has exactly two items: a Pass on item and **Copy reference**.
|
||||||
|
- Without a selection: **Pass on reference** and **Copy reference**, for the clicked line.
|
||||||
|
- With a selection: **Pass on selection** (sends the reference and the selected code) and **Copy reference** (copies only the reference).
|
||||||
|
- In the Markdown [Preview](file-view-markdown.md) and on an image, the reference points at line 1 of the file.
|
||||||
|
- In the [Diff](file-view-diff.md), right-click a line on either side. The reference uses the line number of that side. The Diff passes on a reference, not code.
|
||||||
|
|
||||||
|
### Copy reference
|
||||||
|
- Puts the reference on the clipboard.
|
||||||
|
- A "Copied reference" [notification](notifications.md) shows the reference.
|
||||||
|
|
||||||
|
### The pass-on prompt
|
||||||
|
- Opens next to the click or the selection.
|
||||||
|
- Type a note, or leave the field empty.
|
||||||
|
- `Enter` inserts the text into the Claude Code pane. `Esc`, or a click outside the prompt, cancels without inserting.
|
||||||
|
- What is inserted:
|
||||||
|
- Reference only, no note: `app/User.php:42`
|
||||||
|
- Reference with a note: `check this => app/User.php:42`
|
||||||
|
- Selection: the note (if any) and the reference on one line, then the selected code in a fenced code block.
|
||||||
|
- A "Passed to agent" [notification](notifications.md) confirms the insert and shows the reference.
|
||||||
|
|
||||||
|
### How the text lands in Claude Code
|
||||||
|
- The text goes into Claude's input as pasted text. It is never submitted.
|
||||||
|
- You can read it, edit it, and press `Enter` in the Claude pane yourself when you are ready.
|
||||||
|
- The keyboard stays where it was. Click the Claude pane, or move focus there, to send.
|
||||||
|
|
||||||
|
### Stack several references
|
||||||
|
- Pass on as many references as you like before you send.
|
||||||
|
- When Claude's input already holds text, each new insert starts on a new line.
|
||||||
|
- Once you send (press `Enter` in Claude), the next insert starts a fresh message.
|
||||||
|
|
||||||
|
### Pass on with the keyboard
|
||||||
|
- Select text in the file view and press `Cmd+Right`. The prompt opens for that selection, with the code included.
|
||||||
|
- 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**.
|
||||||
|
- The project [note](notes.md) can be passed on as a whole.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+Right` | Open the pass-on prompt for the selected code |
|
||||||
|
| `Enter` | Insert into the agent (in the prompt) |
|
||||||
|
| `Esc` | Cancel the prompt or close the menu |
|
||||||
|
| `Up` / `Down` / `Enter` | Choose a menu item |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Claude Code](claude-code.md): the pane that receives the text.
|
||||||
|
- [File view](file-view.md): select code and right-click.
|
||||||
|
- [File view: Diff](file-view-diff.md): pass on a line from the comparison.
|
||||||
|
- [Right-click menu](right-click-menu.md): all menus and their pass-on items.
|
||||||
|
- [Notifications](notifications.md): the confirmations after copy and pass on.
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
# Recent projects
|
||||||
|
|
||||||
|
The **Open recent project** overlay lists the projects you opened before, so you can switch the current window to one of them. It opens with `Shift+Cmd+O` and floats over the top of the window.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Start screen](start-screen.md), [Window layout](layout.md), [Title bar](title-bar.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| |
|
||||||
|
| +----------------------------------------------------------+ |
|
||||||
|
| | [] Open recent project 3 projects . [Cmd+Down] | (1) |
|
||||||
|
| | [Cmd+Up] [Return] | |
|
||||||
|
| +----------------------------------------------------------+ |
|
||||||
|
| | [] helder | (2) |
|
||||||
|
| | ~/code/helder | |
|
||||||
|
| | [] blog | |
|
||||||
|
| | ~/sites/blog | |
|
||||||
|
| | [] api | |
|
||||||
|
| | ~/code/api | |
|
||||||
|
| +----------------------------------------------------------+ |
|
||||||
|
| (dimmed workspace behind) (3) |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Header**: a folder icon, the title, the number of projects and the keys to use.
|
||||||
|
2. **Project rows**: a folder icon, the project name, and the full path below it.
|
||||||
|
3. **Backdrop**: the workspace, dimmed. Click it to close the overlay.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Opening the overlay
|
||||||
|
- Press `Shift+Cmd+O`, or choose File > Open Recent Project....
|
||||||
|
- It only works when a project is open. On the [start screen](start-screen.md), the recent list is already on the screen.
|
||||||
|
- The list re-reads the recent projects each time it opens, so a project opened in another window shows up too.
|
||||||
|
|
||||||
|
### What the list shows
|
||||||
|
- Your recent projects, newest first.
|
||||||
|
- The project in this window is left out.
|
||||||
|
- Projects whose folder no longer exists are left out.
|
||||||
|
- Up to 20 projects are kept.
|
||||||
|
- With no other projects, the list reads "No other recent projects".
|
||||||
|
- Hover a row to see its full path in a tooltip.
|
||||||
|
|
||||||
|
### Choosing a project
|
||||||
|
- Click a row, or select it and press `Return`.
|
||||||
|
- The current window switches to that project. Helder first asks about any file with unsaved edits. If you cancel, you stay in the current project.
|
||||||
|
- The project's terminals restart in the new folder, and its saved layout and open file come back. See [Window layout](layout.md).
|
||||||
|
|
||||||
|
### Moving the selection
|
||||||
|
- `Up` / `Down` or `Cmd+Up` / `Cmd+Down` move the selection. It stops at the ends.
|
||||||
|
- Hovering a row selects it. When you move with the keys, a still mouse does not steal the selection back.
|
||||||
|
|
||||||
|
### Closing
|
||||||
|
- Press `Esc`, or click the dimmed backdrop.
|
||||||
|
|
||||||
|
### Other ways to open a project
|
||||||
|
- **File > Open Folder...** (`Cmd+O`), or a click on the project name in the [title bar](title-bar.md): opens the macOS folder picker. The chosen folder replaces the project in this window.
|
||||||
|
- **File > Open Recent**: a submenu with the same recent projects, minus the current one. It reads "No Recent Projects" when empty.
|
||||||
|
- **File > New Window** (`Shift+Cmd+N`): opens a separate window on the [start screen](start-screen.md), so you can work on two projects side by side.
|
||||||
|
- With no Helder window in front, Open Folder and Open Recent open the project in a new window.
|
||||||
|
|
||||||
|
### Where the list lives
|
||||||
|
The recent list is shared by all Helder windows on your Mac. Every project you open moves to the top of it.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Shift+Cmd+O` | Open the recent projects overlay |
|
||||||
|
| `Up` / `Down` | Move the selection |
|
||||||
|
| `Cmd+Up` / `Cmd+Down` | Move the selection |
|
||||||
|
| `Return` | Switch to the selected project |
|
||||||
|
| `Esc` | Close the overlay |
|
||||||
|
| `Cmd+O` | Open a folder with the folder picker |
|
||||||
|
| `Shift+Cmd+N` | Open a new window |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Start screen](start-screen.md): the recent list in a window without a project.
|
||||||
|
- [Title bar](title-bar.md): click the project name to open another folder.
|
||||||
|
- [Window layout](layout.md): one project per window, and what is restored on switch.
|
||||||
|
- [Dialogs](dialogs.md): the save prompt for unsaved files before a switch.
|
||||||
@@ -0,0 +1,270 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
[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)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| (1) app/Http/UserController.php |
|
||||||
|
|----------------------------------------|
|
||||||
|
| (2)|* Pass on reference |
|
||||||
|
| # Copy reference |
|
||||||
|
| * Pass on file name |
|
||||||
|
| # Copy file name |
|
||||||
|
|----------------------------------------| (3)
|
||||||
|
| + Stage changes |
|
||||||
|
| <> Open diff |
|
||||||
|
| (4) <- Discard changes |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Header**: what you clicked: a path, a folder path ending in `/`, or a reference such as `src/app.php:42`. 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**: Discard and Delete read in amber-deep, so they stand 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.
|
||||||
|
|
||||||
|
## 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.
|
||||||
|
- Inside the menu:
|
||||||
|
- `Up` / `Down` (or `Cmd+Up` / `Cmd+Down`) move the highlight. It wraps around and skips separators.
|
||||||
|
- Hovering an item highlights it.
|
||||||
|
- `Enter` or a click runs the highlighted item.
|
||||||
|
- `Esc` closes the menu.
|
||||||
|
- A click outside closes the menu, and the click still reaches what you clicked.
|
||||||
|
- The row of an open menu stays highlighted until the menu closes.
|
||||||
|
- No item is ever greyed out. An item that does not apply is simply not in the menu.
|
||||||
|
|
||||||
|
### What the shared items do
|
||||||
|
|
||||||
|
These items show up in several menus.
|
||||||
|
|
||||||
|
| Item | What it does | Asks first? |
|
||||||
|
|---|---|---|
|
||||||
|
| **Pass on reference** | Opens the [Pass on](pass-on-to-agent.md) prompt with the reference. On `Enter`, it lands in the [Claude Code](claude-code.md) input, not sent. | No |
|
||||||
|
| **Pass on selection** | The same, with the selected code added below the reference. | No |
|
||||||
|
| **Copy reference** | Copies the reference (a path, or `path:line`, or `path:start-end`) to the clipboard. A [notification](notifications.md) says `Copied reference`. | No |
|
||||||
|
| **Pass on file name** | Opens the Pass on prompt with only the file name, without folders. | No |
|
||||||
|
| **Copy file name** | Copies only the file name. A notification says `Copied`. | No |
|
||||||
|
| **Show in Finder** | Opens a Finder window with the item selected. | No |
|
||||||
|
|
||||||
|
### 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):
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| app/Http/UserController.php |
|
||||||
|
|----------------------------------------|
|
||||||
|
| * Pass on reference |
|
||||||
|
| # Copy reference |
|
||||||
|
| * Pass on file name |
|
||||||
|
| # Copy file name |
|
||||||
|
|----------------------------------------|
|
||||||
|
| + Stage changes |
|
||||||
|
| <> Open diff |
|
||||||
|
| <- Discard changes |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
A row in **Staged Changes**:
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| app/Http/UserController.php |
|
||||||
|
|----------------------------------------|
|
||||||
|
| * Pass on reference |
|
||||||
|
| # Copy reference |
|
||||||
|
| * Pass on file name |
|
||||||
|
| # Copy file name |
|
||||||
|
|----------------------------------------|
|
||||||
|
| - Unstage changes |
|
||||||
|
| <> Open diff |
|
||||||
|
| <- Discard changes |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
- **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.
|
||||||
|
|
||||||
|
### Explorer: file
|
||||||
|
|
||||||
|
Right-click a file in the [Explorer](explorer.md). The header is the file's path.
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| app/Http/Kernel.php |
|
||||||
|
|----------------------------------------|
|
||||||
|
| * Pass on reference |
|
||||||
|
| # Copy reference |
|
||||||
|
| * Pass on file name |
|
||||||
|
| # Copy file name |
|
||||||
|
|----------------------------------------|
|
||||||
|
| / Rename file |
|
||||||
|
| [] Show in Finder |
|
||||||
|
| x Delete file |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
- **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.
|
||||||
|
|
||||||
|
### Explorer: folder
|
||||||
|
|
||||||
|
Right-click a folder. The header is the folder's path with a trailing `/`.
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| app/Http/ |
|
||||||
|
|----------------------------------------|
|
||||||
|
| * Pass on reference |
|
||||||
|
| # Copy reference |
|
||||||
|
|----------------------------------------|
|
||||||
|
| + New file |
|
||||||
|
| + New folder |
|
||||||
|
|----------------------------------------|
|
||||||
|
| / Rename folder |
|
||||||
|
| [] Show in Finder |
|
||||||
|
| x Delete folder |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Pass on reference** and **Copy reference** use the folder path with a trailing `/`, for example `app/Http/`.
|
||||||
|
- **New file**: opens the [name prompt](dialogs.md#name-prompt) for a file inside this folder. The new file opens in the [File view](file-view.md).
|
||||||
|
- **New folder**: opens the name prompt for a folder inside this folder.
|
||||||
|
- **Rename folder**: opens the name prompt with the current name.
|
||||||
|
- **Delete folder**: always asks first. The folder and everything inside it are deleted for good.
|
||||||
|
|
||||||
|
### Explorer: empty space
|
||||||
|
|
||||||
|
Right-click the empty space under the rows of the [Explorer](explorer.md). It stands for the project folder. The header is the project name with a trailing `/`.
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| console/ |
|
||||||
|
|----------------------------------------|
|
||||||
|
| + New file |
|
||||||
|
| [] Show in Finder |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
- **New file**: a new file in the project root. Type a path with slashes, such as `docs/notes.md`, to create it in a folder.
|
||||||
|
- **Show in Finder**: opens the project folder in Finder.
|
||||||
|
|
||||||
|
There is no New folder here. Type `name/file` in New file, or right-click an existing folder.
|
||||||
|
|
||||||
|
### Code in the file view
|
||||||
|
|
||||||
|
Right-click in the code of the [File view](file-view.md). The header is the reference:
|
||||||
|
|
||||||
|
- No selection: the path and the line you clicked, for example `src/app.php:42`.
|
||||||
|
- With a selection: the path and the first and last selected line, for example `src/app.php:42-58`.
|
||||||
|
|
||||||
|
Without a selection:
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| src/Http/UserController.php:42 |
|
||||||
|
|----------------------------------------|
|
||||||
|
| * Pass on reference |
|
||||||
|
| # Copy reference |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
With a selection:
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| src/Http/UserController.php:42-58 |
|
||||||
|
|----------------------------------------|
|
||||||
|
| * Pass on selection |
|
||||||
|
| # Copy reference |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
- **Pass on selection** passes the reference and the selected code. See [Pass on to Agent](pass-on-to-agent.md).
|
||||||
|
- The same menu shows on the rendered [Markdown preview](file-view-markdown.md) and on an image. There it refers to the file's first line, for example `README.md:1`.
|
||||||
|
- `Cmd+Right` with code selected opens the Pass on prompt straight away, without the menu.
|
||||||
|
|
||||||
|
### Diff
|
||||||
|
|
||||||
|
Right-click a line in the full-screen [Diff](file-view-diff.md). The menu stays inside the Diff.
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| src/Http/UserController.php:42 |
|
||||||
|
|----------------------------------------|
|
||||||
|
| * Pass on reference |
|
||||||
|
| # Copy reference |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
- The line number comes from the side you clicked: the left pane gives the old line number, the right pane the new one.
|
||||||
|
- An empty half of a row (a line that exists on one side only) refers to line 1.
|
||||||
|
- `Up`, `Down`, `Enter` and `Esc` work as in every menu. `Esc` closes the menu first; a second `Esc` closes the Diff.
|
||||||
|
|
||||||
|
### Terminal panes
|
||||||
|
|
||||||
|
Right-click in the [Claude Code](claude-code.md) pane or the [Command line](command-line.md) pane. This menu has no header.
|
||||||
|
|
||||||
|
With text selected in the pane:
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| # Copy |
|
||||||
|
| # Paste |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
Without a selection:
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------+
|
||||||
|
| # Paste |
|
||||||
|
+----------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
- **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.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+Right` | Open the menu of the row under the cursor (Git column or 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 |
|
||||||
|
| `Esc` | Close the menu |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `git.confirmDiscard` | `true` | Discard changes asks first |
|
||||||
|
| `git.confirmStage` | `false` | Stage changes asks first |
|
||||||
|
| `git.confirmUnstage` | `false` | Unstage changes asks first |
|
||||||
|
|
||||||
|
Delete file and Delete folder always ask; no setting turns that off.
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [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.
|
||||||
|
- [Explorer](explorer.md): the rows behind the file, folder and empty-space menus.
|
||||||
|
- [File view: Diff](file-view-diff.md): where Open diff leads.
|
||||||
|
- [Notifications](notifications.md): the confirmations after Copy and file actions.
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Go to file](go-to-file.md), [File view](file-view.md), [Explorer](explorer.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```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() | |
|
||||||
|
+------------------+-----------------------------------------+---------------+
|
||||||
|
| (7) Cmd+Left / Cmd+Right column Cmd+Up / Cmd+Down row Enter open esc |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Query field**: type here. The field has the keyboard as soon as Search opens.
|
||||||
|
2. **Type chips**: one chip per file type in the results. Click one to show only that type.
|
||||||
|
3. **Summary**: hits in this file, hits in the project, and matching file names.
|
||||||
|
4. **This file**: matches in the open file. Only shown when a file is open.
|
||||||
|
5. **Project**: content matches in the whole project, grouped per file.
|
||||||
|
6. **Files**: file names that match the query.
|
||||||
|
7. **Footer**: the keys, and an `esc` chip.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
|
### Typing
|
||||||
|
- Results update as you type.
|
||||||
|
- **This file** and **Files** search from the first character.
|
||||||
|
- **Project** searches from two characters, after a very short pause. Each new key cancels the older search.
|
||||||
|
- Leading and trailing spaces are ignored.
|
||||||
|
- **This file** ignores case.
|
||||||
|
- **Project** ignores case, unless the query holds a capital letter. Then it matches case exactly.
|
||||||
|
- **Files** is fuzzy: the letters must appear in order, not next to each other. `hdlr` finds `Handler.php`. Matched letters are amber.
|
||||||
|
- 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.
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
### Type chips
|
||||||
|
- Chips appear when the results hold more than one file type. The most common type comes first.
|
||||||
|
- Click a chip to show only that type in Project and Files. Click it again to show every type.
|
||||||
|
- Hover a chip to see how many results it has.
|
||||||
|
|
||||||
|
### Opening a result
|
||||||
|
- Press `Enter` or click a row. Search closes and the file opens in the [file view](file-view.md).
|
||||||
|
- A content hit opens the file at that line.
|
||||||
|
- Click a file header in Project to open the file at its first hit.
|
||||||
|
- A file name opens the file at the top.
|
||||||
|
- When the focused column is empty, `Enter` opens the first result of the other kind.
|
||||||
|
|
||||||
|
### Mouse and keyboard
|
||||||
|
- Moving the pointer over a row selects it and focuses its column.
|
||||||
|
- When you move with the keyboard, a pointer that does not move does not steal the selection.
|
||||||
|
|
||||||
|
### What is searched
|
||||||
|
- The whole project, including dotfiles such as `.env`.
|
||||||
|
- Hidden files and folders (those starting with a dot) only show when **Hidden** (`Cmd+.`) is on. See [Layout](layout.md).
|
||||||
|
- Some folders are always skipped: `node_modules`, `.git`, `vendor`, `dist`, `build`, `out`, `coverage`, `.cache`, `.next`, `.nuxt`, `.turbo`, `.idea`, `.vscode` and `.helder`.
|
||||||
|
- Add your own skips with `files.exclude`.
|
||||||
|
- Git-ignored files are searched too, unless you set `files.followGitignore` to `true`.
|
||||||
|
|
||||||
|
### No results
|
||||||
|
Each column says why it is empty:
|
||||||
|
- "Type to search this file." / "No matches in this file."
|
||||||
|
- "Type at least two characters." / "No content matches."
|
||||||
|
- "Type to search file names." / "No file names match."
|
||||||
|
|
||||||
|
### Limits
|
||||||
|
- Project: at most 400 files and 50 hits per file. Very long lines are cut.
|
||||||
|
- Files: the first 40 matches are listed. The count shows the full number.
|
||||||
|
- This file: at most 200 hits.
|
||||||
|
- Up to 12 type chips.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+F` | Open Search |
|
||||||
|
| `Cmd+Left` / `Cmd+Right` | Previous / next column |
|
||||||
|
| `Up` / `Down` | Previous / next row in the column |
|
||||||
|
| `Cmd+Up` / `Cmd+Down` | Previous / next row in the column |
|
||||||
|
| `Enter` | Open the selected result |
|
||||||
|
| `Esc` | Close Search |
|
||||||
|
|
||||||
|
## Settings
|
||||||
|
|
||||||
|
| Setting | Default | Effect |
|
||||||
|
|---|---|---|
|
||||||
|
| `files.exclude` | `[]` | Extra globs to leave out of search and the Explorer. |
|
||||||
|
| `files.followGitignore` | `false` | `true` leaves git-ignored files out. |
|
||||||
|
|
||||||
|
See [Configuration](configuration.md).
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Go to file](go-to-file.md): jump back to a file you opened before.
|
||||||
|
- [File view](file-view.md): where a result opens.
|
||||||
|
- [Explorer](explorer.md): uses the same excludes.
|
||||||
|
- [Layout](layout.md): the Hidden toggle that shows dotfiles in search.
|
||||||
|
- [Title bar](title-bar.md): the Search button.
|
||||||
|
- [Keyboard shortcuts](keyboard-shortcuts.md): every key in one list.
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
# Start screen
|
||||||
|
|
||||||
|
The start screen is what a Helder window shows when no project is open. It is a single card near the top of an empty, dark window, with no title bar, columns or status bar.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Recent projects](recent-projects.md), [Window layout](layout.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| o o o |
|
||||||
|
| +------------------------------------------------+ |
|
||||||
|
| | * Helder. (1) | |
|
||||||
|
| | Open a project to begin | |
|
||||||
|
| +------------------------------------------------+ |
|
||||||
|
| | + Open new project... [<-] | (2) |
|
||||||
|
| +------------------------------------------------+ |
|
||||||
|
| | RECENT (3) | |
|
||||||
|
| | [] shop ~/code/shop | (4) |
|
||||||
|
| | [] helder ~/code/helder | |
|
||||||
|
| | [] blog ~/sites/blog | |
|
||||||
|
| +------------------------------------------------+ |
|
||||||
|
| | Cmd+Up/Down navigate . Return open (5) | |
|
||||||
|
| +------------------------------------------------+ |
|
||||||
|
| |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
1. **Head**: an amber spark, the Helder wordmark and the line "Open a project to begin".
|
||||||
|
2. **Open new project...**: opens the macOS folder picker.
|
||||||
|
3. **Recent**: the label above your recent projects. It only shows when there are recent projects.
|
||||||
|
4. **Recent project rows**: a folder icon, the project name and its full path.
|
||||||
|
5. **Key hints**: how to move and open with the keyboard.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### When you see it
|
||||||
|
- When you start Helder without a project folder.
|
||||||
|
- When you open a **New Window** (`Shift+Cmd+N` or the Dock menu).
|
||||||
|
- After the last window closes and you click the Dock icon again.
|
||||||
|
|
||||||
|
### Opening a project
|
||||||
|
- Click **Open new project...**, or select it and press `Return`. A folder picker opens. Choose a folder and click **Open**.
|
||||||
|
- Click a recent project, or select it and press `Return`, to open it in this window.
|
||||||
|
- `Cmd+O` (File > Open Folder...) also opens the folder picker.
|
||||||
|
- After you pick a project, the window turns into the full workspace. See [Window layout](layout.md).
|
||||||
|
|
||||||
|
### Moving the selection
|
||||||
|
- The first row, **Open new project...**, is selected when the screen opens.
|
||||||
|
- `Up` and `Down` (with or without `Cmd`) move the selection. It stops at the first and last row.
|
||||||
|
- Hovering a row selects it too. The selected row is highlighted and its icon turns amber.
|
||||||
|
- Hover a recent project to see its full path in a tooltip.
|
||||||
|
|
||||||
|
### Long lists
|
||||||
|
- The card grows with the list. When the list is longer than the window, the rows scroll inside the card.
|
||||||
|
- Helder keeps up to 20 recent projects. A project whose folder no longer exists is left out.
|
||||||
|
|
||||||
|
### Starting Helder on a folder
|
||||||
|
Helder opens a folder straight away, without this screen, when you start it with:
|
||||||
|
- the `HELDER_PROJECT` environment variable set to a folder, or
|
||||||
|
- a folder path as the first argument.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Up` / `Down` | Move the selection |
|
||||||
|
| `Cmd+Up` / `Cmd+Down` | Move the selection |
|
||||||
|
| `Return` | Open the selected row |
|
||||||
|
| `Cmd+O` | Open the folder picker |
|
||||||
|
| `Shift+Cmd+N` | Open another new window |
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Recent projects](recent-projects.md): the same recent list, inside a project window.
|
||||||
|
- [Window layout](layout.md): what the window shows once a project is open.
|
||||||
|
- [Keyboard shortcuts](keyboard-shortcuts.md): every shortcut in one list.
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# Status bar
|
||||||
|
|
||||||
|
The status bar is the thin 28-point strip along the bottom of a project window. It shows git totals on the left and facts about the open file on the right.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Window layout](layout.md), [Git](git.md), [File view](file-view.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| <> main +50 -38 1 staged . 2 unstaged app/User.php . Ln 3, Col 9 . |
|
||||||
|
| (1) (2) (3) (4) (5) (6) |
|
||||||
|
| |
|
||||||
|
| UTF-8 . LF . PHP |
|
||||||
|
| (7) (8) (9) |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
The bar is one row in the app. It is drawn on two rows here to fit the page.
|
||||||
|
|
||||||
|
1. **Branch**: the current git branch, in amber, after a branch symbol.
|
||||||
|
2. **Lines added**: the total added lines in the working tree, in teal.
|
||||||
|
3. **Lines removed**: the total removed lines, in amber-deep.
|
||||||
|
4. **Staged and unstaged**: how many changes are staged and how many are not.
|
||||||
|
5. **File path**: the project-relative path of the open file.
|
||||||
|
6. **Cursor position**: the line and column of the cursor.
|
||||||
|
7. **Encoding**: always `UTF-8`.
|
||||||
|
8. **Line ending**: always `LF`.
|
||||||
|
9. **Language**: the language of the open file, for example `PHP` or `Markdown`.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
|
### File facts (right)
|
||||||
|
- The path, the cursor position and the language appear only while a file is open.
|
||||||
|
- The path cuts off at the start when it is long, so the file name stays visible. It never takes more than about half the window.
|
||||||
|
- The cursor position reads `Ln 1, Col 1` until you move the cursor in the file.
|
||||||
|
- `UTF-8` and `LF` are always shown, with or without a file.
|
||||||
|
|
||||||
|
### Display only
|
||||||
|
Nothing in the status bar is clickable. It only shows information.
|
||||||
|
|
||||||
|
## Related
|
||||||
|
|
||||||
|
- [Git](git.md): where the branch and change counts come from.
|
||||||
|
- [File view](file-view.md): the file whose path, position and language are shown.
|
||||||
|
- [Title bar](title-bar.md): shows the project, branch and file path at the top.
|
||||||
|
- [Window layout](layout.md): where the status bar sits in the window.
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
[Guide index](index.md) · Related: [Window layout](layout.md), [Search](search.md), [Notes](notes.md), [Keyboard shortcuts](keyboard-shortcuts.md)
|
||||||
|
|
||||||
|
## At a glance
|
||||||
|
|
||||||
|
```text
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
| o o o Helder. shop . main app > Http > User.php * |
|
||||||
|
| (1) (2) (3) (4) (5) (6) |
|
||||||
|
| |
|
||||||
|
| [.Git|.Explorer|.File|.Claude] [Search |.Fluid |.Hidden |Note] [?] |
|
||||||
|
| (7) (8) (9) (9) (8) (10) |
|
||||||
|
+----------------------------------------------------------------------------+
|
||||||
|
```
|
||||||
|
|
||||||
|
The bar is one row in the app. It is drawn on two rows here to fit the page.
|
||||||
|
|
||||||
|
1. **Window buttons**: the macOS close, minimize and zoom buttons.
|
||||||
|
2. **Wordmark**: "Helder" with a blinking amber dot.
|
||||||
|
3. **Project name**: the project folder's name. Click it to open another folder.
|
||||||
|
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** and **Note**: buttons that open an overlay.
|
||||||
|
9. **Fluid** and **Hidden**: on/off toggles.
|
||||||
|
10. **`?`**: opens the keyboard shortcuts.
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Wordmark, project and branch
|
||||||
|
- The wordmark sits right after the window buttons. In full screen the window buttons are gone, and everything moves left.
|
||||||
|
- The project name is dim and turns brighter on hover. Click it to open a folder picker and switch this window to another project. See [Recent projects](recent-projects.md).
|
||||||
|
- A middle dot separates the project name from the branch.
|
||||||
|
- The branch shows in amber. It shows `—` when the folder has no git branch.
|
||||||
|
|
||||||
|
### Breadcrumb
|
||||||
|
- Shows the path of the open file, with `›` between the parts, for example `resources › views › form.blade.php`.
|
||||||
|
- Folder names are dim. The file name is bright and bold.
|
||||||
|
- An amber dot after the file name means the file has unsaved edits. Hover it to read "Unsaved changes".
|
||||||
|
- When the path is too long, it cuts off at the start, so the file name stays visible.
|
||||||
|
- With no file open, the space is empty.
|
||||||
|
- 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.
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
- **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.
|
||||||
|
- **Note** (`Cmd+N`): opens the project note. See [Notes](notes.md).
|
||||||
|
- **`?`**: opens the keyboard shortcuts list. See [Keyboard shortcuts](keyboard-shortcuts.md).
|
||||||
|
|
||||||
|
Fluid and Hidden carry a state dot like the pane toggles. Search and Note have no dot, because they are actions. Hover any button for a tooltip that explains its current state.
|
||||||
|
|
||||||
|
### Moving the window
|
||||||
|
Drag an empty part of the title bar to move the window, as in any macOS app.
|
||||||
|
|
||||||
|
## Keyboard
|
||||||
|
|
||||||
|
| Keys | Action |
|
||||||
|
|---|---|
|
||||||
|
| `Cmd+F` | Search |
|
||||||
|
| `Cmd+L` | Fluid column widths on or off |
|
||||||
|
| `Cmd+.` | Hidden files on or off |
|
||||||
|
| `Cmd+N` | Project note |
|
||||||
|
| `Cmd+G` | Git 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.
|
||||||
|
- [Search](search.md): the overlay the Search button opens.
|
||||||
|
- [Notes](notes.md): the overlay the Note button opens.
|
||||||
|
- [Keyboard shortcuts](keyboard-shortcuts.md): the overlay the `?` button opens.
|
||||||
|
- [Recent projects](recent-projects.md): opening another folder.
|
||||||
|
- [Status bar](status-bar.md): the matching bar at the bottom of the window.
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
# Helder docs
|
# Helder docs
|
||||||
|
|
||||||
|
- [User guide](guide/index.md): every area of the app at user level, one page each, with ASCII sketches.
|
||||||
- [Architecture](architecture.md): layers, folder map, commands, file ownership, gotchas.
|
- [Architecture](architecture.md): layers, folder map, commands, file ownership, gotchas.
|
||||||
- [Design tokens](design/README.md): the visual source of truth (colours, type, geometry, screens).
|
- [Design tokens](design/README.md): the visual source of truth (colours, type, geometry, screens).
|
||||||
- [Behaviour spec](behaviour.md): every panel and interaction.
|
- [Behaviour spec](behaviour.md): every panel and interaction.
|
||||||
|
|||||||
Reference in New Issue
Block a user