before the great git rework
This commit is contained in:
@@ -18,13 +18,13 @@ Helder (executable) → HelderUI → HelderServices → HelderCore
|
||||
|
||||
## How a window works
|
||||
|
||||
- `WorkspaceModel` owns one window (`WorkspaceModel.swift`: state and `perform`; `+Commands`, `+ContextActions`, `+Lifecycle`, `+Refresh` hold the rest): the stores (`SourceControlStore`, `ExplorerStore`, `EditorStore`, `NoteStore`, `CleanCopyStore`, `TerminalStore`, `LayoutStore`, `OverlayStore`, `ToastStore`, `ReadAloudStore`) and every action that spans more than one of them. A store never reaches into a sibling; `EditorStore` only reads the git state through a closure.
|
||||
- **One entry point.** Views, the menu bar and the key router all call `WorkspaceModel.perform(Command)` (`Shell/Command.swift`). Context-menu items arrive as `.context(ContextAction)`; the model asks `SourceControlStore.confirmation(for:)` / `ExplorerStore.confirmation(for:)` first and shows the confirm overlay, and `.confirmPending` runs the action. The name prompt submits with `.submitName`, the pass-on prompt with `.passToAgent`, the note's ⌘P with `.passNote`.
|
||||
- **Overlays never stack.** `OverlayStore.current` is one `Overlay` enum; only the model presents or dismisses it. `OverlayStore.onChange` lets the model run closing behaviour however an overlay went away (the note saves, the Diff gives back the mode it covered). `OverlayHost` draws the current overlay. `.launcher` is the ⇧⌘O "Open recent project" list; the bare window's launcher is part of the shell, not an overlay. The key router only sees `OverlayKind` (`none`, `note`, `diff(busy:)`, `other`): over the Diff the workspace keys keep working unless its own menu or prompt is open (`busy`). Toasts (`ToastStore`) may sit on top. The Diff draws its own right-click menu and pass-on prompt inside itself, so it stays open.
|
||||
- `WorkspaceModel` owns one window (`WorkspaceModel.swift`: state and `perform`; `+Commands`, `+ContextActions`, `+Lifecycle`, `+Refresh` hold the rest): the stores (`SourceControlStore`, `ExplorerStore`, `EditorStore`, `CleanCopyStore`, `TerminalStore`, `LayoutStore`, `OverlayStore`, `ToastStore`, `ReadAloudStore`) and every action that spans more than one of them. A store never reaches into a sibling; `EditorStore` only reads the git state through a closure.
|
||||
- **One entry point.** Views, the menu bar and the key router all call `WorkspaceModel.perform(Command)` (`Shell/Command.swift`). Context-menu items arrive as `.context(ContextAction)`; the model asks `SourceControlStore.confirmation(for:)` / `ExplorerStore.confirmation(for:)` first and shows the confirm overlay, and `.confirmPending` runs the action. The name prompt submits with `.submitName`, the pass-on prompt with `.passToAgent`.
|
||||
- **Overlays never stack.** `OverlayStore.current` is one `Overlay` enum; only the model presents or dismisses it. `OverlayStore.onChange` lets the model run closing behaviour however an overlay went away (the Diff gives back the mode it covered). `OverlayHost` draws the current overlay. `.launcher` is the ⇧⌘O "Open recent project" list; the bare window's launcher is part of the shell, not an overlay. The key router only sees `OverlayKind` (`none`, `diff(busy:)`, `other`): over the Diff the workspace keys keep working unless its own menu or prompt is open (`busy`). Toasts (`ToastStore`) may sit on top. The Diff draws its own right-click menu and pass-on prompt inside itself, so it stays open.
|
||||
- **Read aloud.** `.readAloudFile` reads the open file's buffer (unsaved edits included) or the file from disk, turns it into prose with `MarkdownSpeech`, and hands it to `ReadAloudStore`; `.readAloudText` speaks the selection (selected Markdown as prose). `ReadAloudStore` lives as long as the window, like `ToastStore`; its `isReading` shows the title bar's Stop, which runs `.stopReading`. `closeProject()` stops the reading.
|
||||
- **Stores report, the model shows.** Stores raise toasts through `notify`/`showToast` hooks the model wires to `ToastStore`; the model never toasts a second time for the same action.
|
||||
- **Closing.** A window close, a project switch and ⌘Q all run `prepareToClose()` first: every unsaved file (at most the open one plus a vanished-file buffer) is asked about, and a cancel keeps everything open. Then `closeProject()` waits for running work, writes the note and session and ends the terminals.
|
||||
- **Lifecycle.** `start()`: recents → config (applied to every store and the terminals) → git, tree, note and the `.clean-copy` baseline in parallel → `editor.restore` → watcher → git polling (`git.refreshInterval`) → the PHP class list 1.5 s later. Watcher events: `.cleanCopy` (`.clean-copy` in the root, 150 ms debounce, fired besides `.project`) makes `CleanCopyStore` re-read the file and opens the `.cleanCopy` overlay for new non-blank text (the text found at load is the baseline; another open overlay makes it wait, keeping only the newest); `.project` re-reads git, the tree, the open file and every unsaved buffer (the edits kept), invalidates the symbol index and reloads the class list 2 s after the last change; `.git` re-reads git; `.config` re-resolves and re-applies the config. ⌘R re-reads git and the tree and lets the disk win in the open file. A project switch or window close saves the note and the session, stops the watcher and polling, and ends both terminals.
|
||||
- **Closing.** A window close, a project switch and ⌘Q all run `prepareToClose()` first: every unsaved file (at most the open one plus a vanished-file buffer) is asked about, and a cancel keeps everything open. Then `closeProject()` waits for running work, writes the session and ends the terminals.
|
||||
- **Lifecycle.** `start()`: recents → config (applied to every store and the terminals) → git, tree and the `.clean-copy` baseline in parallel → `editor.restore` → watcher → git polling (`git.refreshInterval`) → the PHP class list 1.5 s later. Watcher events: `.cleanCopy` (`.clean-copy` in the root, 150 ms debounce, fired besides `.project`) makes `CleanCopyStore` re-read the file and opens the `.cleanCopy` overlay for new non-blank text (the text found at load is the baseline; another open overlay makes it wait, keeping only the newest); `.project` re-reads git, the tree, the open file and every unsaved buffer (the edits kept), invalidates the symbol index and reloads the class list 2 s after the last change; `.git` re-reads git; `.config` re-resolves and re-applies the config. ⌘R re-reads git and the tree and lets the disk win in the open file. A project switch or window close saves the session, stops the watcher and polling, and ends both terminals.
|
||||
- **Terminals.** `TerminalStore` owns both panes' handles. Ending a pane goes through the store (`terminateAll`, `restart`, or `release` when a pane's window closes), which signals the child and lets `ChildReaper` collect it, so no zombie or orphan is left. A pane whose child exited restarts on the next key press. Right-click raises `contextMenuRequested`; the model shows the app's own menu (`.terminal` target: Copy with a selection, Paste). Font size follows `layout.textScale` (⌘0/⌘+/⌘−) live.
|
||||
- **Git and files.** Git gets paths as literal pathspecs (`GIT_LITERAL_PATHSPECS=1`, so `pages/[id].vue` is one file). A changed file over `FileLimits.maxDiffFileBytes` (1 MB) keeps its row but loads no text: `GitFileChange.isTooBig` → `Diff.isTooBig`, and the Diff shows "Too big.". Saves are atomic (temp file, then rename, keeping permissions). Writes, creates, renames and deletes are refused when the entry's folder resolves (symlinks included) outside the project (`containedURL`). The watcher drops `IgnoreRules.walkIgnoredNames`, framework caches (`storage/framework/`, `bootstrap/cache/`, `.phpunit*`) and `files.exclude`.
|
||||
- **Processes.** Every new window (⇧⌘N, the Dock's New Window, Open Folder or Open Recent with no key window) is a new Helder process via `SystemActing.openNewInstance`: `NSWorkspace` with `createsNewApplicationInstance` in the bundle, `InstanceLauncher` (Foundation `Process`) under `swift run`. The folder travels as `-HelderProject <path>`, which `ProjectLocator.initialRoot` reads as its directory argument; a bare path could reach AppKit as a file to open. Switching projects (⌘O, Open Recent in a window) stays in the process. `AppName` renames the process to the project's title (the launcher is "Helder"), so Mission Control, the Dock and ⌘Tab tell projects apart. Windows are not restorable and `NSQuitAlwaysKeepsWindows` is off, so a launch opens exactly one window.
|
||||
@@ -50,7 +50,7 @@ Sources/HelderServices/
|
||||
Git/ GitServicing, GitService, GitDirectory (worktrees)
|
||||
Logging/ Log (unified log) + FileLogger (~/Library/Logs/Helder/helder.log)
|
||||
Process/ ProcessRunner, ExecutableLocator, ChildReaper, InstanceLauncher
|
||||
Project/ ConfigService, NotesService, RecentStores, SessionStore, ProjectLocator
|
||||
Project/ ConfigService, RecentStores, SessionStore, ProjectLocator
|
||||
Search/ SearchServicing + RipgrepSearchService, ProjectScanner (rg, or a Swift walk)
|
||||
Speech/ SpeechServicing + SpeechService (AVSpeechSynthesizer, the system voice), shared by the window
|
||||
Symbols/ SymbolService
|
||||
@@ -65,7 +65,7 @@ Sources/HelderUI/
|
||||
Explorer/ the file tree column and the row glyphs
|
||||
Editor/ the bar above the code, code/markdown/image panes, Diff overlay, pass-on panel, symbol popup
|
||||
Terminal/ agent + shell panes over SwiftTerm
|
||||
Overlays/ OverlayHost, search, note and clean copy (sharing OverlayTextEditor), shortcuts, recent files, context menu, name prompt, confirm, OverlayKeys
|
||||
Overlays/ OverlayHost, search, clean copy (OverlayTextEditor), shortcuts, recent files, context menu, name prompt, confirm, OverlayKeys
|
||||
Theme/ Palette, Typography, Metrics, FontRegistry
|
||||
Resources/Fonts/ IBM Plex Mono 400–700, Plex Sans 400/500/600/700/400i (WOFF2, OFL)
|
||||
Tests/<Target>Tests/<same folders>/
|
||||
@@ -102,7 +102,7 @@ How the suites are organised and how to run one: see the Testing section of the
|
||||
- **ripgrep** is not on this machine's `PATH`. `bundle.sh` copies `$RG_BINARY`, else `vendor/ripgrep/rg`, else an `rg` on `PATH` into `Contents/Helpers/rg`, which `ExecutableLocator.standard` checks first. `$RG_BINARY` overrides it at runtime; the tests use it, else `vendor/ripgrep/rg`. Without any rg, search, the file list and the symbol index fall back to a Swift walk (slower, same results).
|
||||
- **Own data.** The recent-projects list (`~/Library/Application Support/Helder/recent-projects.json`, read by ⇧⌘O and the launcher) and the log (`~/Library/Logs/Helder/helder.log`) belong to this app alone. Running it on a scratch folder adds that folder to the list; remove it afterwards. Under `swift run` the UserDefaults domain is `Helder` (sessions, layouts), in the bundle `nl.blijnder.helder`.
|
||||
- **`bundle.sh --install`** refuses to replace a `~/Applications/Helder.app` with a different bundle id without `--force`.
|
||||
- **⌘N** is the note, so "New Window" is ⇧⌘N. New Window starts a new process on the launcher, and the child never inherits `HELDER_PROJECT` (it would win over the folder argument). ⌘A is select-all in the focused view (in the code pane, the whole file); fluid columns are ⌘L.
|
||||
- **⌘N** is unbound; "New Window" is ⇧⌘N. New Window starts a new process on the launcher, and the child never inherits `HELDER_PROJECT` (it would win over the folder argument). ⌘A is select-all in the focused view (in the code pane, the whole file); fluid columns are ⌘L.
|
||||
- **Config.** `files.followGitignore` defaults to **false** (the main-process value). There is no CSS layer: code font and size come from config/Typography.
|
||||
- **One file, no Original.** The editor deliberately has no tabs and no Original mode. `git.defaultDiffMode: "original"` in an older config decodes as `"updated"`.
|
||||
- **SwiftTerm** has no line-height or letter-spacing setting, so `terminal.lineHeight`/`letterSpacing` from the config are ignored.
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@ The top bar contains, left to right:
|
||||
- The Helder wordmark.
|
||||
- A breadcrumb showing the path to the active file, for example `console / src / Http / Controller / UserController.php`. The breadcrumb is **display only** for now. It is not clickable and does not navigate.
|
||||
- Centred on the window, the **pane toggles**: Git · Explorer · File · Claude, one per column, all on by default (see Pane toggles in section 9). The breadcrumb truncates before it reaches them.
|
||||
- On the right, the toolbar: **Search** (`Cmd+F`) and **Note** (`Cmd+N`) are actions; **Fluid** (`Cmd+L`) and **Hidden** (`Cmd+.`) are toggles. Then `?` for the keyboard shortcuts.
|
||||
- On the right, the toolbar: **Search** (`Cmd+F`) is an action; **Fluid** (`Cmd+L`) and **Hidden** (`Cmd+.`) are toggles. Then `?` for the keyboard shortcuts.
|
||||
- While Helder reads aloud, a **Stop** toggle appears left of **Search**, in the same style and switched on. A click switches it off and stops the reading; the button then goes away. It also goes away when the reading reaches the end, and a project switch or window close stops the reading.
|
||||
|
||||
---
|
||||
@@ -183,7 +183,7 @@ The top pane of the fourth column.
|
||||
|
||||
The agent hands the user text to copy through one file, `.clean-copy` in the project root. The agent overwrites the file each time; Helder only reads it and never clears or deletes it.
|
||||
|
||||
- When the file's contents change while the project is open, Helder reads it after a short pause (writes are not atomic) and opens the **From Claude** popup, a card like the note. The contents found when the project opens are the baseline and never open the popup. An empty or blank file, or the same text as last seen, opens nothing.
|
||||
- When the file's contents change while the project is open, Helder reads it after a short pause (writes are not atomic) and opens the **From Claude** popup, a card at the top of the window. The contents found when the project opens are the baseline and never open the popup. An empty or blank file, or the same text as last seen, opens nothing.
|
||||
- The popup holds an editable text area. **Copy** (or `Cmd+Enter`) copies the text, with the user's edits, to the clipboard as plain text, closes the popup and shows the "Copied" toast. `Esc` or a click outside closes it without copying.
|
||||
- With another overlay open, the newest text waits and opens once that overlay closes. New text while the popup is open replaces its text only when the user has not edited it.
|
||||
- The popup opens in the project's own window even when that window is in the background; Helder does not take focus.
|
||||
|
||||
+3
-16
@@ -4,7 +4,7 @@
|
||||
|
||||
Helder is a desktop code editor built around one job: work on a codebase together with
|
||||
Claude Code. It replaces a general IDE with four columns — source control, explorer,
|
||||
editor, agent — plus five overlays (search, keyboard shortcuts, project note, project
|
||||
editor, agent — plus four overlays (search, keyboard shortcuts, project
|
||||
launcher, expanded diff) and a set of small surfaces (context menus, a pass-on-to-agent
|
||||
prompt, tooltips, a markdown preview).
|
||||
|
||||
@@ -182,7 +182,7 @@ transform:translate(-50%,-50%)` inside the title bar) — Git · Explorer · Fil
|
||||
One per column, all on by default, no shortcut shown.
|
||||
|
||||
**Toolbar** (right) — Search ⌘F (action) · Auto-fit ⌘A (toggle, on) · Hidden ⌘.
|
||||
(toggle, off) · Note ⌘N (action). The old Git ⌘G toolbar button is removed; the
|
||||
(toggle, off). The old Git ⌘G toolbar button is removed; the
|
||||
Git pane toggle replaces it.
|
||||
|
||||
**Source control column** (300px, `#18202B`, 1px right border)
|
||||
@@ -256,16 +256,6 @@ Body groups (`NAVIGATE`, `AGENT`, `GIT`, `FILE`) each a 10px mono label, then a
|
||||
`92px 1fr` grid: keycap cluster left (gap 4px), description Sans 13px `#E4E7E6` right,
|
||||
6px vertical padding per row.
|
||||
|
||||
### 02c · Project note (⌘N)
|
||||
|
||||
Same shell. Header: `▤` amber, "Note", filename `.notes.txt` Mono 12px `#6C7783`, then
|
||||
the primary button — amber fill, `#171C22` text, Sans 500 12px, radius 2, padding
|
||||
6px 10px, with a `⌘P` keycap at Mono 600 11px — then the `esc` chip.
|
||||
Body: Mono 400 14px/1.7 `#E4E7E6`, max 68ch, 18px between paragraphs, blinking caret at
|
||||
the end of the text. Footer 34px: "saved on focus loss · 412 characters".
|
||||
|
||||
The note is plain text and it is the agent's input: ⌘P sends the whole note.
|
||||
|
||||
### 02d · Project launcher
|
||||
|
||||
Window `#101720` with only traffic lights (34px), no title bar. Centred panel on
|
||||
@@ -358,8 +348,6 @@ gets room:
|
||||
| `⌘G` | Show or hide the source-control column (same as the Git pane toggle) |
|
||||
| Pane toggle click | Show or hide that column — see below |
|
||||
| `⌘S` / `⌘W` / `⌘D` | Save / close / delete (confirm) the current file |
|
||||
| `⌘N` | Open the project note; it saves on focus loss |
|
||||
| `⌘P` (note open) | Send the whole note to the agent |
|
||||
| right-click a row | Context menu, anchored to the pointer, first item pre-highlighted |
|
||||
| `esc` | Close the top overlay, menu or prompt; never more than one |
|
||||
|
||||
@@ -393,10 +381,9 @@ Rules that hold everywhere:
|
||||
- `tree` — expanded paths, selected path, `showHidden`
|
||||
- `git` — staged[], unstaged[], commit message draft, ahead/behind counts
|
||||
- `agent` — model, session, transcript, prompt draft, pending tool calls, auth notices
|
||||
- `overlay` — `null | search | shortcuts | note | diff | launcher | menu | passOn`
|
||||
- `overlay` — `null | search | shortcuts | diff | launcher | menu | passOn`
|
||||
- `panels` — column widths, `autoFit`, and `visible: { git, explorer, file, claude }`
|
||||
(all `true` by default, persisted per project)
|
||||
- `note` — text, dirty flag (write on blur)
|
||||
|
||||
Search runs per keystroke against three indexes (open file, project contents, file
|
||||
names) and reports counts per column; a query with no hits leaves the columns in their
|
||||
|
||||
@@ -39,7 +39,7 @@ The Claude Code pane is the top half of the right-hand column. It is a live term
|
||||
- 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.
|
||||
- [Pass on to Agent](pass-on-to-agent.md) sends 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").
|
||||
@@ -110,7 +110,6 @@ All settings live in `.helder/config.json`. See [Configuration](configuration.md
|
||||
|
||||
- [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`.
|
||||
- [Clean copy](clean-copy.md): copy text that Claude writes to `.clean-copy`.
|
||||
- [Right-click menu](right-click-menu.md): Copy and Paste in the terminal.
|
||||
- [Layout](layout.md): the splitter, the Claude toggle and column widths.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Clean copy lets Claude hand you text to copy: a command, a commit message, a draft. Claude writes it to a file, and Helder shows it in a card at the top of the window, ready to edit and copy. You never have to select text out of the terminal.
|
||||
|
||||
[Guide index](index.md) · Related: [Claude Code](claude-code.md), [Notes](notes.md), [Notifications](notifications.md)
|
||||
[Guide index](index.md) · Related: [Claude Code](claude-code.md), [Notifications](notifications.md)
|
||||
|
||||
## At a glance
|
||||
|
||||
@@ -42,7 +42,7 @@ Clean copy lets Claude hand you text to copy: a command, a commit message, a dra
|
||||
- The card opens in the window of that project, even when the window is in the background. Helder does not come to the front.
|
||||
|
||||
### While something else is open
|
||||
- When another card or dialog is open, such as the [note](notes.md) or [search](search.md), the text waits. The card opens once you close the other one.
|
||||
- When another card or dialog is open, such as [search](search.md) or a [dialog](dialogs.md), the text waits. The card opens once you close the other one.
|
||||
- If Claude writes several times while you wait, only the newest text shows.
|
||||
- When the clean-copy card is already open and new text arrives, the card shows the new text, unless you already edited the text. Then your edits stay and the new text is dropped.
|
||||
|
||||
@@ -62,6 +62,5 @@ Clean copy lets Claude hand you text to copy: a command, a commit message, a dra
|
||||
## Related
|
||||
|
||||
- [Claude Code](claude-code.md): the agent that writes `.clean-copy`.
|
||||
- [Notes](notes.md): the card the clean-copy card looks like.
|
||||
- [Notifications](notifications.md): the "Copied" confirmation.
|
||||
- [Keyboard shortcuts](keyboard-shortcuts.md): every key in one list.
|
||||
|
||||
@@ -13,8 +13,7 @@ my-project/
|
||||
| +-- 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
|
||||
+-- .env (6) APP_NAME sets the project title
|
||||
```
|
||||
|
||||
1. **`.helder` folder**: Helder creates it when you open the project.
|
||||
@@ -22,8 +21,7 @@ my-project/
|
||||
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.
|
||||
6. **`.env`**: Helder reads only `APP_NAME` from it, for the project title.
|
||||
|
||||
## Features
|
||||
|
||||
|
||||
@@ -94,14 +94,13 @@ The file view is the third column (Col C), between the [Explorer](explorer.md) a
|
||||
- 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:
|
||||
With no file open, the bar is empty and the pane shows "No file open" with three 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".
|
||||
|
||||
@@ -87,7 +87,7 @@ Pull, fetch and branch switching are not part of Helder. Use the [Command line](
|
||||
| `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) |
|
||||
| `Cmd+P` | Push the current branch |
|
||||
|
||||
## Related
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ This guide explains Helder from the user's side: what each part of the window sh
|
||||
|
||||
- [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
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ Helder is built to run from the keyboard. Press `?` to see a short list of the m
|
||||
- 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.
|
||||
- **Agent**: pass the selection to the agent.
|
||||
- **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.
|
||||
@@ -164,15 +164,6 @@ See [Search](search.md).
|
||||
| `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) |
|
||||
|
||||
### Clean copy
|
||||
See [Clean copy](clean-copy.md).
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ A Helder window holds one project. It has a title bar on top, four columns in th
|
||||
### 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.
|
||||
- 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:
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
# 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.
|
||||
@@ -42,7 +42,7 @@ Helder confirms what it just did with a toast: a small card that appears near th
|
||||
### 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.
|
||||
- Toasts may sit on top of an open overlay, such as search or clean copy.
|
||||
|
||||
### How it goes away
|
||||
- Each toast disappears by itself after about 2.3 seconds.
|
||||
@@ -76,13 +76,11 @@ Git:
|
||||
| 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:
|
||||
The agent:
|
||||
|
||||
| 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 |
|
||||
| Copied | character count | You copied the text of the [clean-copy](clean-copy.md) card |
|
||||
|
||||
### Other short messages
|
||||
@@ -95,5 +93,4 @@ Two other messages appear for a moment, but they are not toasts:
|
||||
- [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.
|
||||
|
||||
@@ -79,7 +79,6 @@ Pass on to Agent sends a pointer to your code to the [Claude Code](claude-code.m
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
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)
|
||||
[Guide index](index.md) · Related: [Window layout](layout.md), [Search](search.md), [Keyboard shortcuts](keyboard-shortcuts.md)
|
||||
|
||||
## At a glance
|
||||
|
||||
@@ -11,8 +11,8 @@ The title bar is the 44-point strip across the top of a project window. It tells
|
||||
| o o o Helder. shop . main app > Http > User.php * |
|
||||
| (1) (2) (3) (4) (5) (6) |
|
||||
| |
|
||||
| [.Git|.Explorer|.File|.Claude] [Search |.Fluid |.Hidden |Note] [?] |
|
||||
| (7) (8) (9) (9) (8) (10) |
|
||||
| [.Git|.Explorer|.File|.Claude] [Search |.Fluid |.Hidden] [?] |
|
||||
| (7) (8) (9) (9) (10) |
|
||||
+----------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
@@ -21,7 +21,7 @@ The bar is one row in the app. It is drawn on two rows here to fit the page.
|
||||
While Helder reads aloud, a **Stop** button leads the toolbar:
|
||||
|
||||
```text
|
||||
| [.Stop |Search |.Fluid |.Hidden |Note] [?] |
|
||||
| [.Stop |Search |.Fluid |.Hidden] [?] |
|
||||
```
|
||||
|
||||
1. **Window buttons**: the macOS close, minimize and zoom buttons.
|
||||
@@ -31,7 +31,7 @@ While Helder reads aloud, a **Stop** button leads the toolbar:
|
||||
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.
|
||||
8. **Search**: a button that opens an overlay.
|
||||
9. **Fluid** and **Hidden**: on/off toggles.
|
||||
10. **`?`**: opens the keyboard shortcuts.
|
||||
|
||||
@@ -65,10 +65,9 @@ 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.
|
||||
Fluid and Hidden carry a state dot like the pane toggles. Search has no dot, because it is an action. Hover any button for a tooltip that explains its current state.
|
||||
|
||||
### Read aloud
|
||||
- **Stop** shows only while Helder reads a file or a selection aloud. Start the reading from the [right-click menu](right-click-menu.md): **Read aloud** on a Markdown file, **Read aloud selection** in the code.
|
||||
@@ -86,7 +85,6 @@ Drag an empty part of the title bar to move the window, as in any macOS app.
|
||||
| `Cmd+F` | Search |
|
||||
| `Cmd+L` | Fluid column widths on or off |
|
||||
| `Cmd+.` | Hidden files on or off |
|
||||
| `Cmd+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) |
|
||||
@@ -95,7 +93,6 @@ Drag an empty part of the title bar to move the window, as in any macOS app.
|
||||
|
||||
- [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
-1
@@ -60,4 +60,4 @@ subprocess.run(["open", "plak://append?text=" + urllib.parse.quote(text, safe=""
|
||||
- URL building and the 100 KB choice: `Plak` in `Sources/HelderCore/Files/Plak.swift`. The limit counts UTF-8 bytes.
|
||||
- Opening the URL and the clipboard save and restore: `SystemActing.sendToPlak` in `Sources/HelderUI/Shell/SystemActions.swift`.
|
||||
|
||||
Later, Plak will replace Helder's own notes (`.notes.txt`, `Cmd+N`; see [Notes](guide/notes.md)).
|
||||
Plak replaces Helder's old project note (`.notes.txt`, `Cmd+N`), which is gone.
|
||||
|
||||
Reference in New Issue
Block a user