@firstpick/pi-extension-bang-command-autocomplete 0.1.4 → 0.1.6
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 +28 -0
- package/index.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Autocomplete for `!<command>` in Pi.
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Built-in suggestions for common shell commands appear as soon as you type `!`.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Learned full command lines and commands from the current session surface next to each other while you refine a bang.
|
|
12
|
+
|
|
5
13
|
## What it does
|
|
6
14
|
|
|
7
15
|
- Suggests command names while typing `!<command>`.
|
|
@@ -40,3 +48,23 @@ pi install npm:@firstpick/pi-extension-bang-command-autocomplete
|
|
|
40
48
|
## Tools
|
|
41
49
|
|
|
42
50
|
None.
|
|
51
|
+
|
|
52
|
+
## Example view
|
|
53
|
+
|
|
54
|
+
```text
|
|
55
|
+
You type: !gi
|
|
56
|
+
|
|
57
|
+
Suggestions
|
|
58
|
+
!git common command
|
|
59
|
+
!git status learned full line
|
|
60
|
+
!git commit learned command + flag
|
|
61
|
+
|
|
62
|
+
You type: !git -
|
|
63
|
+
|
|
64
|
+
Suggestions
|
|
65
|
+
-m learned for git
|
|
66
|
+
--amend learned for git
|
|
67
|
+
--stat learned for git
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
This makes repeat shell commands feel lightweight: type `!`, pick the command or learned full line, and keep moving.
|
package/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as fs from "node:fs";
|
|
2
2
|
import * as os from "node:os";
|
|
3
3
|
import * as path from "node:path";
|
|
4
|
-
import type { ExtensionAPI } from "@
|
|
4
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
5
5
|
import { envFlag, getAgentDir } from "@firstpick/pi-utils";
|
|
6
6
|
|
|
7
7
|
type CommandSource = "common" | "history" | "runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firstpick/pi-extension-bang-command-autocomplete",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Autocomplete for !<command> in Pi, with optional shell-history indexing.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@
|
|
18
|
+
"@earendil-works/pi-coding-agent": "*"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"index.ts",
|