summaryrefslogtreecommitdiff
path: root/docs/typ/guide.typ
diff options
context:
space:
mode:
Diffstat (limited to 'docs/typ/guide.typ')
-rw-r--r--docs/typ/guide.typ23
1 files changed, 15 insertions, 8 deletions
diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ
index e73eabaf..985d324d 100644
--- a/docs/typ/guide.typ
+++ b/docs/typ/guide.typ
@@ -307,13 +307,18 @@ Nothing is shown, and nothing asked of jj, until a word is run.
[#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],
)
*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.
+first line to its last; a change that rewrote lines inside another's
+steps a lane to the right on those rows. With one change pinned (bare
+`Changes`, a diff) its lane is the diff's own colours: green beside the
+lines it wrote, red beside what it took away; with several, each its own
+of the theme's accents in hue order (a colour too close to the one before
+it skipped), oldest first, so they are told apart. At a change's
+description its lane ends in an arrow to it. 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;
@@ -321,10 +326,12 @@ 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
+its lane's colour (one change pinned: its id in the theme's keyword
+colour), at one place after that change's own
+ghost rows. The cursor steps over a ghost row, and search, selection and
+the line numbers do not see it; a #btn("B3") on one looks at the word
+there as anywhere, and on a description's id opens that change's patch
+at the row for its last line here (`Diff id path:line`). 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