diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -80,15 +80,17 @@ the next one, so the extension can update it whenever it likes. ## Opening new agents A client can stop a pi, and open a new one beside it: in tmux, a window -after pi's; in herdr, a tab in its workspace. The new pi runs in the folder -the client chose, with this pi's `PI_*` and `PIRC_*` settings. Elsewhere, +after pi's; in herdr, a tab in its workspace, named as the client asks. The +new pi runs in the folder the client chose, with this pi's `PI_*` and +`PIRC_*` settings. Elsewhere, or to open it your own way, another pi extension can give the launcher: ```ts pi.events.emit("pirc:launcher", { name: "kitty", - // command is the pi to run; env, the variables to add. - launch: async ({ cwd, command, env }) => { /* open it */ }, + // command is the pi to run; env, the variables to add; name, the + // window's ("" for none). + launch: async ({ cwd, command, env, name }) => { /* open it */ }, }); pi.events.emit("pirc:launcher", false); // no launching from this pi pi.events.emit("pirc:launcher", null); // back to PiRC's own |
