@henryqw/pi-open-in 0.2.7 → 0.2.8
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 +9 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# `@henryqw/pi-open-in`
|
|
2
2
|
|
|
3
|
-
Open the current working directory with a configurable command.
|
|
3
|
+
Open the current working directory with a configurable editor command. The default is `code`.
|
|
4
4
|
|
|
5
5
|
## Why
|
|
6
6
|
|
|
7
|
-
- **Created for**:
|
|
8
|
-
- **Advantage**: `/open` works while the agent is busy and supports any simple
|
|
7
|
+
- **Created for**: Replace manually typed editor commands with one configurable action for the working directory.
|
|
8
|
+
- **Advantage**: `/open` works while the agent is busy and supports any simple editor command, defaulting to `code`.
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
@@ -30,8 +30,10 @@ pi install npm:@henryqw/pi-open-in
|
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
- When the file is missing, the default editor command is `"code"`.
|
|
34
|
+
- When the file exists, `command` is required. It must be a non-empty string.
|
|
35
|
+
- The command splits on whitespace into an executable and arguments. Tokens cannot contain spaces, and quoting is unsupported. Use a wrapper script for executables in spaced paths.
|
|
36
|
+
- An existing file must be a JSON object with exactly one non-empty string `command` property. Otherwise `/open` fails with a visible error and offers no open URI.
|
|
37
|
+
- This extension never rewrites the file except through `/set-open-in`.
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
This package uses no shared config.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@henryqw/pi-open-in",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Open the current Pi working directory with a configurable command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"files": [
|
|
18
|
+
"LICENSE",
|
|
18
19
|
"extensions",
|
|
19
|
-
"README.md"
|
|
20
|
-
"LICENSE"
|
|
20
|
+
"README.md"
|
|
21
21
|
],
|
|
22
22
|
"exports": {
|
|
23
23
|
"./open-uri": "./extensions/open.ts"
|