toggling between views made possible

This commit is contained in:
2026-11-09 14:01:49 +01:00
parent cc6651c08a
commit 2887965a9e
18 changed files with 149 additions and 17 deletions
+5 -4
View File
@@ -42,7 +42,7 @@ The top bar contains, left to right:
## 3. Git view
A full-screen view over the whole window (top bar, columns and status bar) for staging, committing, pulling, pushing and switching branches. `Cmd+G`, the `Git N` toggle and View › Show Git open it. `Cmd+G`, `Esc` and its **Close** button close it. Dialogs, context menus, search, the Diff and toasts sit above it. The columns stay mounted under it, so terminals keep running and the editor keeps its state. Opening it puts the keyboard in the commit message; closing it hands the keyboard back to the column that had it. It is not persisted: a project always opens with it closed.
A full-screen view over the whole window (top bar, columns and status bar) for staging, committing, pulling, pushing and switching branches. `Cmd+G`, the `Git N` toggle and View › Show Git open it. `Cmd+G`, `Esc` and its **Close** button close it. Dialogs, context menus, search, the Diff and toasts sit above it. From the search or the Diff, `Cmd+G` (and View › Show Git) closes that overlay and opens the view; when the view is already open under the search it only closes the search, it never closes the view. `Cmd+F` from the view opens the search above it. The columns stay mounted under it, so terminals keep running and the editor keeps its state. Opening it puts the keyboard in the commit message; closing it hands the keyboard back to the column that had it. It is not persisted: a project always opens with it closed.
While it is open, the columns' row, focus and editor keys rest. `Cmd+Return` commits, except from the console input. The other `Cmd` shortcuts keep working. `Cmd+C` with no selection, outside a terminal, opens the view on the commit message. `Esc` closes the topmost layer: an overlay (context menu, dialog, search, Diff) first, then the Git view; with neither open it reaches the terminal.
@@ -88,7 +88,7 @@ Four colour-coded sections, each only when it has rows, in this order:
- A merge conflict (`UU`, `AA`, `DD`, or any `U`) is one unstaged `U` row in **changed**, never a staged row, and does not count toward `Commit N files`. Its badge is red, a red flag after the path has the tooltip `Merge conflict — resolve, then Stage`, and the row has a red left bar and a faint red fill. Its inline diff is the last commit against the file on disk, conflict markers included.
- A conflicted row offers only **Stage**: staging marks the resolution.
- **Discard** reverts unstaged changes (modified and deleted files from the index, new files removed). **Discard** and **Delete** ask first (`git.confirmDiscard`, default on); **Restore** never asks. Stage and unstage never ask.
- **Right-click** a row: **Open in editor** (left out for a deleted file), **Pass on reference**, **Copy reference**. Open in editor and Pass on reference close the view first.
- **Right-click** a row: **Open in editor** and **Open diff** (both left out for a deleted file), **Pass on reference**, **Copy reference**. Open diff opens the file and shows its full-screen Diff. Open in editor, Open diff and Pass on reference close the view first.
### Bottom strip
@@ -119,7 +119,7 @@ The list is read when the view opens and after every command, with the branches.
## 4. Schema view
A full-screen view, drawn like the Git view, that shows the database of a Laravel app as a diagram of tables and foreign-key lines. It exists only in a Laravel app: a project with an `artisan` file in its root. Elsewhere there is no **Schema** button, `Cmd+D` does nothing and View › Show Schema is disabled. `Cmd+D`, the **Schema** toggle and View › Show Schema open it; `Cmd+D`, `Esc` and its **Close** button close it. Opening it closes the Git view, and opening the Git view closes it. Dialogs, menus, search and toasts sit above it, and the columns stay mounted under it. It is not persisted: a project always opens with it closed.
A full-screen view, drawn like the Git view, that shows the database of a Laravel app as a diagram of tables and foreign-key lines. It exists only in a Laravel app: a project with an `artisan` file in its root. Elsewhere there is no **Schema** button, `Cmd+D` does nothing and View › Show Schema is disabled. `Cmd+D`, the **Schema** toggle and View › Show Schema open it; `Cmd+D`, `Esc` and its **Close** button close it. Opening it closes the Git view, and opening the Git view closes it. `Cmd+D` and View › Show Schema switch from the search and the Diff exactly as `Cmd+G` does for the Git view (section 3). Dialogs, menus, search and toasts sit above it, and the columns stay mounted under it. It is not persisted: a project always opens with it closed.
Helder reads the diagram from `database/helder/schema.json`, which the app's own Artisan command `app/Console/Commands/HelderSchemaCommand.php` (`php artisan helder:schema`) writes. The file's contract is in [schema.md](schema.md).
@@ -197,7 +197,7 @@ All are presentations of the same file:
1. **The live file**: the current, editable version. On a changed file it marks the changed lines in place, with a teal tint, a 2px teal left rule, and a teal line number. There is no sign column, no `+` or `-` pair, and no removed line inline. A pure deletion has no current line to mark, so the neighbouring current line carries a 2px amber-deep rule on its top edge, or on its bottom edge at the end of the file. An unchanged file shows plain code.
2. **Preview**: Markdown files only. It shows the rendered document instead of the source. `Cmd+M` switches a Markdown file between code and the rendered preview.
3. **Diff**: changed files only. The editor expands to full screen, covering the other columns. The original file is on the left and the updated file is on the right, lines aligned. `Esc`, or a collapse control in the corner, returns to the live file.
3. **Diff**: changed files only. The editor expands to full screen, covering the other columns. The original file is on the left and the updated file is on the right, lines aligned. `Esc`, or a collapse control in the corner, returns to the live file. `Cmd+G` / `Cmd+D` close the Diff (back to the live file) and open the Git / Schema view; `Cmd+F` replaces the Diff with the search.
A changed file opens on the live file, or on the Diff when `git.defaultDiffMode` is `diff`.
@@ -304,6 +304,7 @@ Inside the overlay:
- The focused column shows its focus only by its amber title and count.
- Selecting a content result opens the file and jumps to that line. Selecting a file-name result opens that file.
- When nothing matches, each column shows a brief no-results message.
- Every key belongs to the search except `Cmd+G` and `Cmd+D` (Laravel app only): they close the search and open the Git / Schema view, or leave that view open when it is already under the search. View › Show Git / Show Schema do the same.
- `Esc` closes the overlay; there is no area to click to close it. The respected excludes are the same as the Explorer (`files.exclude` and, when on, gitignore).
### Mouse pointer