summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/builtins.zig38
-rw-r--r--docs/typ/builtins-tui.json12
2 files changed, 27 insertions, 23 deletions
diff --git a/core/builtins.zig b/core/builtins.zig
index 599a0d97..fb072141 100644
--- a/core/builtins.zig
+++ b/core/builtins.zig
@@ -534,10 +534,10 @@ pub const Exit = struct {
/// 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.
+/// click, a pty/run) and its command panes. Bare, every one; `Kill make ls`,
+/// those whose line starts with one of the words. Each gets SIGTERM: a
+/// command pane's whole command, a terminal's foreground job, never its
+/// 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.
@@ -705,6 +705,10 @@ pub const Upgrade = struct {
};
/// Mount another pardes's 9P tree under /n/<name>, given its dial address.
+///
+/// `Mount <name> <dial>`, the dial `unix!/path`, a socket's path,
+/// `tcp!<numeric-ip>!<port>` or a session's name. One that cannot be reached
+/// is said at once, and not kept.
pub const Mount = struct {
pub const scope: Scope = .session;
pub const takes_arg = true;
@@ -745,7 +749,7 @@ pub const Mount = struct {
}
};
-/// Unmount the 9P tree mounted under /n/<name>.
+/// Unmount the 9P tree mounted under /n/<name>: `Unmount <name>`.
pub const Unmount = struct {
pub const scope: Scope = .session;
pub const takes_arg = true;
@@ -767,7 +771,7 @@ pub const Unmount = struct {
// ---- the message row ----
-/// Show its argument on this pane's message row.
+/// Show its argument on this pane's message row: `Msg built`.
pub const Msg = struct {
pub const takes_arg = true;
pub const requires_arg = true;
@@ -1438,10 +1442,12 @@ pub const DelBelow = struct {
}
};
-/// 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.
+/// Open a terminal below this pane, in its directory, raw: its keys the
+/// shell's at once.
+///
+/// `Term fish` runs that shell instead of the Shell setting's, as a
+/// terminal's own tag word `Term+fish` says; a shell that is not there is
+/// said. A directory that is not there makes no terminal.
pub const Term = struct {
pub const takes_arg = true;
pub const plus_arg = true;
@@ -1465,18 +1471,16 @@ pub const Term = struct {
/// 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`).
+/// `Repl python` binds it (the language named as a code fence names it: `py`,
+/// `Python`, `sh`); `Repl -` unbinds it; bare, it says what it is bound as.
/// 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.
+/// 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.
+/// Still commands, whatever is bound: a word in a tag, `Exec <text>`, 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 {
diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json
index 12631603..5b6ede24 100644
--- a/docs/typ/builtins-tui.json
+++ b/docs/typ/builtins-tui.json
@@ -53,7 +53,7 @@
{"name": "Joincol", "leader": "SPC c j", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."},
{"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": "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) and its command panes. Bare, every one; `Kill make ls`, those whose line starts with one of the words. Each gets SIGTERM: a command pane's whole command, a terminal's foreground job, never its 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."},
@@ -67,8 +67,8 @@
{"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": "Step this pane to its next input mode: normal, insert, and in a terminal raw.", "text": "Step this pane to its next input mode: normal, insert, and in a terminal raw.\nFrom the last it goes back to normal. The keyboard goes to the pane's text."},
{"name": "More", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Let a query pane's Grep stopped at its 2000 lines go on for 2000 more.", "text": "Let a query pane's Grep stopped at its 2000 lines go 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": "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.\n`Mount <name> <dial>`, the dial `unix!/path`, a socket's path, `tcp!<numeric-ip>!<port>` or a session's name. One that cannot be reached is said at once, and not kept."},
+ {"name": "Msg", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show its argument on this pane's message row: `Msg built`.", "text": "Show its argument on this pane's message row: `Msg built`."},
{"name": "New", "leader": "SPC f n", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Open an empty scratch pane, +New, in this pane's directory.", "text": "Open an empty scratch pane, +New, in this pane's directory.\nIt takes the keyboard. Save asks it for a path to write to; past 100 bytes, Exit, Del and Restore ask about its text as about a file's."},
{"name": "Newcol", "leader": "SPC c n", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Make an empty column right of the keyboard's, its tag taking the keyboard.", "text": "Make an empty column right of the keyboard's, its tag taking the keyboard.\nThe next pane made from there goes in it. Refused, saying why, when no column fits."},
{"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."},
@@ -81,7 +81,7 @@
{"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": "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.\n`Repl python` binds it (the language named as a code fence names it: `py`, `Python`, `sh`); `Repl -` unbinds it; bare, it says what it is bound as. 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. With several bound for a language, the exec asks which.\nStill commands, whatever is bound: a word in a tag, `Exec <text>`, 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 (History lists them); `Restore <file>`: a dump file's, a path, or the name of a file in the DumpDir or the directory pardes runs in. Bare: the last one this session made, else the newest. A file that is not a dump is said first; then, as Exit, it is refused once while a pane holds unsaved text."},
{"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.\n`Save <path>` writes it there. Bare, a pane with no file of its own (a +New, a list, a terminal) asks for a path; a file at a revision is read-only, written only to a path. Over a file changed on disk since it was read, it warns once."},
@@ -93,7 +93,7 @@
{"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 this text's syntax colours off in this view, or on again.", "text": "Turn this 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.", "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": "Term", "leader": "SPC n t", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.", "text": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.\n`Term fish` runs that shell instead of the Shell setting's, as a terminal's own tag word `Term+fish` says; a shell that is not there is said. A directory that is not there makes no terminal."},
{"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."},
@@ -103,7 +103,7 @@
{"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": "Unmount", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Unmount the 9P tree mounted under /n/<name>: `Unmount <name>`.", "text": "Unmount the 9P tree mounted under /n/<name>: `Unmount <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. A pardes that cannot move to another build in place says so."},
{"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."},