You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b782847
Browse filesBrowse the repository at this point in the historyBrowse files
diff: the first edit opens the pane only where the layout docks it (#94653)
* mods: the declarations are 2.1.273's, which add the vscode surface, plus a render viewport's layout
* diff: the first edit opens the pane only where the layout docks it beside the transcript
Copy file name to clipboardExpand all lines: mods/diff/README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,11 @@ through Buttons that declare the engine's own actions. The pane refreshes
14
14
as Claude edits and runs shell commands, and while it is open it polls
15
15
the repository's HEAD so a commit or checkout made elsewhere shows too.
16
16
The first successful edit of a session opens the pane by itself where the
17
-
terminal is wide enough (144 columns when the person never chose, 110 when
18
-
they kept it open before; a person who closed it is left alone).
17
+
layout docks it beside the transcript (the fullscreen layout, which each
18
+
drawing's `viewport` says) and the terminal is wide enough (144 columns
19
+
when the person never chose, 110 when they kept it open before; a person
20
+
who closed it is left alone); where the surface does not say, nothing
21
+
opens by itself.
19
22
20
23
Under the fullscreen layout a terminal under 110 columns gets the
21
24
built-in's line asking for a wider one and nothing opens. Without that
@@ -58,7 +61,7 @@ moved file by.
58
61
| event | what the hook does |
59
62
| --- | --- |
60
63
|`session.start`| Binds the engine once and registers `/diff` (a session where another `/diff` is listed leaves the plugin idle); asks nothing of the repository, which `/diff` or the first edit pins when it comes. |
61
-
|`ui.render` of `PromptHint`| Reads the terminal's width, which decides whether the first edit opens the pane. |
64
+
|`ui.render` of `PromptHint`| Reads the terminal's width and whether its layout docks a pane, which decide whether the first edit opens the pane. |
62
65
|`ui.render` of `Pane`| Draws the pane: docked, the header, base line, source picker, file list and toggles over the window of hunks; inline, the dialog. |
63
66
|`command.run` of `diff`| Pins the repository when none is, opens or closes the pane (focused and closing on Escape without the fullscreen layout), says which, and remembers the choice. |
64
67
|`ui.close` of the pane | Backs out of the dialog's detail view instead of closing; else remembers the person's close as `/diff`'s. |
0 commit comments