Improve loads of fancy things in relation to the mouse pointer
This commit is contained in:
+4
-2
@@ -135,7 +135,7 @@ All are presentations of the same file:
|
||||
|
||||
A changed file opens on the live file, or on the Diff when `git.defaultDiffMode` is `diff`.
|
||||
|
||||
**On the live file, a click on a marked line opens the Diff.** The full-screen side-by-side view comes up on the pair of the whole file, HEAD against disk, and both panes scroll so that the clicked line sits in the middle of the window. A line near the start or the end of the file goes as near to the middle as the file permits. `Esc` returns to the live file. Hover does nothing, and there is no animation. A new file, where every line is marked, does not open the Diff on click.
|
||||
**On the live file, Show diff in the right-click menu of a marked line opens the Diff.** A left click on a marked line places the caret like on any line. The full-screen side-by-side view comes up on the pair of the whole file, HEAD against disk, and both panes scroll so that the right-clicked line sits in the middle of the window. A line near the start or the end of the file goes as near to the middle as the file permits. `Esc` returns to the live file. Hover does nothing, and there is no animation. A new file, where every line is marked, offers no Show diff.
|
||||
|
||||
Shared rules: teal is what the file holds now, amber-deep is what it held before. There is no green and no red anywhere. Syntax highlighting stays on in all modes. Line numbers follow `editor.lineNumbers` (default absolute).
|
||||
|
||||
@@ -147,11 +147,13 @@ Shared rules: teal is what the file holds now, amber-deep is what it held before
|
||||
|
||||
### Right-click in code
|
||||
|
||||
Right-clicking inside the code area, with or without a selection, shows a context menu with exactly two items:
|
||||
Right-clicking inside the code area, with or without a selection, shows a context menu without a header line, with two items:
|
||||
|
||||
1. **Copy reference**: copies a reference to the clicked location to the clipboard. With no selection it is path plus single line, for example `src/Http/Controller/UserController.php:42`. With a selection it is path plus start and end line, for example `src/Http/Controller/UserController.php:42-58`. The path is project-relative.
|
||||
2. **Pass on to Agent**: opens a small inline input popup anchored near the click or selection, with a single optional text field. On confirm (`Enter`), it composes one line, the typed text followed by the same reference, and inserts it into the agent pane's input. The insert does **not** submit. It lands as a new, unsubmitted line and the cursor sits on a fresh line, so the action can be repeated to stack several references before the user sends. `Esc` cancels with no insert. An empty field passes the bare reference.
|
||||
|
||||
On a marked line of the live file (any marked line, blank lines and the space after the text included), a separator and a third item follow: **Show diff**, which opens the Diff centred on that line. A new file, Preview and the Diff's own menu have no Show diff.
|
||||
|
||||
### File-state behavior in the views
|
||||
|
||||
- **Added file**: only the current content exists. The live file marks every line as added, and Diff shows an empty left pane with the file on the right.
|
||||
|
||||
Reference in New Issue
Block a user