aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-10-30 06:47:40 +0000
committerIgor Soarez <igor@soarez.org>2026-10-30 06:47:40 +0000
commit7f2ba3e7ed2b6949d0c688e5ea15e4327eb5445d (patch)
tree9a369cf4947648383415042efc6806ff3f433654 /README.md
parentb0448dca5daa0d50ef2ac7398a52646590a3cc76 (diff)
pirc-extension 0.1.9-dev+46bb48bfe5b3
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/README.md b/README.md
index 3a8e393..c0da80b 100644
--- a/README.md
+++ b/README.md
@@ -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