summaryrefslogtreecommitdiff
path: root/docs/typ/guide.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-22 01:12:04 -0300
committerGabriel Schneider <[email protected]>2026-11-22 01:35:39 -0300
commit06d61f097346704452cccd3181da87bb93649bd8 (patch)
tree407fae97ed9d657555f606e6467a74188c282d15 /docs/typ/guide.typ
parent20cbd62897519355d4680267064711d829ef5800 (diff)
downloadpardes-06d61f097346704452cccd3181da87bb93649bd8.tar.gz
pardes-06d61f097346704452cccd3181da87bb93649bd8.zip
layers: the chords, the manual and the cheatsheet (slice 8): `Changes` on `SPC t c` and `Churn` on `SPC t u`, beside `Syntax`'s `SPC t h` in the toggles' group (proposed from its free letters: b c e f g j k m o q r u v x y; the user rules the letters); docs/typ/guide.typ has a chapter "Changes on the source view" after "A file at a revision": the words and their keys (`Changes revset`, `Churn window` with its span-of-time words, `] g`/`[ g`, `path@rev[:line]`), lanes, what a ghost row is and is not (no number, not text to the cursor, search, selection and the numbers, a B3 opens its line at its revision, one row cut and never wrapped, a description's title cut before its author and age, a hunk of more than 1,024 lines taken away shows none), churn (the cell after the number, grey to red on a log scale, the innermost declaration, the strip, the order beside the lanes, a file's history followed by its name only), and when jj answers and how its answer rides with the text; the cheatsheet's leader rows and a line under "Reviewing diffs"; the builtins' lists with the chords; the docs name `] g` as two keys, as the docs check reads keys; `zig build book` 132/132, the docs check 9/9, core-test 912/1072 (160 skipped), shell-test 1114/1117 (3 skipped)
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.typ69
1 files changed, 51 insertions, 18 deletions
diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ
index 0d55c6a6..e73eabaf 100644
--- a/docs/typ/guide.typ
+++ b/docs/typ/guide.typ
@@ -295,24 +295,57 @@ the revision has not) is said in jj's words. jj reads the working copy as
it last saw it (`@`): pardes never snapshots it.
#word("Syntax") (#key("SPC t h")) turns a text's syntax colours off in
this view, and on again.
-#word("Changes") with a revset pins its changes on a file's pane (or a
-revision's) and shows them in this view (one set a pane: another view's
-revset replaces it there too); bare, they are hidden in this view or shown
-again, and with none pinned yet it is `@`, the change against its parent. Each change that touched the file gets a lane after the
-line number, from its first line to its last, in the theme's accents in
-hue order, oldest first; a change that rewrote lines inside another's
-steps a lane to the right on those rows; a line one added whole is green
-across the line. What the file no longer has is drawn where it stood, a
-ghost row with no number: a line a change took away whole, red across;
-each change's description (`id title author age`) after its last line, in
-its lane's colour. The cursor steps over ghost rows, search and selection
-do not see them, and a Look on one opens its line in the revision it came
-from. `]g` and `[g` go to the next and the previous change. jj answers
-once, when the word is run: the lanes and the ghost rows ride with the
-lines through edits made since. A line a change changed is not green across: its
-old text stands right above it as a ghost row, the words that went red,
-and on the line the words that came are green (the patch view's
-alignment says which lines are one line changed).
+
+= Changes on the source view <changes>
+
+jj's changes drawn on a file's own pane, as layers each view wears or
+not: the text stays the text (the patch view, `+Diff`, is unchanged).
+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 this view; one set a pane (another view's revset replaces it there too). Bare: hidden in this view or shown again; with none pinned yet, `@`, the change against its parent],
+ [#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],
+)
+
+*Lanes.* Each pinned change gets a lane after the line number, from its
+first line to its last, in the theme's accents in hue order (a colour too
+close to the one before it skipped), oldest first; a change that rewrote
+lines inside another's steps a lane to the right on those rows. A line
+one added whole is green across the line.
+
+*Ghost rows.* What the file no longer has is drawn where it stood, a row
+of its own with no number: a line a change took away whole, red across;
+a line a change changed, its old text right above it with the words that
+went red, and on the line the words that came green (the patch view's
+alignment says which lines are one line changed); each change's
+description, `id title author age` (`3w`, `4m`), after its last line, in
+its lane's colour, at one place after that change's own ghost rows. A
+ghost row is not text: the cursor steps over it, search, selection and
+the line numbers do not see it, and a #btn("B3") on one opens its line in
+the revision it came from (`path@id-:line`; a description, `path@id`). It
+moves the rows below down in this view alone. It is one row, cut where
+the pane ends (never wrapped); in a narrow pane a description's title is
+cut, its author and age kept. A hunk that took away more than 1,024
+lines shows none of them.
+
+*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
+tree-sitter finds (a line in none has none); beside the scroll thumb a
+strip, each of its rows the hottest of the lines it stands for. With
+#word("Changes") on too, the churn's cell comes first and the lanes stay
+next to the text they mark. A file's history is followed by its name:
+what it had under another name before a move is not counted.
+
+jj answers once, when the word is run, on a worker (the editor goes on);
+its answer is lined up with the pane's text as it is then (lines typed
+before jj's last snapshot or while it ran), and the lanes, ghost rows and
+counts ride with the lines through the edits made since. A place inside
+lines rewritten since jj's snapshot has no ghost row. A change between
+two pinned ones that the revset does not pin still moves the older ones'
+ghost rows to where they stand.
= Call hierarchy <callstack>