@henryqw/pi-open-in 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `@henryqw/pi-open-in`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Open the current working directory with a configurable command. Default is `code`.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,9 +8,16 @@ Pi extension that adds `/open` and `/set-open-in <command>` for opening current
|
|
|
8
8
|
pi install npm:@henryqw/pi-open-in
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Use
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
| Surface | Purpose |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| `/open` | Run `<command> <current-working-directory>`. Works while the agent is busy. |
|
|
16
|
+
| `/set-open-in <command>` | Set the command used by `/open`. |
|
|
17
|
+
|
|
18
|
+
## Config
|
|
19
|
+
|
|
20
|
+
`~/.pi/agent/config/pi-open-in.json`
|
|
14
21
|
|
|
15
22
|
```json
|
|
16
23
|
{
|
|
@@ -18,7 +25,7 @@ Command saves to `~/.pi/agent/config/pi-open-in.json`:
|
|
|
18
25
|
}
|
|
19
26
|
```
|
|
20
27
|
|
|
21
|
-
Remove
|
|
28
|
+
## Remove
|
|
22
29
|
|
|
23
30
|
```bash
|
|
24
31
|
pi remove npm:@henryqw/pi-open-in
|
|
@@ -27,7 +34,7 @@ pi remove npm:@henryqw/pi-open-in
|
|
|
27
34
|
## Development
|
|
28
35
|
|
|
29
36
|
```bash
|
|
30
|
-
npm test
|
|
31
|
-
npm run typecheck
|
|
32
|
-
npm run pack:check
|
|
37
|
+
npm test --workspace @henryqw/pi-open-in
|
|
38
|
+
npm run typecheck --workspace @henryqw/pi-open-in
|
|
39
|
+
npm run pack:check --workspace @henryqw/pi-open-in
|
|
33
40
|
```
|