summaryrefslogtreecommitdiff
path: root/docs/typ/guide.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 15:10:44 -0300
committerGabriel Schneider <[email protected]>2026-11-23 15:38:37 -0300
commit3e60c54651f10fe9233a40bc1f1fdaed141d2116 (patch)
treed6023a7f7e1bc02319e7f9bf75b76e4eed90517d /docs/typ/guide.typ
parent0e2012de121a9735d3c2ab7871a04d144636b849 (diff)
parentf34d3a74cc4a6b735c98ce98cef0df42bd065e67 (diff)
downloadpardes-3e60c54651f10fe9233a40bc1f1fdaed141d2116.tar.gz
pardes-3e60c54651f10fe9233a40bc1f1fdaed141d2116.zip
merge: the Changes layer as the pane's read-only text (pardes-m64-base: round 8's two changes on pardes-merge63c) and Compare (pardes-merge64: `ntlsszul`, `qkksrtsn`), resolved by function: `pinWord` (Compare's road for both words) keeps round 8's `setLanes` (the layer the pane's: shown or hidden in every view of it), `pinAnswer` parses the file's text (`File.fileText`) and names its kind's word in every notice, `describe` gives a pair its row whole (no author; `fitted` gone with round 8's cut) and returns where an author would start, `isPair` kept beside it, `lookGhost` reads a description line as round 8 does (a buffer line, `readOnlyRow`) and opens a pair's patch by its row's first word (`from..to`), hunks.zig `word` tries a pair then a change (`diffChange(.., false)`) and keeps round 8's revset word at no such file, its doc saying both; round 8's rule made Compare's (the coordinator's 15:10: "a pair is ahead when its FROM point's text is the shown one"): `pairRuns` finds where the revision shown stands among the points (an empty `jj diff --from POINT --to REV`: the last point first, the one diff already run; then from the first), marks every pair from there on `a` (pinned, ahead) or `d`, and adds the step from the last point to the revision shown only when no point's text is the shown one; `pairOwners` skips a step ahead (it wrote none of the shown lines); the test marked ROUND 8 ("Compare in a revision's pane at its middle point ...") now wants the second pair ahead (`d();` the text's, going; `d2();` and `e();` read-only lines after it; its row after them) and passes; the first Compare test's `]g` wants each run's first line, a layer's line among them (rows 2 and 6, where ghost rows were no lines: 2 and 3); the guide's *Points.* paragraph says a middle point's pairs as built, the cheatsheet's and the guide's table rows both sides', `pinWord`'s and Compare's docs (builtins.zig, both JSON lists) "in every view of it"; core-test filtered on jj (Debug tui): 54/54 with the next changes' tests left out
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/typ/guide.typ')
-rw-r--r--docs/typ/guide.typ24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ
index bc02298c..21cd1863 100644
--- a/docs/typ/guide.typ
+++ b/docs/typ/guide.typ
@@ -304,10 +304,12 @@ Nothing is shown, and nothing asked of jj, until a word is run.
#pairs(
[#word("Changes") `revset` (#key("SPC t c"))], [pins the revset's changes that touched the file on its pane (or a revision's) and shows them, in every view of the pane: their lines are the pane's text. Bare: hidden or shown again; with none pinned yet, `@`, the change against its parent],
+ [#word("Compare") `rev rev [rev …]`], [between each two of the points, in their order, the file's whole difference pinned as one change, however many changes lie between them, drawn as a change is; each point one revision (a commit or change id, a bookmark, `master@origin`, `@`). Bare: as bare #word("Changes"); one set a pane, the last word's],
[#word("Churn") `window` (#key("SPC t u"))], [counts, for each declaration, the window's changes that touched it, and shows them in this view; the window a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`). Bare: hidden or shown again; with none counted yet, the file's whole history],
[#keys("] g", "[ g")], [the next and the previous change's first line],
[`path@rev`, `path@rev:line`], [the file at a revision (#doc("guide", section: "revision")): a #word("Look") anywhere opens it],
[#word("Diff") `change` `path:line`], [a jj change's patch, its header (ids, author, dates, the whole message) above its hunks, in its own `+Diff`, the cursor on `path`'s line in it; a #word("Look") on a change id (eight of its letters, `k` to `z`, as `jj log` shows them) anywhere opens it at its top; `Diff @-`, `Diff` a bookmark (a word that names no file): that revision's, the same],
+ [#word("Diff") `from..to` `path:line`], [a pair's patch: the difference of `path` between the two points (bare, the whole tree's), the changes between them on top, a line each, `+` one in `to` and not in `from`, `-` the other way (what the difference takes back); a #word("Look") on a pair's row's first word opens it],
)
*Lanes.* Each pinned change gets a lane after the line number, from its
@@ -350,6 +352,28 @@ take away are the text's own, red across: going. A change that is
neither (a sibling) is not shown: its lines are no revision's on this
one's line.
+*Points.* #word("Compare") `9ef6312813 ea63317630 master@origin` draws
+two changes on the file, each the whole difference between two points:
+what changed from the first to the second, and from the second to the
+third (a three-way view), where #word("Changes") draws a lane for every
+commit between them. A pair's row, after its last line as a change's
+description is, reads
+`ozlwptts..pyquzokk 4 changes, 1 undone 2026-09-25..2026-11-03`:
+its two points (change ids), how many changes
+between them touched the file (`undone`: those in the first point and not
+in the second, which the difference takes back, as between two branches),
+and the first and last of their days. The points need not be ancestors of
+one another: what is drawn is two trees' difference, and ancestry only
+names the changes between. A pair that changes nothing in the file is not
+drawn. The pairs stand behind the text when the last point's text is the
+one shown (`@` with the file as it was there, or the last point's
+revision); the step from the last point to the revision shown carries
+their places, as a change between pinned ones does. A pair whose first
+point's text is the one shown, and every pair after it, is ahead of the
+text, drawn as a change ahead is (*From the middle*): with the pane at a
+middle point (#word("At") the second of three) the first pair is behind
+it, the second's lines are the ghost lines where they will stand.
+
*Churn.* A cell after the line number, from the line numbers' grey to the
theme's red on a log scale of the count against the file's hottest
declaration, the declaration a line is in being the innermost