diff options
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). |
