summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/builtins.zig428
-rw-r--r--core/builtins_json.zig28
-rw-r--r--core/config.zig2
-rw-r--r--core/ninep/ctl.zig115
-rw-r--r--docs/typ/builtins-tui.json232
5 files changed, 477 insertions, 328 deletions
diff --git a/core/builtins.zig b/core/builtins.zig
index 51f22bcb..b7e1a111 100644
--- a/core/builtins.zig
+++ b/core/builtins.zig
@@ -1,4 +1,15 @@
//! Command structs and runtime settings form the builtin registry; bindings live in config.zig.
+//!
+//! THE CONVENTION: the `///` block right above a builtin's `pub const
+//! <Word> = struct` is what a USER reads, in Help, `pardes help`, /commands,
+//! `pardes words` and the manual's glossary (`registry.doc`): what the word
+//! does, its argument's forms as typed, what it does bare, where its answer
+//! goes, an example where the forms are not obvious. No file names, no
+//! "registration", no history: notes for whoever reads the code are `//`
+//! lines inside the struct. Its first sentence (to the first `. `) is the
+//! summary, at most `summary_max` bytes; a blank `///` starts a paragraph.
+//! The compiler holds it: a builtin with no `///`, a summary past the bound
+//! or a `///` naming a .zig file fails the build, naming the builtin.
const std = @import("std");
const pardes = @import("root.zig");
const tagline = @import("tagline.zig");
@@ -152,6 +163,46 @@ pub fn word(comptime T: type) []const u8 {
return n[dot + 1 ..];
}
+/// A builtin's documentation (THE CONVENTION, at the top of this file).
+pub const Doc = struct {
+ /// Its first sentence: a line of /commands and of `pardes words`.
+ summary: []const u8,
+ /// All of it, a line a paragraph, the summary first.
+ text: []const u8,
+};
+
+/// The longest summary, in bytes: a line's worth after its word.
+pub const summary_max = 100;
+
+/// `text`'s first sentence: to the first `.` a blank or a line's end
+/// follows (`a.zig@main` and `from..to` go on).
+fn docOf(comptime text: []const u8) Doc {
+ for (text, 0..) |c, i| {
+ if (c == '\n') return .{ .summary = text[0..i], .text = text };
+ if (c == '.' and (i + 1 == text.len or text[i + 1] == ' ' or text[i + 1] == '\n')) return .{ .summary = text[0 .. i + 1], .text = text };
+ }
+ return .{ .summary = text, .text = text };
+}
+
+/// The `///` lines from `from` to `to` in `source` as paragraphs: each
+/// line's text after `///` joined to the next by a blank, a blank `///` a
+/// line break.
+fn paragraphs(comptime source: []const u8, comptime from: usize, comptime to: usize) []const u8 {
+ var text: []const u8 = "";
+ var lines = std.mem.splitScalar(u8, source[from..to], '\n');
+ var gap: []const u8 = "";
+ while (lines.next()) |line| {
+ const said = std.mem.trim(u8, line["///".len..], " ");
+ if (said.len == 0) {
+ if (text.len > 0) gap = "\n";
+ continue;
+ }
+ text = text ++ (if (text.len == 0) "" else if (gap.len > 0) gap else " ") ++ said;
+ gap = "";
+ }
+ return text;
+}
+
pub const OutputTraits = struct {
name: []const u8,
steps: bool = false,
@@ -204,6 +255,63 @@ pub const registry = struct {
return setting;
}
+ /// What a user reads of builtin `b` (THE CONVENTION, at the top).
+ pub fn doc(b: Builtin()) Doc {
+ return docs[@backingInt(b)];
+ }
+
+ /// Each builtin's documentation, by its number: a hand-written one's
+ /// the `///` block above it, read off this file at compile time; a
+ /// setting's its `doc`.
+ const docs = docs: {
+ const manual = manualBuiltinList();
+ const generated = settingList();
+ var table: [manual.len + generated.len]Doc = undefined;
+ var found: [manual.len]bool = @splat(false);
+ // a few branches a byte of the source, once
+ @setEvalBranchQuota(4_000_000);
+ const source = @embedFile("builtins.zig");
+ var block: ?usize = null; // where the `///` lines above this one start
+ var block_end: usize = 0;
+ var at: usize = 0;
+ while (at < source.len) {
+ const end = std.mem.indexOfScalarPos(u8, source, at, '\n') orelse source.len;
+ const line = source[at..end];
+ if (std.mem.startsWith(u8, line, "///")) {
+ if (block == null) block = at;
+ block_end = end;
+ } else {
+ if (block) |from| if (std.mem.startsWith(u8, line, "pub const ")) {
+ const rest = line["pub const ".len..];
+ if (std.mem.indexOf(u8, rest, " = struct")) |name_end| for (manual, 0..) |T, i| {
+ if (!std.mem.eql(u8, word(T), rest[0..name_end])) continue;
+ table[i] = docOf(paragraphs(source, from, block_end));
+ found[i] = true;
+ };
+ };
+ block = null;
+ }
+ at = end + 1;
+ }
+ for (manual, 0..) |T, i| {
+ if (!found[i]) @compileError("builtin " ++ word(T) ++ " has no documentation: a `///` block right above `pub const " ++ word(T) ++ " = struct`");
+ held(word(T), table[i]);
+ }
+ for (generated, manual.len..) |setting, i| {
+ table[i] = docOf(setting.doc);
+ held(setting.word, table[i]);
+ }
+ break :docs table;
+ };
+
+ /// THE CONVENTION's two rules the compiler can read.
+ fn held(comptime name: []const u8, comptime d: Doc) void {
+ if (d.summary.len > summary_max)
+ @compileError(std.fmt.comptimePrint("builtin {s}: its first sentence is {d} bytes, over {d}: \"{s}\"", .{ name, d.summary.len, summary_max, d.summary }));
+ if (std.mem.indexOf(u8, d.text, ".zig") != null)
+ @compileError("builtin " ++ name ++ ": its documentation names a source file; a note for the code's reader is a `//` line inside the struct");
+ }
+
pub fn takesArg(b: Builtin()) bool {
// Every setting takes its value, and a switch flips when bare.
return declOr(b, "takes_arg", false, true);
@@ -394,10 +502,12 @@ pub fn warnModifiedIn(c: Ctx, asking: Pane.Discarding, which: Asked) bool {
return count > 0;
}
-/// Quit the editor, refusing once while a pane holds unsaved text: an Exit
-/// with nothing edited since discards it (acme's Exit, editors/acme/exec.c:892,
-/// asking warnModified first).
+/// Quit the editor; refused once while a pane holds unsaved text.
+///
+/// Each pane with unsaved text is listed in +Unsaved and the notice counts
+/// them; Exit again, nothing edited since, quits and discards it.
pub const Exit = struct {
+ // acme's Exit (editors/acme/exec.c:892), asking warnModifiedIn first.
pub const scope: Scope = .session;
pub fn run(c: Ctx) void {
if (warnModifiedIn(c, .Exit, .all)) return;
@@ -406,14 +516,16 @@ pub const Exit = struct {
}
};
-/// acme's Kill (exec.c, `kill`; acme.c's WKill): stop the commands pardes
-/// started -- the lines it typed into a terminal, from an exec, a middle
-/// click or a pty/run, while their shell says they run (C mark to D).
-/// Bare, every one; `Kill make ls`, those whose line starts with one of
-/// the words. acme posts the "kill" note, which ends a process; here that
-/// is SIGTERM to the terminal's foreground job, and never to the shell,
-/// which is its own job and stays.
+/// Stop the commands pardes started that are still running.
+///
+/// They are the lines pardes typed into a terminal (from an exec, a middle
+/// click, a pty/run) while their shell says they run. Bare, every one; `Kill
+/// make ls`, those whose line starts with one of the words. Each gets
+/// SIGTERM, sent to its terminal's foreground job, never to the shell, which
+/// stays.
pub const Kill = struct {
+ // acme's Kill (exec.c, `kill`; acme.c's WKill) posts the "kill" note,
+ // which ends a process; here a terminal's job between its C and D marks.
pub const scope: Scope = .session;
pub const takes_arg = true;
pub fn run(c: Ctx) void {
@@ -462,7 +574,8 @@ pub const Kill = struct {
}
};
-/// Write the session's panes and layout to the state file, for Restore;
+/// Write the session's panes and layout to the state file, for Restore.
+///
/// `Dump export <path>` writes them to a file of their own instead.
pub const Dump = struct {
pub const scope: Scope = .session;
@@ -481,8 +594,11 @@ pub const Dump = struct {
}
};
-/// Replace every pane with those of a dump: the state file's of that label,
-/// or a file's; bare, the last one this session made, else the newest.
+/// Replace every pane with those of a dump.
+///
+/// `Restore <label>`: the state file's dump of that label; `Restore <file>`:
+/// a dump file's. Bare: the last one this session made, else the newest.
+/// Refused once while a pane holds unsaved text, as Exit is.
pub const Restore = struct {
pub const scope: Scope = .session;
pub const takes_arg = true;
@@ -532,7 +648,9 @@ pub const Restore = struct {
};
/// Detach this pardes from its terminal or window, leaving the session
-/// running: `pardes attach` (or `pardes-gui attach`) shows it as a client.
+/// running.
+///
+/// `pardes attach` (or `pardes-gui attach`) shows it again, as a client.
pub const Detach = struct {
pub const scope: Scope = .session;
pub const enabled = pardes.can_attach;
@@ -541,8 +659,10 @@ pub const Detach = struct {
}
};
-/// Take in the shells of a session that died holding them, each as a
-/// terminal pane here: the pardes daemon kept their terminals open.
+/// Take in the shells of a session that died holding them, each as a terminal
+/// here.
+///
+/// The pardes daemon kept their terminals open.
pub const Adopt = struct {
pub const scope: Scope = .session;
pub const enabled = pardes.can_attach;
@@ -551,9 +671,10 @@ pub const Adopt = struct {
}
};
-/// Move this session onto the pardes installed since it started, in place:
-/// its text, undo, views, terminals with their running shells, and its
-/// terminals and windows come along. The pardes daemon moves too.
+/// Move this session onto the pardes installed since it started, in place.
+///
+/// Its text, undo, views, terminals with their running shells, and its
+/// terminals and windows come along; the pardes daemon moves too.
pub const Upgrade = struct {
pub const scope: Scope = .session;
pub const enabled = pardes.can_attach;
@@ -728,8 +849,10 @@ fn stateArg(c: Ctx, comptime T: type, comptime builtin_word: []const u8, comptim
const OnOff = enum { on, off };
-/// Addons, the libraries that bring kinds of pane: `Addon load <path>`,
-/// `Addon unload <name>`, `Addon reload <name>`; bare, the kinds here.
+/// Load, unload or reload an addon, a library that brings a kind of pane.
+///
+/// `Addon load <path>`, `Addon unload <name>`, `Addon reload <name>`; bare,
+/// the kinds here.
pub const Addon = struct {
pub const scope: Scope = .session;
pub const takes_arg = true;
@@ -738,8 +861,11 @@ pub const Addon = struct {
}
};
-/// glyph art over the host's pixels: an image pane's picture, or the
-/// kitty graphics a terminal's program placed (yazi's previews)
+/// Draw an image pane's picture, or a terminal's kitty graphics, as glyph
+/// art.
+///
+/// `Petscii on` or `Petscii off` sets it; bare, it flips. A terminal's kitty
+/// graphics are the pictures its program placed (yazi's previews).
pub const Petscii = struct {
pub const needs: PaneKind = .picture;
pub const takes_arg = true;
@@ -861,10 +987,12 @@ pub const Get = struct {
}
};
-/// acme's Putall: every pane holding unsaved edits to a file is saved, each
-/// as its own Save; one that is refused (changed on disk since, a write
-/// that fails) says so and the rest are saved all the same.
+/// Save every pane holding unsaved edits to a file, each as its own Save.
+///
+/// One that is refused (changed on disk since, a write that fails) says so,
+/// and the rest are saved all the same.
pub const Putall = struct {
+ // acme's Putall.
pub const scope: Scope = .session;
pub fn run(c: Ctx) void {
for (c.p.panes, 0..) |slot, id| {
@@ -880,10 +1008,13 @@ pub const Putall = struct {
}
};
-/// acme's Incl, for the session: `Incl dir ...` adds directories a look at a
-/// name found nowhere else is tried in (`stdio.h`, `<foo.h>`), bare lists
-/// them, `Incl -` empties the list.
+/// Add directories where a Look tries a name it finds nowhere else
+/// (`stdio.h`, `<foo.h>`).
+///
+/// `Incl <dir> ...` adds them, each absolute or from `~`; bare, it lists
+/// them; `Incl -` empties the list. The list is the session's.
pub const Incl = struct {
+ // acme's Incl, for the session.
pub const scope: Scope = .session;
pub const takes_arg = true;
pub fn run(c: Ctx) void {
@@ -935,9 +1066,11 @@ pub const Incl = struct {
}
};
-/// Open the plumbing file, the plumber's rules (plumb(6)'s rule sets) in
-/// the configuration directory beside `init`: saved, they are the rules in
-/// force. Not there yet, it holds `include basic`, the default rules.
+/// Open the plumbing file, the plumber's rules, in the configuration
+/// directory beside `init`.
+///
+/// Saved, they are the rules in force (plumb(6)'s rule sets). Not there yet,
+/// it holds `include basic`, the default rules.
pub const Plumb = struct {
pub const scope: Scope = .session;
pub const takes_arg = true;
@@ -950,9 +1083,12 @@ pub const Plumb = struct {
}
};
-/// acme's Zerox: a second pane on this pane's file, the same text, undo and
-/// unsaved state, with a scroll and a cursor of its own (File.zerox).
+/// Open a second pane on this pane's file: the same text, undo and unsaved
+/// state.
+///
+/// Each pane keeps a scroll and a cursor of its own.
pub const Zerox = struct {
+ // acme's Zerox (File.zerox).
pub fn run(c: Ctx) void {
if (@import("edit_cmd.zig").busyOn(c.p, c.id)) return c.p.reportFailure(c.id, "Zerox: " ++ @import("edit_cmd.zig").e_busy);
const f = c.pane.file orelse return c.p.reportFailure(c.id, "Zerox: only a file pane takes it");
@@ -1057,7 +1193,10 @@ pub const Del = struct {
}
};
-/// Recolour a terminal's or a +Pager's program colours to the theme, or show them as sent, flipping between them.
+/// Recolour a terminal's or a +Pager's program colours to the theme, or show
+/// them as sent.
+///
+/// Each Filter flips between the two.
pub const Filter = struct {
pub const needs: PaneKind = .program_colors;
pub fn run(c: Ctx) void {
@@ -1074,34 +1213,80 @@ pub const Syntax = struct {
}
};
-/// Show a file as it was at revision `rev` (jj), read-only, beside its pane; in such a pane, that file at another revision in its place, or bare, the file.
+/// Show this file as it was at a jj revision, read-only, beside its pane.
+///
+/// `At <rev>` (`At main`, `At @-`) opens `path@rev`, as a Look at that name
+/// does. In such a pane, `At <rev>` turns it to that revision, the cursor's
+/// line kept, and bare `At` opens the file itself. What jj refuses is said in
+/// jj's words.
pub const At = struct {
pub const takes_arg = true;
pub const run = @import("jj.zig").word;
};
-/// Pin the changes `revset` names (jj) on a file's pane and show them in this view: a lane each after the line number, a line one added whole green, what the file no longer has drawn where it stood (ghost rows: a line taken away whole red, each change's description after its last line); bare, shown here or not (none pinned yet: `@`).
+/// Draw jj's changes to this file on its own pane: a lane each, and what they
+/// took away.
+///
+/// `Changes <revset>` pins the revset's changes that touched the file on its
+/// pane, or a revision's (`notes.md@main`), and shows them in this view:
+/// `Changes @-::@`, `Changes trunk()..@`. One set a pane: a later Changes or
+/// Compare replaces it. Bare: hidden in this view, or shown again; with none
+/// pinned yet, `@`.
+///
+/// Each change gets a lane after the line number. What the file no longer has
+/// is drawn where it stood, rows with no number, and after a change's last
+/// line its description, `id title author age`, its lane ending in an arrow
+/// at it. `] g` and `[ g` step through the changes; B3 on a description's id
+/// opens that change's patch at that line (`Diff <id> <path>:<line>`).
pub const Changes = struct {
pub const takes_arg = true;
pub const run = @import("jj.zig").changesWord;
};
-/// 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`.
+/// Draw the file's difference between each two jj revisions as one change, as
+/// Changes draws one.
+///
+/// `Compare <rev> <rev> [<rev> ...]`: two points or more in their order, each
+/// one revision (a commit or change id, a bookmark, `master@origin`, `@`):
+/// `Compare 9ef6312813 ea63317630 master@origin`. A pair is one change
+/// however many lie between its points, its row after its last line `from..to
+/// N changes dates`. One set a pane: a later Changes or Compare replaces
+/// it. Bare: as bare Changes.
pub const Compare = struct {
pub const takes_arg = true;
pub const run = @import("jj.zig").compareWord;
};
-/// Count, for each declaration of a file's pane, the changes in `window` (jj) that touched it, and show it in this view: a heat lane after the line number and a strip by the scroll thumb, the line numbers' grey to the theme's red on a log scale; `window` a revset or a span of time (`3d`, `2w`, `6m`, `1y`); bare, shown here or not (none counted yet: the file's whole history).
+/// Show how many changes touched each declaration of this file, as a heat
+/// lane.
+///
+/// `Churn <window>`: a revset, or a span of time back from now (`3d`, `2w`,
+/// `6m`, `1y`). In this view a cell after the line number, from the line
+/// numbers' grey to the theme's red on a log scale, and a strip by the scroll
+/// thumb. Bare: hidden in this view or shown again; with none counted yet,
+/// the file's whole history.
pub const Churn = struct {
pub const takes_arg = true;
pub const run = @import("jj.zig").churnWord;
};
-/// Stack a diff's hunks as a diff viewer shows them, each under its place and the declarations around it, in a +Diff; on a +Diff, show the diff itself as text. `Diff <file>` stacks that diff's, `Diff <revision>` git show's.
-/// The diff viewer's one registration: its word and traits here, all else
-/// its own (hunks.zig).
+/// Show a diff's hunks stacked in a +Diff, each under its place, as a diff
+/// viewer shows them.
+///
+/// Bare, on a diff (a .diff, a .patch, a +Pager holding one): its hunks
+/// stacked; on a +Diff: the diff itself, as text. `Diff <file>`: that .diff's
+/// or .patch's hunks. `Diff <hash>` (7 to 40 hex digits): `git show` of that
+/// commit, in its own `+Diff-<hash>`. `Diff <change> [path[:line]]` (a jj
+/// change id): its patch, its header and whole message on top, the cursor at
+/// that place. `Diff <from>..<to> [path[:line]]`: the difference between two
+/// points, the changes between them on top.
+///
+/// Each hunk stands under its `path:line` and the declarations around it, a +
+/// or - before each line, the words a changed line changed tinted. `SPC j n`
+/// and `SPC j p` step through the hunks; B3 on a place opens it.
pub const Diff = struct {
+ // The diff viewer's one registration: its word and traits here, all else
+ // its own (hunks.zig).
pub const takes_arg = true;
pub const output: OutputTraits = .{ .name = config.diff_buffer, .steps = true, .locations = true };
pub const run = @import("hunks.zig").word;
@@ -1123,12 +1308,14 @@ pub const Togglettymode = struct {
}
};
-/// acme's Edit (exec.c `edit`, edit.c): sam's command language over the
-/// open text panes, from a tag, a pane ctl or exec, starting in the pane's
-/// body. One undo step in each file it changes; a failure changes nothing
-/// and says why. core/edit_cmd.zig runs it; core/sam_edit.zig has what is
-/// left out.
+/// Run a command of sam's language over the open text panes, starting in this
+/// pane's body.
+///
+/// As acme's Edit: from a tag, a pane's ctl or an exec. One undo step in each
+/// file it changes; a failure changes nothing and says why.
pub const Edit = struct {
+ // acme's Edit (exec.c `edit`, edit.c). core/edit_cmd.zig runs it;
+ // core/sam_edit.zig has what is left out.
pub const takes_arg = true;
pub const requires_arg = true;
pub fn run(c: Ctx) void {
@@ -1136,12 +1323,12 @@ pub const Edit = struct {
}
};
-/// acme's Undo and Redo (exec.c `undo`): step the pane's body back or
-/// forward through its edits, from a tag, a pane ctl or exec.
-/// With no step left, Undo and Redo say so and change nothing; a ctl write
-/// of them still succeeds, as acme's Undo is silent there. A file keeps
-/// limits.undo_max steps (256).
+/// Step the pane's text back one edit.
+///
+/// With no step left, it says so and changes nothing; a ctl write of it still
+/// succeeds, as acme's Undo is silent there. A file keeps 256 steps.
pub const Undo = struct {
+ // acme's Undo and Redo (exec.c `undo`); limits.undo_max steps.
pub fn run(c: Ctx) void {
if (@import("edit_cmd.zig").busyOn(c.p, c.id)) return c.p.reportFailure(c.id, "Undo: " ++ @import("edit_cmd.zig").e_busy);
if (c.pane.file) |f| if (f.history.journal.done == 0) return c.p.setMessage(.at(c.id), "Undo: nothing to undo");
@@ -1165,9 +1352,10 @@ pub const Collapse = struct {
}
};
-/// Undock a pane from the pane it answers for: it stays where it is, a
-/// pane of its own, and the next search from that pane opens another
-/// under it.
+/// Undock a pane from the pane it answers for: it stays where it is, a pane
+/// of its own.
+///
+/// The next search from that pane opens another under it.
pub const Undock = struct {
pub fn run(c: Ctx) void {
if (c.pane.docked_to == null) return c.p.reportFailure(c.id, "Undock: not docked to a pane");
@@ -1226,18 +1414,21 @@ pub const Term = struct {
}
};
-/// Binds this terminal as a language's REPL, so an exec on that language's
-/// files is typed into it instead of run. The language is named as the
-/// syntax table has it: an exec made on the body of a file in that
-/// language -- a middle click, the execute key, a single word like `ls`
-/// as much as a selection -- and one made on this terminal's own body, is
-/// typed into it (bracketed paste if its program asked for that, else line
-/// by line, then Enter) instead of run. `Repl python` binds (again, it is
-/// already); `Repl -` unbinds; `Repl` bare says what it is bound as. With
-/// several bound for a language, the exec asks which.
+/// Bind this terminal as a language's REPL: an exec on that language's files
+/// is typed into it.
+///
+/// The language is named as the syntax table has it (`py`, `Python`, `sh`).
+/// An exec made on the body of a file in that language (a middle click, the
+/// execute key, a single word like `ls` as much as a selection), and one made
+/// on this terminal's own body, is typed into it (bracketed paste if its
+/// program asked for that, else line by line, then Enter) instead of run.
+/// `Repl python` binds (again, it is already); `Repl -` unbinds; bare, it
+/// says what it is bound as. With several bound for a language, the exec asks
+/// which.
+///
/// Still commands, whatever is bound: a word in a tag, `Exec <text>` run by
-/// name (typed, a 2-1 chord onto Exec, a ctl line), and a command word
-/// @`cmd` in the text, looked at or clicked.
+/// name (typed, a 2-1 chord onto Exec, a ctl line), and a command word @`cmd`
+/// in the text, looked at or clicked.
pub const Repl = struct {
pub const takes_arg = true;
pub fn run(c: Ctx) void {
@@ -1338,8 +1529,10 @@ pub const Help = struct {
}
};
-/// 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.
+/// Open the startup file, `init` in the configuration directory, in a pane.
+///
+/// Its pane when it is open, else the file; not there yet, a pane of that
+/// name, which Save makes, its directory too.
pub const Config = struct {
pub const scope: Scope = .session;
pub fn run(c: Ctx) void {
@@ -1425,10 +1618,12 @@ pub const Messages = struct {
}
};
-/// This build: its version, commit, jj change and build time (a stamped
-/// build's: a release or the ~/.local install), the zig that built it, its
-/// optimize mode, target, platform, grammars, whether the addons are compiled
-/// in, and its dependencies, printed into an output buffer.
+/// Show this build in a +Build: its version, compiler, optimize mode, target
+/// and dependencies.
+///
+/// A stamped build's (a release, or the ~/.local install) commit, jj change
+/// and build time too, its platform, its grammars, and whether the addons are
+/// compiled in.
pub const Build = struct {
pub const scope: Scope = .session;
pub const output: OutputTraits = .{ .name = config.build_buffer };
@@ -1437,8 +1632,7 @@ pub const Build = struct {
}
};
-/// This build's version and what changed to reach it, printed into an output
-/// buffer the same way Config prints the live settings.
+/// Show this build's version and what changed to reach it, in a +Changelog.
pub const Changelog = struct {
pub const scope: Scope = .session;
pub const output: OutputTraits = .{ .name = config.changelog_buffer };
@@ -1476,8 +1670,12 @@ pub const Find = struct {
}
};
-/// Find's sibling: Find matches file NAMES under this pane's directory, Grep
-/// matches the LINES of those files, on the disk engine's worker.
+/// List the lines of the files below this pane's directory that hold its
+/// argument.
+///
+/// Find matches the files' names, Grep the lines of those files, on the disk
+/// engine's worker. A query pane under this pane: bare (`SPC f g`) typed
+/// into; with a word, listed.
pub const Grep = struct {
pub const takes_arg = true;
pub const requires_arg = true;
@@ -1503,8 +1701,10 @@ fn search(c: Ctx, source: panes.Query.Source, miss: []const u8) void {
c.p.reportFailure(c.id, miss);
}
-/// Search in a query pane under this pane, line 1 the argument (`Panes`,
-/// `Symbols lay`, `All needle`, `/re`, any of its words); bare, `/`.
+/// Search in a query pane under this pane, its line 1 the argument.
+///
+/// Any of the query pane's words (`Search Panes`, `Search Symbols lay`,
+/// `Search All needle`, `Search /re`); bare, `/`.
pub const Search = struct {
pub const takes_arg = true;
pub const quiet = true;
@@ -1593,10 +1793,12 @@ pub const Right = struct {
}
};
-/// Emacs's follow-mode: one text across a chain of panes as consecutive
-/// pages, each going on where the one before ends, scrolled as one. Adds a
-/// page, a Zerox twin, at the end of the column right of the chain's last,
-/// or in a new column there; its tag has Unfollow.
+/// Show one text across a chain of panes as consecutive pages, scrolled as
+/// one.
+///
+/// As Emacs's follow-mode: each page goes on where the one before ends. Each
+/// Follow adds a page, a Zerox of the text, at the end of the column right of
+/// the chain's last, or in a new column there; its tag has Unfollow.
pub const Follow = struct {
pub fn run(c: Ctx) void {
if (@import("edit_cmd.zig").busyOn(c.p, c.id)) return c.p.reportFailure(c.id, "Follow: " ++ @import("edit_cmd.zig").e_busy);
@@ -1634,8 +1836,10 @@ pub const Follow = struct {
}
};
-/// Take this pane out of its Follow chain: it stays, a Zerox twin with the
-/// scroll it has, and the chain closes up behind it.
+/// Take this pane out of its Follow chain.
+///
+/// It stays, a Zerox twin with the scroll it has, and the chain closes up
+/// behind it.
pub const Unfollow = struct {
pub fn run(c: Ctx) void {
const f = if (c.pane.file) |*file| file else return c.p.reportFailure(c.id, "Unfollow: this pane is in no Follow chain");
@@ -1644,8 +1848,12 @@ pub const Unfollow = struct {
}
};
-/// Window mode: h/j/k/l move an outline between the panes; Enter or Esc
-/// focuses the outlined pane, `:` its tag, the letter shown on a pane that one; d is Del on it (then k or j between two), c Collapse.
+/// Window mode: move an outline between the panes and act on the one
+/// outlined.
+///
+/// h/j/k/l move the outline; Enter or Esc focuses the outlined pane, `:` its
+/// tag, the letter shown on a pane that one; d is Del on it (then k or j
+/// between two), c Collapse.
pub const Window = struct {
pub fn run(c: Ctx) void {
tagline.exitHeader(c.p);
@@ -1716,12 +1924,15 @@ pub const Recent = struct {
}
};
-/// List the state file's dumps, those Dump made and those every session's
-/// end left (dump.dumpExit), the newest first, each as the command that
-/// brings it back, `Restore <label>` on a line of its own, its date, size,
-/// pane count and the panes' names indented under it; a click on the
-/// Restore (an exec, or a look at the line) is that Restore.
+/// List the state file's dumps, newest first, each with the Restore that
+/// brings it back.
+///
+/// Those Dump made and those every session's end left: each a `Restore
+/// <label>` line, its date, size and pane count, the panes' names indented
+/// under it. A click on the Restore (an exec, or a Look at the line) is that
+/// Restore.
pub const History = struct {
+ // A session's end dumps it (dump.dumpExit).
pub const scope: Scope = .session;
pub const output: OutputTraits = .{ .name = config.history_buffer };
pub fn run(c: Ctx) void {
@@ -1744,8 +1955,10 @@ pub const Jumplist = struct {
// ---- the language group ----
-/// 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.
+/// 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.
pub const Def = struct {
pub const takes_arg = true;
/// Its answer says what it found, a jump or a list or why not; its
@@ -1756,8 +1969,10 @@ pub const Def = struct {
}
};
-/// List the references to the symbol under the cursor; with an argument
-/// (a 2-1 chord's selection), to that symbol, where it is nearest.
+/// List the references to the symbol under the cursor.
+///
+/// With an argument (a 2-1 chord's selection), to that symbol, where it is
+/// nearest.
pub const Refs = struct {
pub const takes_arg = true;
pub const quiet = true; // as Def
@@ -1808,7 +2023,10 @@ pub const WsDiagnostics = struct {
}
};
-/// Run the file's language indexer at its project root, writing the index.scip the language words ask first.
+/// Run the file's language indexer at its project root, writing its
+/// index.scip.
+///
+/// The language words ask that index first.
pub const Index = struct {
pub fn run(c: Ctx) void {
c.p.lspRequest(c.id, .index, "");
@@ -1905,6 +2123,24 @@ fn testDump(buf: []u8) ![]const u8 {
return std.fmt.bufPrint(buf, "Restore {s}/d.zon", .{at});
}
+test "a builtin's documentation is the whole `///` block above it, a line a paragraph, its summary first" {
+ const Builtin = registry.Builtin();
+ const diff = registry.doc(Builtin.Diff);
+ try std.testing.expect(std.mem.startsWith(u8, diff.text, diff.summary));
+ try std.testing.expect(std.mem.endsWith(u8, diff.summary, "."));
+ // Its paragraphs, each its `///` lines joined: the forms in the second.
+ var paras = std.mem.splitScalar(u8, diff.text, '\n');
+ _ = paras.next();
+ try std.testing.expect(std.mem.indexOf(u8, paras.next().?, "`Diff <hash>` (7 to 40 hex digits)") != null);
+ try std.testing.expect(paras.next() != null);
+ // No note for the code's reader: those are `//` lines in the struct.
+ try std.testing.expect(std.mem.indexOf(u8, diff.text, "registration") == null);
+ // A setting's is its own doc.
+ try std.testing.expectEqualStrings(config.Settings.find("Wrap").?.doc, registry.doc(Builtin.Wrap).text);
+ // Every builtin has one, its summary a line (the compiler holds both).
+ for (std.enums.values(Builtin)) |b| try std.testing.expect(registry.doc(b).summary.len > 0);
+}
+
test "capabilities exactly gate setting builtins" {
const Builtin = registry.Builtin();
for (config.Settings.settings) |setting| {
diff --git a/core/builtins_json.zig b/core/builtins_json.zig
index 23e15098..c66775db 100644
--- a/core/builtins_json.zig
+++ b/core/builtins_json.zig
@@ -1,17 +1,17 @@
//! Every builtin as JSON, for the docs' glossary (docs/typ/builtins-tui.json
//! and builtins-gui.json, a build's list each; style.typ merges them):
//! the rows the `Help` builtin draws (pardes.builtin_rows: the leader path
-//! and the other shortcuts) with what /commands says of each word (its doc
-//! comment's first sentence, or a setting's doc), then the shipped addons'
-//! words, read off their kinds' `Word` lines (`"addon"` first, so a search
-//! for a builtin's `{"name": ` never meets one). One source, so the
-//! glossary and Help cannot drift; the test below fails when the committed
-//! copy is stale, and `zig build builtins-json` rewrites it.
+//! and the other shortcuts) with each word's documentation (registry.doc:
+//! `doc` its summary, what /commands says, and `text` all of it), then the
+//! shipped addons' words, read off their kinds' `Word` lines (`"addon"`
+//! first, so a search for a builtin's `{"name": ` never meets one; `text`
+//! their one sentence). One source, so the glossary and Help cannot drift;
+//! the test below fails when the committed copy is stale, and `zig build
+//! builtins-json` rewrites it.
const std = @import("std");
const pardes = @import("root.zig");
const builtins = @import("builtins.zig");
const config = @import("config.zig");
-const ctl = @import("ninep/ctl.zig");
const str = std.json.Stringify.encodeJsonString;
@@ -70,10 +70,11 @@ pub fn write(w: *std.Io.Writer, addon_sources: []const []const u8) std.Io.Writer
try w.writeAll(if (setting != null) "true" else "false");
try w.writeAll(", \"choices\": ");
if (setting) |s| if (config.Settings.choices(s.action)) |v| try str(v, .{}, w) else try w.writeAll("null") else try w.writeAll("null");
- var buf: [2048]u8 = undefined;
- const doc = if (setting) |s| s.doc else ctl.summaryOf(name, &buf);
+ const doc = builtins.registry.doc(b);
try w.writeAll(", \"doc\": ");
- try str(doc, .{}, w);
+ try str(doc.summary, .{}, w);
+ try w.writeAll(", \"text\": ");
+ try str(doc.text, .{}, w);
try w.writeByte('}');
}
// A kind's word is a line of its own: `.{ .name = "PdfFit", .leader =
@@ -91,8 +92,11 @@ pub fn write(w: *std.Io.Writer, addon_sources: []const []const u8) std.Io.Writer
for (l) |c| try w.print(" {c}", .{c});
try w.writeByte('"');
} else try w.writeAll("null");
- try w.print(", \"also\": [], \"arg\": {}, \"scope\": \"pane\", \"setting\": false, \"choices\": null, \"doc\": ", .{std.mem.indexOf(u8, line, ".arg = .") != null});
- try str(quoted(line, ".doc = ") orelse "", .{}, w);
+ try w.print(", \"also\": [], \"arg\": {}, \"scope\": \"pane\", \"setting\": false, \"choices\": null", .{std.mem.indexOf(u8, line, ".arg = .") != null});
+ for ([_][]const u8{ "doc", "text" }) |field| {
+ try w.print(", \"{s}\": ", .{field});
+ try str(quoted(line, ".doc = ") orelse "", .{}, w);
+ }
try w.writeByte('}');
}
}
diff --git a/core/config.zig b/core/config.zig
index a2911dad..efde4626 100644
--- a/core/config.zig
+++ b/core/config.zig
@@ -799,7 +799,7 @@ pub const Settings = struct {
.{ .word = "InactiveDim", .action = .inactive_dim, .doc = "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off." },
.{ .word = "Pet", .action = .{ .choice = .pet }, .doc = "The window's companion in the workspace tag's blank space: off, cat or frog." },
.{ .word = "MessageLinger", .action = .message_linger, .doc = "How long, in milliseconds, a message stays after what dismisses it." },
- .{ .word = "DumpDir", .action = .dump_dir, .doc = "The directory of the state file Dump writes to and Recent is kept in, where a relative Restore name is looked for too; bare, the default." },
+ .{ .word = "DumpDir", .action = .dump_dir, .doc = "The directory of the state file, where Dump writes and Recent is kept. A relative Restore name is looked for there too; bare, the default." },
.{ .word = "Theme", .action = .theme, .doc = "Switch to the named theme." },
.{ .word = "Shell", .action = .shell, .doc = "The shell new terminals run; bare, $SHELL if it is executable, else /bin/sh." },
.{ .word = "Font", .action = .font, .doc = "The body font, by name or path, and its size." },
diff --git a/core/ninep/ctl.zig b/core/ninep/ctl.zig
index 7b4e2754..cfc59e7e 100644
--- a/core/ninep/ctl.zig
+++ b/core/ninep/ctl.zig
@@ -809,63 +809,8 @@ fn sizeOf(line: []const u8) ?[2]u16 {
// ---- /commands ----
/// Every builtin the registry holds, one a line: its word, `arg` when it
-/// takes one, and which ctl takes it, `root` or `pane` -- the registry
-/// itself, so a new builtin is listed the moment it exists.
-/// A builtin's doc comment, its first sentence, from the source itself: a
-/// line of /commands says what each word does without a second copy of it.
-pub fn summaryOf(word: []const u8, buf: []u8) []const u8 {
- const source = @embedFile("../builtins.zig");
- var needle_buf: [64]u8 = undefined;
- const needle = std.fmt.bufPrint(&needle_buf, "\npub const {s} = struct", .{word}) catch return "";
- const at = std.mem.indexOf(u8, source, needle) orelse return "";
- // Back over the `///` lines just above it.
- var start = at + 1;
- while (start > 0) {
- const prev_end = start - 1;
- const prev_start = if (std.mem.lastIndexOfScalar(u8, source[0..prev_end], '\n')) |nl| nl + 1 else 0;
- if (!std.mem.startsWith(u8, std.mem.trimStart(u8, source[prev_start..prev_end], " "), "///")) break;
- start = prev_start;
- }
- var w = std.Io.Writer.fixed(buf);
- var lines = std.mem.splitScalar(u8, source[start .. at + 1], '\n');
- while (lines.next()) |line| {
- const text = std.mem.trim(u8, std.mem.trimStart(u8, std.mem.trimStart(u8, line, " "), "/"), " ");
- if (text.len == 0) continue;
- if (w.buffered().len > 0) w.writeByte(' ') catch break;
- w.writeAll(text) catch break;
- }
- const all = stripCitations(w.buffered());
- // The first sentence, whole: to a `.` that ends one.
- var i: usize = 0;
- while (std.mem.indexOfScalarPos(u8, all, i, '.')) |dot| : (i = dot + 1) {
- if (dot + 1 == all.len or all[dot + 1] == ' ') return all[0 .. dot + 1];
- }
- return all;
-}
-
-/// Drops a parenthesis that cites source (`(editors/acme/exec.c:892)`,
-/// `(exec.c, \`kill\`; acme.c's WKill)`): a reader of /commands wants what
-/// the word does, not where acme has it. In place; answers the rest.
-fn stripCitations(text: []u8) []u8 {
- var out: usize = 0;
- var i: usize = 0;
- while (i < text.len) {
- if (text[i] == '(') if (std.mem.indexOfScalarPos(u8, text, i, ')')) |close| {
- const inside = text[i + 1 .. close];
- if (std.mem.indexOf(u8, inside, ".c") != null or std.mem.indexOf(u8, inside, ".zig") != null) {
- // With the space before it, and a colon after it kept.
- if (out > 0 and text[out - 1] == ' ') out -= 1;
- i = close + 1;
- continue;
- }
- };
- text[out] = text[i];
- out += 1;
- i += 1;
- }
- return text[0..out];
-}
-
+/// takes one, which ctl takes it, `root` or `pane`, and its summary -- the
+/// registry itself, so a new builtin is listed the moment it exists.
fn writeCommands(p: *const Pardes, w: *std.Io.Writer) !void {
for (std.enums.values(Builtin)) |b| {
// A window's own word is none in a terminal's view.
@@ -885,15 +830,8 @@ fn writeCommands(p: *const Pardes, w: *std.Io.Writer) !void {
var first = true;
while (parts.next()) |v| : (first = false) try w.print("{s}{s}", .{ if (first) "" else ",", v });
};
- // Then ` -- ` and what it does: a setting's doc, else its source's.
- var summary_buf: [2048]u8 = undefined;
- const summary = if (config.Settings.find(@tagName(b))) |setting| setting.doc else summaryOf(@tagName(b), &summary_buf);
- if (summary.len > 0) {
- // The sentence whole unless it is long, then cut between words.
- const kept = @import("../Messages.zig").clip(summary, 240);
- try w.print(" -- {s}{s}", .{ kept, if (kept.len < summary.len) "…" else "" });
- }
- try w.writeByte('\n');
+ // Then ` -- ` and what it does, in a line (builtins.summary_max).
+ try w.print(" -- {s}\n", .{builtins.registry.doc(b).summary});
}
// The addons' words, after the core's: `(addon <name>)` says whose.
for (p.kinds.words[0..p.kinds.nwords]) |*kw| try w.print("{s}{s} {s} -- {s} (addon {s})\n", .{
@@ -1381,7 +1319,7 @@ test "commands lists every builtin with its argument and the ctl that takes it"
var here: usize = 0;
for (std.enums.values(Builtin)) |b| here += @intFromBool(builtins.registry.here(p, b));
try testing.expectEqual(here, lines);
- for ([_][]const u8{ "\nDel arg pane -- ", "\nNewcol root -- ", "\nSave arg pane", "\nVerbose arg root on,off", "\nUndo pane -- ", "\nEdit arg both -- acme's Edit" }) |row|
+ for ([_][]const u8{ "\nDel arg pane -- ", "\nNewcol root -- ", "\nSave arg pane", "\nVerbose arg root on,off", "\nUndo pane -- ", "\nEdit arg both -- " }) |row|
try testing.expect(std.mem.indexOf(u8, listed.bytes, row) != null);
}
@@ -2461,48 +2399,19 @@ test "a file changed on disk under unsaved edits is not reloaded: it says so, ge
try testing.expect(wr(p, Node.of(serial, .ctl), "Save\n").saved);
}
-test "every word's /commands description is its own doc comment's first sentence, no citation" {
+test "every word's /commands description is its documentation's summary, a line" {
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
const listed = rd(p, @backingInt(tree.TopFile.commands), 0, 1 << 16).bytes;
- for ([_][]const u8{
- "\nRepl arg pane -- Binds this terminal as a language's REPL, so an exec on that language's files is typed into it instead of run.\n",
- "\nJoincol root -- Fold the active pane's column into the one on its right, keeping its panes.\n",
- "\nExit root -- Quit the editor, refusing once while a pane holds unsaved text: an Exit with nothing edited since discards it.\n",
- "\nWrap arg root on,off -- Long lines wrap onto the next row, on or off.\n",
- // the reference's examples, as they read.
- "\nNewcol root -- An empty column right of the keyboard's, its tag taking the keyboard.\n",
- "\nSave arg pane -- Write the pane's text to its file, or to the file its argument names.\n",
- "\nVerbose arg root on,off -- A builtin says its own name on the message row as it runs, on or off.\n",
- "\nKill arg root -- acme's Kill: stop the commands pardes started",
- }) |row| try testing.expect(std.mem.indexOf(u8, listed, row) != null);
- try testing.expect(std.mem.indexOf(u8, listed, ".c:") == null);
- // Every description is the first sentence of the doc comment just
- // above its word's declaration in builtins.zig.
- const source = @embedFile("../builtins.zig");
var it = std.mem.tokenizeScalar(u8, listed, '\n');
- var undescribed: usize = 0;
while (it.next()) |line| {
- // Every builtin has one: a word nobody can look up is no use.
- const dashes = std.mem.indexOf(u8, line, " -- ") orelse {
- std.debug.print("no doc comment: {s}\n", .{line});
- undescribed += 1;
- continue;
- };
- const word = line[0..std.mem.indexOfScalar(u8, line, ' ').?];
- if (config.Settings.find(word)) |setting| {
- try testing.expect(std.mem.endsWith(u8, line, setting.doc));
- continue;
- }
- var needle: [64]u8 = undefined;
- const at = std.mem.indexOf(u8, source, try std.fmt.bufPrint(&needle, "\npub const {s} = struct", .{word})).?;
- const said = std.mem.trimEnd(u8, line[dashes + 4 ..], "…");
- // Its opening words are in the comment block right above.
- const head = said[0..@min(said.len, 10)];
- const block_start = std.mem.lastIndexOf(u8, source[0..at], "\n\n") orelse 0;
- try testing.expect(std.mem.indexOf(u8, source[block_start..at], head) != null);
+ const b = std.meta.stringToEnum(Builtin, line[0..std.mem.indexOfScalar(u8, line, ' ').?]).?;
+ var want: [builtins.summary_max + 8]u8 = undefined;
+ try testing.expect(std.mem.endsWith(u8, line, try std.fmt.bufPrint(&want, " -- {s}", .{builtins.registry.doc(b).summary})));
}
- try testing.expectEqual(0, undescribed);
+ // A setting's is its own doc's first sentence; a sentence names no source.
+ try testing.expect(std.mem.indexOf(u8, listed, "\nWrap arg root on,off -- Long lines wrap onto the next row, on or off.\n") != null);
+ try testing.expect(std.mem.indexOf(u8, listed, ".c:") == null);
}
test "Newcol at the column cap fails the write and says the cap" {
diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json
index 5b171469..ad5753a9 100644
--- a/docs/typ/builtins-tui.json
+++ b/docs/typ/builtins-tui.json
@@ -1,118 +1,118 @@
[
- {"name": "Addon", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Addons, the libraries that bring kinds of pane: `Addon load <path>`, `Addon unload <name>`, `Addon reload <name>`; bare, the kinds here."},
- {"name": "Adopt", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Take in the shells of a session that died holding them, each as a terminal pane here: the pardes daemon kept their terminals open."},
- {"name": "Ascii", "leader": "SPC t a", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "add the printable ASCII bitmaps to the matcher's glyph set"},
- {"name": "At", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show a file as it was at revision `rev` (jj), read-only, beside its pane; in such a pane, that file at another revision in its place, or bare, the file."},
- {"name": "Back", "leader": "SPC j o", "also": ["C-o"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Ctrl-o: one step back into the history."},
- {"name": "Build", "leader": "SPC h b", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "This build: its version, commit, jj change and build time (a stamped build's: a release or the ~/.local install), the zig that built it, its optimize mode, target, platform, grammars, whether the addons are compiled in, and its dependencies, printed into an output buffer."},
- {"name": "Callees", "leader": "SPC l C", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the functions the function under the cursor calls."},
- {"name": "Callers", "leader": "SPC l c", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the callers of the function under the cursor."},
- {"name": "Callstack", "leader": "SPC l b", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show outermost callers first, with signatures and call sites (gc)."},
- {"name": "CallstackDepth", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Caller levels collected by Callstack, 1 through 64; default 8. Bare, it says the current limit."},
- {"name": "Changelog", "leader": "SPC h c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "This build's version and what changed to reach it, printed into an output buffer the same way Config prints the live settings."},
- {"name": "Changes", "leader": "SPC t c", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Pin the changes `revset` names (jj) on a file's pane and show them in this view: a lane each after the line number, a line one added whole green, what the file no longer has drawn where it stood (ghost rows: a line taken away whole red, each change's description after its last line); bare, shown here or not (none pinned yet: `@`)."},
- {"name": "Churn", "leader": "SPC t u", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Count, for each declaration of a file's pane, the changes in `window` (jj) that touched it, and show it in this view: a heat lane after the line number and a strip by the scroll thumb, the line numbers' grey to the theme's red on a log scale; `window` a revset or a span of time (`3d`, `2w`, `6m`, `1y`); bare, shown here or not (none counted yet: the file's whole history)."},
- {"name": "ClipPaste", "leader": "SPC p", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Paste the system clipboard after the selection."},
- {"name": "ClipPasteBefore", "leader": "SPC P", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Paste the system clipboard before the selection."},
- {"name": "ClipReplace", "leader": "SPC R", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Replace the selection with the system clipboard."},
- {"name": "ClipYank", "leader": "SPC y", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Copy the selection to the system clipboard."},
- {"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."},
- {"name": "Del", "leader": "SPC d", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane."},
- {"name": "DelAbove", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane, giving its rows to the pane above it."},
- {"name": "DelBelow", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane, giving its rows to the pane below it."},
- {"name": "Delcol", "leader": "SPC c d", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close this column and its panes, refusing once over unsaved text."},
- {"name": "Detach", "leader": "SPC s D", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Detach this pardes from its terminal or window, leaving the session running: `pardes attach` (or `pardes-gui attach`) shows it as a client."},
- {"name": "Diagnostics", "leader": "SPC l d", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the file's diagnostics from the language server."},
- {"name": "Diff", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Stack a diff's hunks as a diff viewer shows them, each under its place and the declarations around it, in a +Diff; on a +Diff, show the diff itself as text."},
- {"name": "Down", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane below, off a tag onto the pane under it."},
- {"name": "Dump", "leader": "SPC s d", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore; `Dump export <path>` writes them to a file of their own instead."},
- {"name": "DumpConfig", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the settings in effect, each a word to click, and the startup file's path."},
- {"name": "DumpDir", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The directory of the state file Dump writes to and Recent is kept in, where a relative Restore name is looked for too; bare, the default."},
- {"name": "DumpThemes", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Write the bundled themes into the config directory's themes, to edit."},
- {"name": "Edit", "leader": null, "also": [], "arg": true, "scope": "both", "setting": false, "choices": null, "doc": "acme's Edit: sam's command language over the open text panes, from a tag, a pane ctl or exec, starting in the pane's body."},
- {"name": "Exec", "leader": null, "also": ["tab", "middle-click"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Execute its argument as a middle click on it would, a builtin or a shell command."},
- {"name": "Exit", "leader": "SPC q", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Quit the editor, refusing once while a pane holds unsaved text: an Exit with nothing edited since discards it."},
- {"name": "Filter", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Recolour a terminal's or a +Pager's program colours to the theme, or show them as sent, flipping between them."},
- {"name": "Find", "leader": "SPC f f", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the files below this pane's directory whose names hold its argument, in a +Search."},
- {"name": "Follow", "leader": "SPC c f", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Emacs's follow-mode: one text across a chain of panes as consecutive pages, each going on where the one before ends, scrolled as one."},
- {"name": "Forward", "leader": "SPC j i", "also": ["C-i"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Ctrl-i: one step forward again, up to wherever Back started."},
- {"name": "Get", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "acme's Get: the pane's file read again, its unsaved edits refused once as Del refuses them."},
- {"name": "Grep", "leader": "SPC f g", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Find's sibling: Find matches file NAMES under this pane's directory, Grep matches the LINES of those files, on the disk engine's worker."},
- {"name": "Help", "leader": "SPC ?", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the help: every key and every builtin."},
- {"name": "History", "leader": "SPC f h", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, those Dump made and those every session's end left (dump.dumpExit), the newest first, each as the command that brings it back, `Restore <label>` on a line of its own, its date, size, pane count and the panes' names indented under it; a click on the Restore (an exec, or a look at the line) is that Restore."},
- {"name": "Hover", "leader": "SPC l k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Ask the language server about the symbol under the cursor."},
- {"name": "InactiveDim", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off."},
- {"name": "Incl", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "acme's Incl, for the session: `Incl dir ...` adds directories a look at a name found nowhere else is tried in (`stdio.h`, `<foo.h>`), bare lists them, `Incl -` empties the list."},
- {"name": "Index", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Run the file's language indexer at its project root, writing the index.scip the language words ask first."},
- {"name": "Joincol", "leader": "SPC c j", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the active pane's column into the one on its right, keeping its panes."},
- {"name": "JumpTrail", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A jump of the cursor leaves a short trail that fades, on or off."},
- {"name": "Jumplist", "leader": "SPC j l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the places jumped from, each a place to go."},
- {"name": "Kill", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "acme's Kill: stop the commands pardes started -- the lines it typed into a terminal, from an exec, a middle click or a pty/run, while their shell says they run (C mark to D)."},
- {"name": "Last", "leader": "SPC j j", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Go back to the last place jumped from in another pane."},
- {"name": "Left", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the left."},
- {"name": "LocationsConfig", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Set how location rows are drawn, or show how they are when bare."},
- {"name": "Look", "leader": null, "also": ["enter", "right-click"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Look at its argument: open the file or address it names, else find the word, as a right click does."},
- {"name": "LookNext", "leader": "SPC j n", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select the next Look location across panes; Enter opens it."},
- {"name": "LookPrev", "leader": "SPC j p", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select the previous Look location across panes; Enter opens it."},
- {"name": "Lspinfo", "leader": "SPC l i", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show which language servers serve this file and their state."},
- {"name": "Lspwhy", "leader": "SPC l w", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Explain how the last language server request was answered, step by step."},
- {"name": "MessageLinger", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "How long, in milliseconds, a message stays after what dismisses it."},
- {"name": "Messages", "leader": "SPC h m", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the messages shown so far."},
- {"name": "Mini", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Open a minimap of the file in braille dots."},
- {"name": "Mode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Cycle the pane's input modes: terminals add raw tty mode to normal/insert."},
- {"name": "More", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "A query pane's Grep stopped at its 2000 lines goes on for 2000 more."},
- {"name": "Mount", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Mount another pardes's 9P tree under /n/<name>, given its dial address."},
- {"name": "Msg", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show its argument on this pane's message row."},
- {"name": "New", "leader": "SPC f n", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Open an empty scratch pane, <dir>/+New, in this pane's directory."},
- {"name": "Newcol", "leader": "SPC c n", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "An empty column right of the keyboard's, its tag taking the keyboard."},
- {"name": "NextColor", "leader": "SPC t n", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Switch to the next bundled theme."},
- {"name": "Palette", "leader": "SPC t l", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "the C64 palette or the terminal's own 16"},
- {"name": "Panes", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Pick an open pane by its name in a query pane under this one (SPC b b)."},
- {"name": "Petscii", "leader": "SPC t p", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "glyph art over the host's pixels: an image pane's picture, or the kitty graphics a terminal's program placed (yazi's previews)"},
- {"name": "Plumb", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Open the plumbing file, the plumber's rules (plumb(6)'s rule sets) in the configuration directory beside `init`: saved, they are the rules in force."},
- {"name": "Putall", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "acme's Putall: every pane holding unsaved edits to a file is saved, each as its own Save; one that is refused (changed on disk since, a write that fails) says so and the rest are saved all the same."},
- {"name": "Recent", "leader": "SPC f r", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "List the files opened lately, closed ones too, each a place to open again."},
- {"name": "Redo", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Redo the last undone edit."},
- {"name": "Refs", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the references to the symbol under the cursor; with an argument (a 2-1 chord's selection), to that symbol, where it is nearest."},
- {"name": "Rename", "leader": "SPC l r", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Rename the symbol under the cursor everywhere, to its argument."},
- {"name": "Repl", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Binds this terminal as a language's REPL, so an exec on that language's files is typed into it instead of run."},
- {"name": "Restore", "leader": "SPC s r", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Replace every pane with those of a dump: the state file's of that label, or a file's; bare, the last one this session made, else the newest."},
- {"name": "Right", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the right."},
- {"name": "Save", "leader": "SPC f s", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Write the pane's text to its file, or to the file its argument names."},
- {"name": "Search", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search in a query pane under this pane, line 1 the argument (`Panes`, `Symbols lay`, `All needle`, `/re`, any of its words); bare, `/`."},
- {"name": "SelectRefs", "leader": "SPC l h", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select every reference to the symbol under the cursor."},
- {"name": "Shell", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The shell new terminals run; bare, $SHELL if it is executable, else /bin/sh."},
- {"name": "Subtypes", "leader": "SPC l T", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the subtypes of the type under the cursor."},
- {"name": "Supertypes", "leader": "SPC l t", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the supertypes of the type under the cursor."},
- {"name": "Symbols", "leader": "SPC l s", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the file's symbols from the language server."},
- {"name": "Syntax", "leader": "SPC t h", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Turn a text's syntax colours off in this view, or on again."},
- {"name": "Tab", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "A tab's width in cells, 1 through 16, in every pane; bare, it says the width."},
- {"name": "Term", "leader": "SPC n t", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "A shell in the calling pane's directory, raw from the first frame."},
- {"name": "Theme", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Switch to the named theme."},
- {"name": "ThemeFile", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Load a theme from a file."},
- {"name": "Themes", "leader": "SPC t t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the themes in a pane, each a word to click."},
- {"name": "Togglettymode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Switch this terminal between raw program input and normal editor mode."},
- {"name": "TreeContext", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show the declarations enclosing the top row at the pane's head, on or off."},
- {"name": "Tutor", "leader": "SPC h t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through."},
- {"name": "Undo", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "acme's Undo and Redo: step the pane's body back or forward through its edits, from a tag, a pane ctl or exec."},
- {"name": "Undock", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own, and the next search from that pane opens another under it."},
- {"name": "Unfollow", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Take this pane out of its Follow chain: it stays, a Zerox twin with the scroll it has, and the chain closes up behind it."},
- {"name": "Unmount", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Unmount the 9P tree mounted under /n/<name>."},
- {"name": "Up", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane above, and from a column's top pane to its tag."},
- {"name": "Upgrade", "leader": "SPC s U", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Move this session onto the pardes installed since it started, in place: its text, undo, views, terminals with their running shells, and its terminals and windows come along."},
- {"name": "Verbose", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A builtin says its own name on the message row as it runs, on or off."},
- {"name": "Window", "leader": "SPC w", "also": ["C-w"], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Window mode: h/j/k/l move an outline between the panes; Enter or Esc focuses the outlined pane, `:` its tag, the letter shown on a pane that one; d is Del on it (then k or j between two), c Collapse."},
- {"name": "Wrap", "leader": "SPC t w", "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "Long lines wrap onto the next row, on or off."},
- {"name": "WsDiagnostics", "leader": "SPC l D", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the workspace's diagnostics from the language server."},
- {"name": "WsSymbols", "leader": "SPC l S", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search the workspace's symbols for its argument."},
- {"name": "Zerox", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "acme's Zerox: a second pane on this pane's file, the same text, undo and unsaved state, with a scroll and a cursor of its own (File.zerox)."},
- {"addon": "pdf", "name": "PdfSections", "leader": "SPC t s", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "list the PDF's sections in a pane, each a place to go"},
- {"addon": "pdf", "name": "PdfTint", "leader": "SPC t i", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "tint the PDF to the theme or show it as printed (disabled|filtered|full)"},
- {"addon": "pdf", "name": "PdfFit", "leader": "SPC t z", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "fit the PDF's pages to the pane's width or height (width|height)"}
+ {"name": "Addon", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Load, unload or reload an addon, a library that brings a kind of pane.", "text": "Load, unload or reload an addon, a library that brings a kind of pane.\n`Addon load <path>`, `Addon unload <name>`, `Addon reload <name>`; bare, the kinds here."},
+ {"name": "Adopt", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Take in the shells of a session that died holding them, each as a terminal here.", "text": "Take in the shells of a session that died holding them, each as a terminal here.\nThe pardes daemon kept their terminals open."},
+ {"name": "Ascii", "leader": "SPC t a", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "add the printable ASCII bitmaps to the matcher's glyph set", "text": "add the printable ASCII bitmaps to the matcher's glyph set"},
+ {"name": "At", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show this file as it was at a jj revision, read-only, beside its pane.", "text": "Show this file as it was at a jj revision, read-only, beside its pane.\n`At <rev>` (`At main`, `At @-`) opens `path@rev`, as a Look at that name does. In such a pane, `At <rev>` turns it to that revision, the cursor's line kept, and bare `At` opens the file itself. What jj refuses is said in jj's words."},
+ {"name": "Back", "leader": "SPC j o", "also": ["C-o"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Ctrl-o: one step back into the history.", "text": "Ctrl-o: one step back into the history."},
+ {"name": "Build", "leader": "SPC h b", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build in a +Build: its version, compiler, optimize mode, target and dependencies.", "text": "Show this build in a +Build: its version, compiler, optimize mode, target and dependencies.\nA stamped build's (a release, or the ~/.local install) commit, jj change and build time too, its platform, its grammars, and whether the addons are compiled in."},
+ {"name": "Callees", "leader": "SPC l C", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the functions the function under the cursor calls.", "text": "List the functions the function under the cursor calls."},
+ {"name": "Callers", "leader": "SPC l c", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the callers of the function under the cursor.", "text": "List the callers of the function under the cursor."},
+ {"name": "Callstack", "leader": "SPC l b", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show outermost callers first, with signatures and call sites (gc).", "text": "Show outermost callers first, with signatures and call sites (gc)."},
+ {"name": "CallstackDepth", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Caller levels collected by Callstack, 1 through 64; default 8.", "text": "Caller levels collected by Callstack, 1 through 64; default 8. Bare, it says the current limit."},
+ {"name": "Changelog", "leader": "SPC h c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."},
+ {"name": "Changes", "leader": "SPC t c", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.", "text": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.\n`Changes <revset>` pins the revset's changes that touched the file on its pane, or a revision's (`notes.md@main`), and shows them in this view: `Changes @-::@`, `Changes trunk()..@`. One set a pane: a later Changes or Compare replaces it. Bare: hidden in this view, or shown again; with none pinned yet, `@`.\nEach change gets a lane after the line number. What the file no longer has is drawn where it stood, rows with no number, and after a change's last line its description, `id title author age`, its lane ending in an arrow at it. `] g` and `[ g` step through the changes; B3 on a description's id opens that change's patch at that line (`Diff <id> <path>:<line>`)."},
+ {"name": "Churn", "leader": "SPC t u", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show how many changes touched each declaration of this file, as a heat lane.", "text": "Show how many changes touched each declaration of this file, as a heat lane.\n`Churn <window>`: a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`). In this view a cell after the line number, from the line numbers' grey to the theme's red on a log scale, and a strip by the scroll thumb. Bare: hidden in this view or shown again; with none counted yet, the file's whole history."},
+ {"name": "ClipPaste", "leader": "SPC p", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Paste the system clipboard after the selection.", "text": "Paste the system clipboard after the selection."},
+ {"name": "ClipPasteBefore", "leader": "SPC P", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Paste the system clipboard before the selection.", "text": "Paste the system clipboard before the selection."},
+ {"name": "ClipReplace", "leader": "SPC R", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Replace the selection with the system clipboard.", "text": "Replace the selection with the system clipboard."},
+ {"name": "ClipYank", "leader": "SPC y", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Copy the selection to the system clipboard.", "text": "Copy the selection to the system clipboard."},
+ {"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.", "text": "helix `<space>Y`: the PRIMARY selection alone, where `SPC y` joins every cursor's. One cursor makes them the same word."},
+ {"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.", "text": "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.", "text": "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": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.", "text": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.\n`Compare <rev> <rev> [<rev> ...]`: two points or more in their order, each one revision (a commit or change id, a bookmark, `master@origin`, `@`): `Compare 9ef6312813 ea63317630 master@origin`. A pair is one change however many lie between its points, its row after its last line `from..to N changes dates`. One set a pane: a later Changes or Compare replaces it. 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 the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."},
+ {"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.", "text": "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.", "text": "Go to the definition of the symbol under the cursor.\nWith an argument (a 2-1 chord's selection), of that symbol, where it is nearest."},
+ {"name": "Del", "leader": "SPC d", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane.", "text": "Close the pane. `Del k` gives its rows to the open pane above it and `Del j` to the one below, each falling back to the other side. Focus on it goes with its rows."},
+ {"name": "DelAbove", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane, giving its rows to the pane above it.", "text": "Close the pane, giving its rows to the pane above it."},
+ {"name": "DelBelow", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane, giving its rows to the pane below it.", "text": "Close the pane, giving its rows to the pane below it."},
+ {"name": "Delcol", "leader": "SPC c d", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close this column and its panes, refusing once over unsaved text.", "text": "Close this column and its panes, refusing once over unsaved text."},
+ {"name": "Detach", "leader": "SPC s D", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Detach this pardes from its terminal or window, leaving the session running.", "text": "Detach this pardes from its terminal or window, leaving the session running.\n`pardes attach` (or `pardes-gui attach`) shows it again, as a client."},
+ {"name": "Diagnostics", "leader": "SPC l d", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the file's diagnostics from the language server.", "text": "List the file's diagnostics from the language server."},
+ {"name": "Diff", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.", "text": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.\nBare, on a diff (a .diff, a .patch, a +Pager holding one): its hunks stacked; on a +Diff: the diff itself, as text. `Diff <file>`: that .diff's or .patch's hunks. `Diff <hash>` (7 to 40 hex digits): `git show` of that commit, in its own `+Diff-<hash>`. `Diff <change> [path[:line]]` (a jj change id): its patch, its header and whole message on top, the cursor at that place. `Diff <from>..<to> [path[:line]]`: the difference between two points, the changes between them on top.\nEach hunk stands under its `path:line` and the declarations around it, a + or - before each line, the words a changed line changed tinted. `SPC j n` and `SPC j p` step through the hunks; B3 on a place opens it."},
+ {"name": "Down", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane below, off a tag onto the pane under it.", "text": "Move the keyboard to the pane below, off a tag onto the pane under it."},
+ {"name": "Dump", "leader": "SPC s d", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead."},
+ {"name": "DumpConfig", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the settings in effect, each a word to click, and the startup file's path.", "text": "Open the settings in effect, each a word to click, and the startup file's path."},
+ {"name": "DumpDir", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The directory of the state file, where Dump writes and Recent is kept.", "text": "The directory of the state file, where Dump writes and Recent is kept. A relative Restore name is looked for there too; bare, the default."},
+ {"name": "DumpThemes", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Write the bundled themes into the config directory's themes, to edit.", "text": "Write the bundled themes into the config directory's themes, to edit."},
+ {"name": "Edit", "leader": null, "also": [], "arg": true, "scope": "both", "setting": false, "choices": null, "doc": "Run a command of sam's language over the open text panes, starting in this pane's body.", "text": "Run a command of sam's language over the open text panes, starting in this pane's body.\nAs acme's Edit: from a tag, a pane's ctl or an exec. One undo step in each file it changes; a failure changes nothing and says why."},
+ {"name": "Exec", "leader": null, "also": ["tab", "middle-click"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Execute its argument as a middle click on it would, a builtin or a shell command.", "text": "Execute its argument as a middle click on it would, a builtin or a shell command."},
+ {"name": "Exit", "leader": "SPC q", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Quit the editor; refused once while a pane holds unsaved text.", "text": "Quit the editor; refused once while a pane holds unsaved text.\nEach pane with unsaved text is listed in +Unsaved and the notice counts them; Exit again, nothing edited since, quits and discards it."},
+ {"name": "Filter", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Recolour a terminal's or a +Pager's program colours to the theme, or show them as sent.", "text": "Recolour a terminal's or a +Pager's program colours to the theme, or show them as sent.\nEach Filter flips between the two."},
+ {"name": "Find", "leader": "SPC f f", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the files below this pane's directory whose names hold its argument, in a +Search.", "text": "List the files below this pane's directory whose names hold its argument, in a +Search."},
+ {"name": "Follow", "leader": "SPC c f", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show one text across a chain of panes as consecutive pages, scrolled as one.", "text": "Show one text across a chain of panes as consecutive pages, scrolled as one.\nAs Emacs's follow-mode: each page goes on where the one before ends. Each Follow adds a page, a Zerox of the text, at the end of the column right of the chain's last, or in a new column there; its tag has Unfollow."},
+ {"name": "Forward", "leader": "SPC j i", "also": ["C-i"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Ctrl-i: one step forward again, up to wherever Back started.", "text": "Ctrl-i: one step forward again, up to wherever Back started."},
+ {"name": "Get", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "acme's Get: the pane's file read again, its unsaved edits refused once as Del refuses them.", "text": "acme's Get: the pane's file read again, its unsaved edits refused once as Del refuses them. `Get file` loads that file into the pane instead, the pane taking its name."},
+ {"name": "Grep", "leader": "SPC f g", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the lines of the files below this pane's directory that hold its argument.", "text": "List the lines of the files below this pane's directory that hold its argument.\nFind matches the files' names, Grep the lines of those files, on the disk engine's worker. A query pane under this pane: bare (`SPC f g`) typed into; with a word, listed."},
+ {"name": "Help", "leader": "SPC ?", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the help: every key and every builtin.", "text": "Open the help: every key and every builtin."},
+ {"name": "History", "leader": "SPC f h", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. A click on the Restore (an exec, or a Look at the line) is that Restore."},
+ {"name": "Hover", "leader": "SPC l k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Ask the language server about the symbol under the cursor.", "text": "Ask the language server about the symbol under the cursor."},
+ {"name": "InactiveDim", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off.", "text": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off."},
+ {"name": "Incl", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).", "text": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).\n`Incl <dir> ...` adds them, each absolute or from `~`; bare, it lists them; `Incl -` empties the list. The list is the session's."},
+ {"name": "Index", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Run the file's language indexer at its project root, writing its index.scip.", "text": "Run the file's language indexer at its project root, writing its index.scip.\nThe language words ask that index first."},
+ {"name": "Joincol", "leader": "SPC c j", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the active pane's column into the one on its right, keeping its panes.", "text": "Fold the active pane's column into the one on its right, keeping its panes. The horizontal mirror of the vertical stacking `New` does."},
+ {"name": "JumpTrail", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A jump of the cursor leaves a short trail that fades, on or off.", "text": "A jump of the cursor leaves a short trail that fades, on or off."},
+ {"name": "Jumplist", "leader": "SPC j l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the places jumped from, each a place to go.", "text": "List the places jumped from, each a place to go."},
+ {"name": "Kill", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Stop the commands pardes started that are still running.", "text": "Stop the commands pardes started that are still running.\nThey are the lines pardes typed into a terminal (from an exec, a middle click, a pty/run) while their shell says they run. Bare, every one; `Kill make ls`, those whose line starts with one of the words. Each gets SIGTERM, sent to its terminal's foreground job, never to the shell, which stays."},
+ {"name": "Last", "leader": "SPC j j", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Go back to the last place jumped from in another pane.", "text": "Go back to the last place jumped from in another pane."},
+ {"name": "Left", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the left.", "text": "Move the keyboard to the pane, or column tag, to the left."},
+ {"name": "LocationsConfig", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Set how location rows are drawn, or show how they are when bare.", "text": "Set how location rows are drawn, or show how they are when bare."},
+ {"name": "Look", "leader": null, "also": ["enter", "right-click"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Look at its argument: open the file or address it names, else find the word, as a right click does.", "text": "Look at its argument: open the file or address it names, else find the word, as a right click does."},
+ {"name": "LookNext", "leader": "SPC j n", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select the next Look location across panes; Enter opens it.", "text": "Select the next Look location across panes; Enter opens it."},
+ {"name": "LookPrev", "leader": "SPC j p", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select the previous Look location across panes; Enter opens it.", "text": "Select the previous Look location across panes; Enter opens it."},
+ {"name": "Lspinfo", "leader": "SPC l i", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show which language servers serve this file and their state.", "text": "Show which language servers serve this file and their state."},
+ {"name": "Lspwhy", "leader": "SPC l w", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Explain how the last language server request was answered, step by step.", "text": "Explain how the last language server request was answered, step by step."},
+ {"name": "MessageLinger", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "How long, in milliseconds, a message stays after what dismisses it.", "text": "How long, in milliseconds, a message stays after what dismisses it."},
+ {"name": "Messages", "leader": "SPC h m", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the messages shown so far.", "text": "Open the messages shown so far."},
+ {"name": "Mini", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Open a minimap of the file in braille dots.", "text": "Open a minimap of the file in braille dots."},
+ {"name": "Mode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Cycle the pane's input modes: terminals add raw tty mode to normal/insert.", "text": "Cycle the pane's input modes: terminals add raw tty mode to normal/insert."},
+ {"name": "More", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "A query pane's Grep stopped at its 2000 lines goes on for 2000 more.", "text": "A query pane's Grep stopped at its 2000 lines goes on for 2000 more."},
+ {"name": "Mount", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Mount another pardes's 9P tree under /n/<name>, given its dial address.", "text": "Mount another pardes's 9P tree under /n/<name>, given its dial address."},
+ {"name": "Msg", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show its argument on this pane's message row.", "text": "Show its argument on this pane's message row."},
+ {"name": "New", "leader": "SPC f n", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Open an empty scratch pane, <dir>/+New, in this pane's directory.", "text": "Open an empty scratch pane, <dir>/+New, in this pane's directory."},
+ {"name": "Newcol", "leader": "SPC c n", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "An empty column right of the keyboard's, its tag taking the keyboard.", "text": "An empty column right of the keyboard's, its tag taking the keyboard."},
+ {"name": "NextColor", "leader": "SPC t n", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Switch to the next bundled theme.", "text": "Switch to the next bundled theme."},
+ {"name": "Palette", "leader": "SPC t l", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "the C64 palette or the terminal's own 16", "text": "the C64 palette or the terminal's own 16"},
+ {"name": "Panes", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Pick an open pane by its name in a query pane under this one (SPC b b).", "text": "Pick an open pane by its name in a query pane under this one (SPC b b)."},
+ {"name": "Petscii", "leader": "SPC t p", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw an image pane's picture, or a terminal's kitty graphics, as glyph art.", "text": "Draw an image pane's picture, or a terminal's kitty graphics, as glyph art.\n`Petscii on` or `Petscii off` sets it; bare, it flips. A terminal's kitty graphics are the pictures its program placed (yazi's previews)."},
+ {"name": "Plumb", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Open the plumbing file, the plumber's rules, in the configuration directory beside `init`.", "text": "Open the plumbing file, the plumber's rules, in the configuration directory beside `init`.\nSaved, they are the rules in force (plumb(6)'s rule sets). Not there yet, it holds `include basic`, the default rules."},
+ {"name": "Putall", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Save every pane holding unsaved edits to a file, each as its own Save.", "text": "Save every pane holding unsaved edits to a file, each as its own Save.\nOne that is refused (changed on disk since, a write that fails) says so, and the rest are saved all the same."},
+ {"name": "Recent", "leader": "SPC f r", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "List the files opened lately, closed ones too, each a place to open again.", "text": "List the files opened lately, closed ones too, each a place to open again."},
+ {"name": "Redo", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Redo the last undone edit.", "text": "Redo the last undone edit."},
+ {"name": "Refs", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the references to the symbol under the cursor.", "text": "List the references to the symbol under the cursor.\nWith an argument (a 2-1 chord's selection), to that symbol, where it is nearest."},
+ {"name": "Rename", "leader": "SPC l r", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Rename the symbol under the cursor everywhere, to its argument.", "text": "Rename the symbol under the cursor everywhere, to its argument."},
+ {"name": "Repl", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.", "text": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.\nThe language is named as the syntax table has it (`py`, `Python`, `sh`). An exec made on the body of a file in that language (a middle click, the execute key, a single word like `ls` as much as a selection), and one made on this terminal's own body, is typed into it (bracketed paste if its program asked for that, else line by line, then Enter) instead of run. `Repl python` binds (again, it is already); `Repl -` unbinds; bare, it says what it is bound as. With several bound for a language, the exec asks which.\nStill commands, whatever is bound: a word in a tag, `Exec <text>` run by name (typed, a 2-1 chord onto Exec, a ctl line), and a command word @`cmd` in the text, looked at or clicked."},
+ {"name": "Restore", "leader": "SPC s r", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Replace every pane with those of a dump.", "text": "Replace every pane with those of a dump.\n`Restore <label>`: the state file's dump of that label; `Restore <file>`: a dump file's. Bare: the last one this session made, else the newest. Refused once while a pane holds unsaved text, as Exit is."},
+ {"name": "Right", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the right.", "text": "Move the keyboard to the pane, or column tag, to the right."},
+ {"name": "Save", "leader": "SPC f s", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Write the pane's text to its file, or to the file its argument names.", "text": "Write the pane's text to its file, or to the file its argument names."},
+ {"name": "Search", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search in a query pane under this pane, its line 1 the argument.", "text": "Search in a query pane under this pane, its line 1 the argument.\nAny of the query pane's words (`Search Panes`, `Search Symbols lay`, `Search All needle`, `Search /re`); bare, `/`."},
+ {"name": "SelectRefs", "leader": "SPC l h", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select every reference to the symbol under the cursor.", "text": "Select every reference to the symbol under the cursor."},
+ {"name": "Shell", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The shell new terminals run; bare, $SHELL if it is executable, else /bin/sh.", "text": "The shell new terminals run; bare, $SHELL if it is executable, else /bin/sh."},
+ {"name": "Subtypes", "leader": "SPC l T", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the subtypes of the type under the cursor.", "text": "List the subtypes of the type under the cursor."},
+ {"name": "Supertypes", "leader": "SPC l t", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the supertypes of the type under the cursor.", "text": "List the supertypes of the type under the cursor."},
+ {"name": "Symbols", "leader": "SPC l s", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the file's symbols from the language server.", "text": "List the file's symbols from the language server."},
+ {"name": "Syntax", "leader": "SPC t h", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Turn a text's syntax colours off in this view, or on again.", "text": "Turn a text's syntax colours off in this view, or on again. The ink layer (File.Layers)."},
+ {"name": "Tab", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "A tab's width in cells, 1 through 16, in every pane; bare, it says the width.", "text": "A tab's width in cells, 1 through 16, in every pane; bare, it says the width."},
+ {"name": "Term", "leader": "SPC n t", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "A shell in the calling pane's directory, raw from the first frame.", "text": "A shell in the calling pane's directory, raw from the first frame. On every pane's tagline: the fast path from wherever you are to a prompt there. A terminal below the caller in its directory: the configured shell, or the one named, `Term fish`, as a terminal's own tag word `Term+fish` says."},
+ {"name": "Theme", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Switch to the named theme.", "text": "Switch to the named theme."},
+ {"name": "ThemeFile", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Load a theme from a file.", "text": "Load a theme from a file."},
+ {"name": "Themes", "leader": "SPC t t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the themes in a pane, each a word to click.", "text": "List the themes in a pane, each a word to click."},
+ {"name": "Togglettymode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Switch this terminal between raw program input and normal editor mode.", "text": "Switch this terminal between raw program input and normal editor mode."},
+ {"name": "TreeContext", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show the declarations enclosing the top row at the pane's head, on or off.", "text": "Show the declarations enclosing the top row at the pane's head, on or off."},
+ {"name": "Tutor", "leader": "SPC h t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."},
+ {"name": "Undo", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Step the pane's text back one edit.", "text": "Step the pane's text back one edit.\nWith no step left, it says so and changes nothing; a ctl write of it still succeeds, as acme's Undo is silent there. A file keeps 256 steps."},
+ {"name": "Undock", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.", "text": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.\nThe next search from that pane opens another under it."},
+ {"name": "Unfollow", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Take this pane out of its Follow chain.", "text": "Take this pane out of its Follow chain.\nIt stays, a Zerox twin with the scroll it has, and the chain closes up behind it."},
+ {"name": "Unmount", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Unmount the 9P tree mounted under /n/<name>.", "text": "Unmount the 9P tree mounted under /n/<name>."},
+ {"name": "Up", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane above, and from a column's top pane to its tag.", "text": "Move the keyboard to the pane above, and from a column's top pane to its tag."},
+ {"name": "Upgrade", "leader": "SPC s U", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Move this session onto the pardes installed since it started, in place.", "text": "Move this session onto the pardes installed since it started, in place.\nIts text, undo, views, terminals with their running shells, and its terminals and windows come along; the pardes daemon moves too."},
+ {"name": "Verbose", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A builtin says its own name on the message row as it runs, on or off.", "text": "A builtin says its own name on the message row as it runs, on or off."},
+ {"name": "Window", "leader": "SPC w", "also": ["C-w"], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Window mode: move an outline between the panes and act on the one outlined.", "text": "Window mode: move an outline between the panes and act on the one outlined.\nh/j/k/l move the outline; Enter or Esc focuses the outlined pane, `:` its tag, the letter shown on a pane that one; d is Del on it (then k or j between two), c Collapse."},
+ {"name": "Wrap", "leader": "SPC t w", "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "Long lines wrap onto the next row, on or off.", "text": "Long lines wrap onto the next row, on or off."},
+ {"name": "WsDiagnostics", "leader": "SPC l D", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the workspace's diagnostics from the language server.", "text": "List the workspace's diagnostics from the language server."},
+ {"name": "WsSymbols", "leader": "SPC l S", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search the workspace's symbols for its argument.", "text": "Search the workspace's symbols for its argument."},
+ {"name": "Zerox", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Open a second pane on this pane's file: the same text, undo and unsaved state.", "text": "Open a second pane on this pane's file: the same text, undo and unsaved state.\nEach pane keeps a scroll and a cursor of its own."},
+ {"addon": "pdf", "name": "PdfSections", "leader": "SPC t s", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "list the PDF's sections in a pane, each a place to go", "text": "list the PDF's sections in a pane, each a place to go"},
+ {"addon": "pdf", "name": "PdfTint", "leader": "SPC t i", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "tint the PDF to the theme or show it as printed (disabled|filtered|full)", "text": "tint the PDF to the theme or show it as printed (disabled|filtered|full)"},
+ {"addon": "pdf", "name": "PdfFit", "leader": "SPC t z", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "fit the PDF's pages to the pane's width or height (width|height)", "text": "fit the PDF's pages to the pane's width or height (width|height)"}
]