@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.
Files changed (2) hide show
  1. package/README.md +9 -7
  2. 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. Default is `code`.
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**: Replacing manually typed editor launcher commands with one configurable action for the working directory.
8
- - **Advantage**: `/open` works while the agent is busy and supports any simple launcher command, defaulting to `code`.
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
- | Field | Required | Possible values | Default (missing file) |
34
- | --- | --- | --- | --- |
35
- | `command` | Yes when the file exists | Non-empty string, split on whitespace into executable plus arguments; tokens cannot contain spaces (no quoting) use a wrapper script for executables in spaced paths | `"code"` |
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
- An existing file must be a JSON object with exactly one non-empty string `command` property; otherwise `/open` fails with a visible error and no open URI is offered. The file is never rewritten by this extension except via `/set-open-in`. This package uses no shared config.
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.7",
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"