diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-23 16:00:54 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-23 16:01:44 -0300 |
| commit | 40debc2ebb40ecd4399a0e42b63b6f3f9b9ec0ba (patch) | |
| tree | ae19c9e5afc08895f1b91559555e5b16c21e037d /core | |
| parent | 93c2a6d862df215039c0a2c9545ee89c4858fc98 (diff) | |
| download | pardes-40debc2ebb40ecd4399a0e42b63b6f3f9b9ec0ba.tar.gz pardes-40debc2ebb40ecd4399a0e42b63b6f3f9b9ec0ba.zip | |
help: the session words documented for a user (item 5's fourth group: `Exit`, `Restore`, `Dump`, `Detach`, `Adopt`, `Upgrade`, `History`), each sentence checked against its run (core/builtins.zig `warnModifiedIn`, `Restore`, `Dump`; core/Core.zig `endSession`; core/dump.zig `dumpTo`, `restoreFile`, `dumpExit`; core/Output.zig `openHistory`): Exit (+Unsaved lists what it would lose and the notice counts it; again, nothing edited since, it quits; on the way out the panes go to the state file, for History and Restore), Restore (a label, History's; a file, a path or a name in the DumpDir or the directory pardes runs in; bare, the last this session made, else the newest; a file that is no dump said before the unsaved-text question), Dump (`Dump export <path>`, `~`; the workspace tag's `Restore <path>` word after it), Detach, Adopt and Upgrade (and what each says when it cannot), History (+History: a `Restore <label>` line a dump, its date, size and pane count, the panes' names under it; B2 on the Restore, or a Look at its line); 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.zig | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/core/builtins.zig b/core/builtins.zig index 64ebe5f0..599a0d97 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -518,7 +518,9 @@ pub fn warnModifiedIn(c: Ctx, asking: Pane.Discarding, which: Asked) bool { /// 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. +/// them; Exit again, nothing edited since, quits and discards it. On the way +/// out the session's panes are kept in the state file, for History and +/// Restore. pub const Exit = struct { // acme's Exit (editors/acme/exec.c:892), asking warnModifiedIn first. pub const scope: Scope = .session; @@ -589,7 +591,9 @@ pub const Kill = struct { /// 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. +/// `Dump export <path>` writes them to a file of their own instead (`~` the +/// home directory). The workspace tag then holds a `Restore <path>` word that +/// brings them back. pub const Dump = struct { pub const scope: Scope = .session; pub const takes_arg = true; @@ -609,9 +613,11 @@ pub const Dump = struct { /// 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. +/// `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. pub const Restore = struct { pub const scope: Scope = .session; pub const takes_arg = true; @@ -675,7 +681,8 @@ pub const Detach = struct { /// Take in the shells of a session that died holding them, each as a terminal /// here. /// -/// The pardes daemon kept their terminals open. +/// The pardes daemon kept their terminals open; with none kept for this +/// session, it says so. pub const Adopt = struct { pub const scope: Scope = .session; pub const enabled = pardes.can_attach; @@ -687,7 +694,8 @@ 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. +/// terminals and windows come along; the pardes daemon moves too. A pardes +/// that cannot move to another build in place says so. pub const Upgrade = struct { pub const scope: Scope = .session; pub const enabled = pardes.can_attach; @@ -2005,9 +2013,9 @@ pub const Recent = struct { /// 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 +/// Those Dump made and those every session's end left, in a +History: each a +/// `Restore <label>` line, its date, size and pane count, the panes' names +/// indented under it. B2 on the Restore, or a Look at its line, is that /// Restore. pub const History = struct { // A session's end dumps it (dump.dumpExit). |
