summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 16:01:44 -0300
committerGabriel Schneider <[email protected]>2026-11-23 16:02:38 -0300
commitc6a5a40f68f8a341961b1475addc73bb0de9a0f3 (patch)
tree48902c493367deb01b84d3e47f6b8a3d75a9cff5 /core
parent40debc2ebb40ecd4399a0e42b63b6f3f9b9ec0ba (diff)
downloadpardes-c6a5a40f68f8a341961b1475addc73bb0de9a0f3.tar.gz
pardes-c6a5a40f68f8a341961b1475addc73bb0de9a0f3.zip
help: the words of terminals and commands documented for a user (item 5's fifth group: `Term`, `Kill`, `Filter`, `Repl`, `Mount`, `Unmount`, `Msg`), each sentence checked against its run (core/builtins.zig, core/exec.zig `spawnTty`): Term (below this pane, in its directory, raw at once; `Term fish` as the tag word `Term+fish`; a shell or a directory that is not there said; was: two blocks, "A shell in the calling pane's directory ... On every pane's tagline: the fast path ..." then "A terminal below the caller ..."), Kill (the lines pardes typed and its command panes; a command pane's whole command, a terminal's foreground job, never its shell), Filter, Repl (`Repl python`, `Repl -`, bare; the language as a code fence names it; what is typed into it and what stays a command), Mount (`Mount <name> <dial>`, the dial's four forms; one that cannot be reached is said and not kept), Unmount, Msg; docs/typ/builtins-tui.json regenerated
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core')
-rw-r--r--core/builtins.zig38
1 files changed, 21 insertions, 17 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 {