Files
helder/docs/guide/layout.md
T
2026-10-30 13:21:45 +01:00

171 lines
10 KiB
Markdown

# Window layout
A Helder window holds one project. It has a title bar on top, three columns in the middle and a status bar at the bottom. The [Git](git.md) view (`Cmd+G`) covers all of it when open.
[Guide index](index.md) · Related: [Title bar](title-bar.md), [Status bar](status-bar.md), [Keyboard shortcuts](keyboard-shortcuts.md), [Configuration](configuration.md)
## At a glance
```text
+----------------------------------------------------------------------------+
| ooo Helder. shop . main app>User.php [Git 3|Expl|File|Claude] [Search] [?]|
| (1) |
+-----------------+-------------------------------------+--------------------+
| EXPLORER | User.php +12 -3 | (claude running) |
| | | |
| > app | 1 <?php | > _ |
| v Http | 2 | (4) |
| User.. | 3 class User | |
| > config | 4 { | |
| > routes | 5 ... +--------------------+
| .env | | $ zsh |
| | | |
| (2) | (3) | (5) |
+-----------------+-------------------------------------+--------------------+
| main +50 -38 1 staged . 2 unstaged app/User.php . Ln 3, Col 1 . PHP |
+----------------------------------------------------------------------------+
^ ^ (6)
(7) (7)
```
1. **Title bar**: wordmark, project and branch, breadcrumb, the pane toggles, and the toolbar with the Git toggle. See [Title bar](title-bar.md).
2. **Explorer column**: the project file tree. See [Explorer](explorer.md).
3. **File column**: the one open file. See [File view](file-view.md).
4. **Claude pane**: the agent terminal, top of the right column. See [Claude Code](claude-code.md).
5. **Shell pane**: a plain terminal, bottom of the right column. See [Command line](command-line.md).
6. **Status bar**: branch, change counts and file facts. See [Status bar](status-bar.md).
7. **Splitters**: the thin lines between columns. Drag them to resize.
## Features
### The three columns
- From left to right: **Explorer**, **File**, and **Claude + Terminal**.
- Git is not a column. The full-screen [Git](git.md) view opens over the window with `Cmd+G` and leaves the columns as they were.
- The File column is the flexible one. It takes the width the other columns leave.
- The right column holds two terminals stacked on top of each other: Claude on top, a shell below.
### 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:
- 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: Explorer about 16%, Claude about 27%, File the rest.
- Below 1600 points, Explorer takes 15%, and the right column follows your focus:
- 30% when neither side has focus.
- 20% when the File column has focus, or when you just opened a file.
- 50% when a terminal has focus.
- 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: **Explorer**, **File**, **Claude**. A dot on the button shows that the column is on.
- `Cmd+1`, `Cmd+2` and `Cmd+3` toggle Explorer, File and Claude. The View menu has Show/Hide items for all three.
- Hiding only hides. The terminals keep running, the open file keeps its edits and scroll position, and the tree keeps its open folders.
- When a column hides, File takes the free width. With File hidden, the Claude + Terminal column fills the rest.
- With every column hidden, the middle of the window is empty.
- A hidden column cannot take focus. If you hide the column you are typing in, the keyboard goes back to the window, so nothing lands in a pane you cannot see.
### 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. The Explorer gets a lighter background when active.
- `Cmd+Left` and `Cmd+Right` move focus to the next visible column. This works when the keyboard is not inside a text field, the code, or a terminal. In those places the keys keep their normal meaning.
- In the Explorer, `Up` and `Down` move the row cursor and `Return` opens the row. See [Explorer](explorer.md).
- Clicking an Explorer row takes the keyboard out of a text field in another column.
### The mouse pointer
- A pointing hand means a left click runs an action: a button, a clickable row, the project name.
- An I-beam means a click places the cursor or selects text: the code, the Markdown preview, the terminals and every input.
- Everywhere else the pointer is an arrow, also over a disabled button and over the columns behind an open dialog or search.
### 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 session too. Cancel keeps the window open.
### What Helder remembers
Per project, always:
- Which of the three 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), which column had focus, and whether the Git view was open.
## Keyboard
| Keys | Action |
|---|---|
| `Cmd+G` | Open or close the Git view |
| `Cmd+1` / `Cmd+2` / `Cmd+3` | Show or hide the Explorer, File or Claude column |
| `Cmd+L` | Fluid column widths on or off |
| `Cmd+.` | Hidden files on or off |
| `Cmd+Left` / `Cmd+Right` | Focus the column to the left or right (outside text and terminals) |
| `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 Git, Fluid and Hidden buttons live here.
- [Git](git.md): the full-screen Git view.
- [Status bar](status-bar.md): the bar along the bottom edge.
- [Start screen](start-screen.md): what a window shows before a project is open.
- [Recent projects](recent-projects.md): switch this window to another project.
- [Keyboard shortcuts](keyboard-shortcuts.md): every shortcut in one list.
- [Configuration](configuration.md): all per-project settings.