diff options
Diffstat (limited to 'docs/typ/guide.typ')
| -rw-r--r-- | docs/typ/guide.typ | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 3dd8107c..6216b364 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -283,6 +283,28 @@ or one above it. #word("Diff") on a `+Diff` shows the diff itself as text (a paged one's `+Pager` is closed once stacked), and on the text stacks it again. += A file at a revision <revision> + +`path@rev` names a file as jj has it at a revision: `a.zig@main`, +`a.zig@@-`, and `a.zig@main:120` at a line. A #word("Look") at one, +anywhere, opens it in a pane of that name, read-only and coloured as the +file. #word("At") with a revision does the same from a file's pane; in a +revision's pane it turns that pane to another revision, and bare it goes +back to the file. What jj refuses (a revision that is not there, a path +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. jj answers once, when the word is run: the lanes stay +where they were drawn through edits made since. + = Call hierarchy <callstack> Put the cursor on a function and run #word("Callstack") (#key("g c") or #key("SPC l b")). |
