diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/CHANGELOG.md | 20 | ||||
| -rw-r--r-- | core/builtins.zig | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 9b551e9b..fe9adec8 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -2,6 +2,26 @@ ## Unreleased +- `pardes attach NAME` (and `pardes-gui attach NAME`) is always a client: + a process of its own with its own view, whatever the session was + started in. A session's own terminal or window is only the one it was + born with: once a Detach or its terminal let it go, it never takes one + back. Before, an attach to a detached terminal's session handed it this + terminal (the attach waiting as its stub), and `pardes-gui attach` asked + a detached window's session to open its own window again and exited 0. + A client's Detach ends it with "'NAME' let this client go" and exit 1, + where the stub said "detached from 'NAME'" and exited 0. Bare, `pardes + attach` takes the one detached session, else the one session, of either + kind; with several it names them all. + +- A session whose daemon was killed starts the next one itself and + registers with it again, its shells' terminals and its clients with it: + `pardes ps` lists it, an attach and Adopt find it, and Detach works. It + ran on unlisted for good before, and its terminal closing ended it. + +- The words `pardes` says at a Detach name `pardes attach NAME`, the + command's spelling now, not `--attach=NAME`. + - On a client, and so on a far one, what changes only the editor is applied at once and only what touches the session's machine waits for it (a save, a shell's keys, a file read from disk, a program run, a diff --git a/core/builtins.zig b/core/builtins.zig index 1a0b4ce7..2740e05a 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -532,7 +532,7 @@ pub const Restore = struct { }; /// Detach this pardes from its terminal or window, leaving the session -/// running: `pardes --attach` (or `pardes-gui --attach`) takes it back. +/// running: `pardes attach` (or `pardes-gui attach`) shows it as a client. pub const Detach = struct { pub const scope: Scope = .session; pub const enabled = pardes.can_attach; |
