diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/typ/builtins-gui.json | 1 | ||||
| -rw-r--r-- | docs/typ/builtins-tui.json | 1 | ||||
| -rw-r--r-- | docs/typ/cheatsheet.typ | 2 | ||||
| -rw-r--r-- | docs/typ/guide.typ | 46 | ||||
| -rw-r--r-- | docs/typ/reference.typ | 3 |
5 files changed, 43 insertions, 10 deletions
diff --git a/docs/typ/builtins-gui.json b/docs/typ/builtins-gui.json index aeaf6953..82d5e279 100644 --- a/docs/typ/builtins-gui.json +++ b/docs/typ/builtins-gui.json @@ -19,6 +19,7 @@ {"name": "ClipYankMain", "leader": "SPC Y", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "helix `<space>Y`: the PRIMARY selection alone, where `SPC y` joins every cursor's."}, {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor."}, {"name": "Collapse", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Fold a pane to its tag, or restore its share of the column."}, + {"name": "Compare", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Pin on a file's pane the file's whole difference between each two of `points` (jj revisions, a blank between, two or more) as one change, however many changes lie between them, and show them in this view as `Changes` shows a change: a lane each, the lines it wrote and took away, its row `from..to N changes dates` after its last line; bare, as bare `Changes`."}, {"name": "Config", "leader": "SPC f c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init`, in a pane: its pane when it is open, else the file, else a pane of that name for Save to make it and its directory."}, {"name": "CursorBlink", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "The cursor blinks, solid while typing, on or off."}, {"name": "Debug", "leader": "SPC t d", "also": ["topbar"], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off."}, diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json index 2263df44..5b171469 100644 --- a/docs/typ/builtins-tui.json +++ b/docs/typ/builtins-tui.json @@ -19,6 +19,7 @@ {"name": "ClipYankMain", "leader": "SPC Y", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "helix `<space>Y`: the PRIMARY selection alone, where `SPC y` joins every cursor's."}, {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor."}, {"name": "Collapse", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Fold a pane to its tag, or restore its share of the column."}, + {"name": "Compare", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Pin on a file's pane the file's whole difference between each two of `points` (jj revisions, a blank between, two or more) as one change, however many changes lie between them, and show them in this view as `Changes` shows a change: a lane each, the lines it wrote and took away, its row `from..to N changes dates` after its last line; bare, as bare `Changes`."}, {"name": "Config", "leader": "SPC f c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init`, in a pane: its pane when it is open, else the file, else a pane of that name for Save to make it and its directory."}, {"name": "Debug", "leader": "SPC t d", "also": ["topbar"], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off."}, {"name": "Def", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Go to the definition of the symbol under the cursor; with an argument (a 2-1 chord's selection), of that symbol, where it is nearest."}, diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index d65ca6d9..9f51d309 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -119,7 +119,7 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla == Reviewing diffs `git diff` output is a diff: #btn("B3") on a file line, an `@@` or a line's `+`/`-` jumps there. #doc("tags", section: "reviewing-diffs") -#word("Changes") `revset` on a file's pane: a lane a change, ghost rows for what it took away, #keys("] g", "[ g") from change to change; #word("Churn") `3m`: each declaration's changes, grey to red; `a.zig@main:12` is a file at a revision. #doc("guide", section: "changes") +#word("Changes") `revset` on a file's pane: a lane a change (one change: green beside what it wrote, red beside what it took away), an arrow to its description, ghost rows for what it took away, #keys("] g", "[ g") from change to change; #btn("B3") on a change id: its patch, header first; #word("Compare") `a b c`: one lane a pair of points, the whole difference between them (a three-way view); #word("Churn") `3m`: each declaration's changes, grey to red; `a.zig@main:12` is a file at a revision. #doc("guide", section: "changes") == Finding things - A query pane under the pane: line 1 the query, its first word the source: `/pat`, `Find name` (fuzzy), `Grep text` (literal), `Recent`, `Panes`, `Symbols`, `All`. #keys("Ctrl-n", "Ctrl-p") step, #key("Enter") lands and keeps the rows, #key("Esc") puts things back. #word("Help"), #word("Tutor"). diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index e73eabaf..c7cd5d8b 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -304,16 +304,23 @@ 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("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], + [#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 -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,15 +328,38 @@ 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 lines shows none of them. +*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. With the pane at a +middle point (#word("At") the second of three) the first pair is drawn +right, the second as a change ahead of the text is drawn today, as if +behind it. + *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 diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index ac61ca74..fac705c6 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -914,7 +914,8 @@ Terminal panes also have #file("pty/"): the clear onward). Or: `busy: <program> is running` (bare `busy` when text is typed at the prompt, `busy alternate screen` on the alternate screen with no prompt drawn), `exit ?` (no status reported, not a success), `error not run` (the shell refused the line, e.g. a fish syntax error), `error shell gone`, `error no prompt marks`, and on a command pane `error a command runs here, not a shell` (`error command done; not a shell` once it ended). A line written - before a fresh terminal's first prompt waits for it. One line per run; a + before a fresh terminal's first prompt waits for it, and for the prompt + after the `ls` a new terminal in a directory greets with. One line per run; a second line before the answer is refused. #file("pty/run") relies on the OSC 133 marks pardes injects into bash and |
