toggling between views made possible
This commit is contained in:
@@ -35,7 +35,7 @@ The Diff is a full-screen, side-by-side comparison of a changed file. It covers
|
||||
- Click **Diff** in the [file view](file-view.md) bar. The button shows only on a file with git changes.
|
||||
- Right-click a marked (teal) line in the file view and choose **Show diff**. The Diff opens centred on that line.
|
||||
- Show diff on a marked line always compares the last commit with the file on disk.
|
||||
- The [Git](git.md) view has its own inline diff per file row. **Open in editor** on a row opens the file; click **Diff** there for the full-screen view.
|
||||
- In the [Git](git.md) view, right-click a file row and choose **Open diff**. The view closes and the file opens in the Diff.
|
||||
|
||||
### Layout
|
||||
- The Diff covers all columns. The window's shortcuts still work over it.
|
||||
@@ -74,6 +74,7 @@ The Diff is a full-screen, side-by-side comparison of a changed file. It covers
|
||||
### Close the Diff
|
||||
- Press `Esc` or click **Collapse**.
|
||||
- `Esc` closes the innermost layer first: the menu, then the prompt, then the Diff.
|
||||
- `Cmd+G` or `Cmd+D` closes the Diff and opens the [Git](git.md) or [Schema](schema.md) view. `Cmd+F` replaces the Diff with [Search](search.md).
|
||||
- You return to the view you came from, with the keyboard back in the code.
|
||||
|
||||
## Keyboard
|
||||
@@ -81,6 +82,8 @@ The Diff is a full-screen, side-by-side comparison of a changed file. It covers
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Esc` | Close the menu, the prompt, or the Diff |
|
||||
| `Cmd+G` / `Cmd+D` | Close the Diff and open the Git / Schema view |
|
||||
| `Cmd+F` | Close the Diff and open Search |
|
||||
| `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 |
|
||||
|
||||
@@ -33,7 +33,7 @@ The file view is the third column (Col C), between the [Explorer](explorer.md) a
|
||||
## Features
|
||||
|
||||
### Open a file
|
||||
- Click a file in the [Explorer](explorer.md), choose **Open in editor** on a row in the [Git](git.md) view, pick a result in [Search](search.md), or use [Go to file](go-to-file.md).
|
||||
- Click a file in the [Explorer](explorer.md), choose **Open in editor** (or **Open diff**) on a row in the [Git](git.md) view, 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.
|
||||
|
||||
+4
-3
@@ -46,6 +46,7 @@ The Git view is a full-screen page for everything git: it lists every changed fi
|
||||
|
||||
### Open and close the view
|
||||
- `Cmd+G`, the **Git** toggle in the [Title bar](title-bar.md), or View > Show Git opens it. The toggle reads `Git N`, where N counts the changed files.
|
||||
- From [Search](search.md) or the [Diff](file-view-diff.md), `Cmd+G` closes it and opens the view. If the view is already open under Search, `Cmd+G` only closes Search.
|
||||
- The view covers the whole window: title bar, columns and status bar. The columns stay as they were under it. Terminals keep running.
|
||||
- When it opens, the keyboard goes to the commit message.
|
||||
- `Cmd+C` with no text selected, outside a terminal, also opens the view on the commit message.
|
||||
@@ -98,10 +99,10 @@ Staged rows carry an amber bar on their left edge. A conflicted row carries a re
|
||||
- Removed lines have an amber tint, added lines a teal tint. In a changed line pair, the part that differs is highlighted.
|
||||
- Each change keeps 3 unchanged lines around it. Longer unchanged runs fold into `⋯ N unchanged lines`.
|
||||
- A file over 1 MB shows `Too big.`. A file with no text changes shows `— No line changes.`.
|
||||
- For the full-screen comparison, open the file and use the [Diff](file-view-diff.md).
|
||||
- For the full-screen comparison, right-click the row and choose **Open diff**, or open the file and use the [Diff](file-view-diff.md).
|
||||
|
||||
### Right-click a row
|
||||
Right-click a file row for **Open in editor**, **Pass on reference** and **Copy reference**. See the [right-click menu](right-click-menu.md#git-rows). Open in editor and Pass on reference close the view first.
|
||||
Right-click a file row for **Open in editor**, **Open diff**, **Pass on reference** and **Copy reference**. See the [right-click menu](right-click-menu.md#git-rows). Open in editor, Open diff and Pass on reference close the view first.
|
||||
|
||||
### Pull and push
|
||||
- **Pull** runs `git pull --no-rebase`. When your branch and origin both have new commits, git merges them.
|
||||
@@ -150,7 +151,7 @@ You do not need to refresh by hand. The list updates by itself:
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Cmd+G` | Open or close the Git view |
|
||||
| `Cmd+G` | Open or close the Git view; from Search or the Diff, close it and open the view |
|
||||
| `Esc` | Close the Git view (after any dialog, menu, search or Diff on top of it) |
|
||||
| `Cmd+C` | Open the view on the commit message (no text selected, not in a terminal) |
|
||||
| `Cmd+Enter` | Commit, while the view is open (not from the console input) |
|
||||
|
||||
@@ -51,6 +51,7 @@ Helder is built to run from the keyboard. Press `?` to see a short list of the m
|
||||
- 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.
|
||||
- Search, the Git view, the Schema view and the Diff switch to each other: `Cmd+G` / `Cmd+D` from Search or the Diff close it and open the view (Search only closes when the view is already under it). `Cmd+F` opens Search above the Git or Schema view, and in place of the Diff.
|
||||
- `Esc` closes the topmost layer: a right-click menu, a dialog, search or the Diff first, then the [Schema](schema.md) view's selection, its search text and the view itself, or the [Git](git.md) view. With none of those open, `Esc` goes to the terminal.
|
||||
- While the Git or Schema view is open, the column keys rest: arrows, `Return` and `Cmd+Left` / `Cmd+Right` do nothing in the columns under it.
|
||||
|
||||
@@ -156,6 +157,8 @@ See [Diff view](file-view-diff.md).
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Esc` | Close the menu, then the pass-on prompt, then the Diff itself |
|
||||
| `Cmd+G` / `Cmd+D` | Close the Diff and open the Git / Schema view |
|
||||
| `Cmd+F` | Close the Diff and open search |
|
||||
| `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 |
|
||||
@@ -178,6 +181,7 @@ See [Search](search.md).
|
||||
| `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 |
|
||||
| `Cmd+G` / `Cmd+D` | Close search and open the Git / Schema view |
|
||||
| `Esc` | Close search |
|
||||
|
||||
### Clean copy
|
||||
|
||||
@@ -67,6 +67,7 @@ Right-click a file row in the [Git](git.md) view. The header is the file's path.
|
||||
| app/Http/UserController.php |
|
||||
|----------------------------------------|
|
||||
| [] Open in editor |
|
||||
| <> Open diff |
|
||||
|----------------------------------------|
|
||||
| * Pass on reference |
|
||||
| # Copy reference |
|
||||
@@ -74,6 +75,7 @@ Right-click a file row in the [Git](git.md) view. The header is the file's path.
|
||||
```
|
||||
|
||||
- **Open in editor** (bold): closes the Git view and opens the file in the [File view](file-view.md). A deleted file has nothing to open, so its menu holds only the two reference items.
|
||||
- **Open diff**: closes the Git view, opens the file and shows its full-screen [Diff](file-view-diff.md). Not on a deleted file.
|
||||
- **Pass on reference**: closes the Git view, then opens the [Pass on](pass-on-to-agent.md) prompt with the file's path.
|
||||
- **Copy reference**: copies the file's path.
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ The Schema view is a full-screen diagram of a Laravel app's database: every tabl
|
||||
### Open and close the view
|
||||
- `Cmd+D`, the **Schema** toggle in the [Title bar](title-bar.md), or View > Show Schema opens it. The toggle's dot is amber while the view is open.
|
||||
- The view covers the whole window. The columns stay as they were under it, and terminals keep running.
|
||||
- From [Search](search.md) or the [Diff](file-view-diff.md), `Cmd+D` closes it and opens the view. If the view is already open under Search, `Cmd+D` only closes Search.
|
||||
- Close it with `Cmd+D`, `Esc`, or the **Close** button. The keyboard goes back to the column that had it.
|
||||
- The Git view and the Schema view never show together: opening one closes the other.
|
||||
- The view is not remembered: a project always opens with it closed.
|
||||
@@ -117,7 +118,7 @@ You do not need to refresh by hand. Helder watches the project folder: when the
|
||||
|
||||
| Keys | Action |
|
||||
|---|---|
|
||||
| `Cmd+D` | Open or close the Schema view (Laravel apps) |
|
||||
| `Cmd+D` | Open or close the Schema view (Laravel apps); from Search or the Diff, close it and open the view |
|
||||
| `Return` | In the table search: select and centre the first match |
|
||||
| `Esc` | Deselect the table, then clear the search (while it has the keyboard), then close the view |
|
||||
| `Cmd+G` | Switch to the Git view |
|
||||
|
||||
@@ -35,6 +35,8 @@ Search covers the whole window, edge to edge, like the [Git view](git.md). One q
|
||||
- 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.
|
||||
- Search covers the whole window, title bar and status bar included, with no margin. Press `Esc` to close it.
|
||||
- Over the [Git](git.md) or [Schema](schema.md) view, Search opens on top of it. From the [Diff](file-view-diff.md), Search takes its place.
|
||||
- `Cmd+G` and `Cmd+D` close Search and open the Git or Schema view (or leave it open, if it was under Search). Every other key stays with Search.
|
||||
|
||||
### Typing
|
||||
- Results update as you type.
|
||||
@@ -97,6 +99,7 @@ Each column says why it is empty:
|
||||
| `Up` / `Down` | Previous / next row in the column |
|
||||
| `Cmd+Up` / `Cmd+Down` | Previous / next row in the column |
|
||||
| `Enter` | Open the selected result |
|
||||
| `Cmd+G` / `Cmd+D` | Close Search and open the Git / Schema view |
|
||||
| `Esc` | Close Search |
|
||||
|
||||
## Settings
|
||||
|
||||
Reference in New Issue
Block a user